~/talk

Extremely defensive PHP

Talkat phpDay 2017 · 2017-05-12..05-13· [testing]
slides:none on file

Argues for concrete rules: no setters and constructor injection so optional dependencies disappear and tests stub fakes or null objects; prefer value objects over mixed types and assert external input early; make properties private and classes final by default; clone defensively or disable cloning and disallow serialization of nonserializable resources; aim for branch coverage (example login path requires five tests: true false plus three exception cases) and reduce public API surface to avoid brittle, time‑coupled operations.

AI-written summary · about

  1. 0:00Start
  2. 7:00CODE 2 COMPLETE
  3. 7:31Effective Java
  4. 11:17CODE FOR YOUR USE-CASE
  5. 37:20TEST ALL SCENARIOS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.