~/talk

Shrek, Onions and Architecture

Talkat Dutch PHP Conference 2024 · 2024-03-12..03-15· [php, software-architecture]
slides:none on file

Big legacy monoliths map to onion layers: presentation, application skin, fleshy domain services, core domain model and infrastructure roots. Advice is concrete: define ubiquitous language and value objects, replace vague handlers with specific interfaces, use ports and adapters and constructor injection, keep domain referencing only abstractions, prefer throwing exceptions over error strings, use DepthTrack to enforce layer boundaries, and test with anonymous classes rather than heavy mocks; use PHP constructor promotion and type hints to remove stale comments.

AI-written summary · about

  1. 0:00Welcome
  2. 1:06Legacy monoliths via Shrek
  3. 4:16Onion anatomy and layers
  4. 12:09Onions, growth, and DDD
  5. 23:46Legacy monoliths cooking tips
  6. 25:10Salt for code clarity
  7. 33:25Code bloat reduction
  8. 39:50Dependency balance
  9. 44:48Testing under pressure
  10. 46:13Recap and closing
~/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.