~/talk

Shrek, Onions and Architecture

Talkat phpday 2024 · 2024-05-16..05-17· [php, developer-experience]

Claim is that a messy PHP monolith really maps to an onion and becomes manageable by applying hexagonal architecture and DDD primitives like value objects and explicit entity lifecycles. Concrete tactics include designing ports and adapters, depending on abstractions only, using dependency injection, tagging deprecated methods and running static analysis with dep track. Testing guidance is practical not theoretical: avoid mocking the system under test, use anonymous classes for test implementations, and incrementally replace infrastructure adapters.

AI-written summary · about

  1. 0:00Monoliths and legacy code
  2. 3:17Onion as architecture metaphor
  3. 11:25Monoliths grow like onions
  4. 21:10Mashed monoliths palatable
  5. 22:12Code clarity with ubiquitous language
  6. 27:53Keeping code lean
  7. 34:12Balancing dependencies
  8. 39:50Testing performance
  9. 42:42Recap and homework
~/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.