~/talk

Introduction to SOLID

Talkat PHP UK Conference 2017 · 2017-02-16..02-17· [php]
links:none on file
slides:none on file

Covers concrete PHP refactorings and trade-offs: controller logic moved into a UserRegistration service then split into storage and welcome-email classes, a duck example showing strategy and decorator patterns not inheritance, and a real OAuth2 token decorator that caches tokens for 48 hours that worked as a storage+API chain. Shows CakePHP filter refactor to a SearchParameters interface, a DatePickerOptions value object, and notes DI containers (Pimple, PHPMailer etc) trade-offs — more code and wiring for easier-to-reason-about, extensible code.

AI-written summary · about

  1. 0:00Start
  2. 2:58READING VS WRITING
  3. 9:35OPEN FOR EXTENSION
  4. 16:34SANDWICHES
  5. 23:08THE OBSERVER PATTERN
  6. 27:46DESIGN BY CONTRACT
  7. 56:33OPTIMIZE FOR READING
~/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.