~/talk

Interface Segregation for PHP

Talkat Dutch PHP Conference 2019 · 2019-06-06..06-08· [php, software-architecture]
links:none on file
slides:none on file

Argues that extracting tiny, named types makes PHP code more reasonable: replaces passing PSR-7 requests and raw arrays with a PSR-7 VariableMap adapter and a SearchOptions value object, plus an array-backed stub and an echo data source fake for tests. Results: controller drops conditionals, tests avoid heavy mocks and run faster, code becomes reusable (CLI possible) and less likely to leak bugs (e.g. accidental cache clears). Trade-offs: more classes and typing, but dependency injection and once-only extraction pay off.

AI-written summary · about

  1. 0:00Introduction
  2. 1:41Reasonable vs understandable
  3. 5:05Refactoring with interfaces
  4. 7:30Mocks and testing
  5. 13:14Unit testing limitations
  6. 16:01Type specialization
  7. 21:36Practical design challenges
  8. 23:44Strategic use of types
  9. 38:59Emotions and conclusion
~/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.