~/talk

Practical design patterns in PHP (Part 1)

Talkat Web Summer Camp 2018 · 2018-08-29..09-01· [design-collaboration, php]
links:none on file
slides:none on file

One-and-a-half day workshop covers about 10–12 design patterns with hands‑on PHP: uses Composer, moneyphp/money, ramsey/uuid and phpunit, plus an assertion library to guard inputs. Builds a small webshop domain (Product interface, PhysicalProduct, ComboProduct) implementing the Composite and later Decorator patterns, writes PHPUnit tests that run and pass, and shows factories/value‑objects (Money, UID, Weight) and how composition replaces brittle inheritance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Dependency injection
  3. 6:50Object composition
  4. 12:30Single responsibility
  5. 17:50Extensibility
  6. 22:00Substitution principle
  7. 25:40Interface segregation principle
  8. 28:30Interface dependency inversion principle
  9. 29:40Object calisthenics
  10. 32:25Primitive types and strings
  11. 37:40One level of indentation
  12. 40:30Avoid else keyword
  13. 41:10No statements
  14. 43:15Avoid public accesses
  15. 49:45Collections
  16. 52:50Value Objects
  17. 56:35Money Objects
  18. 58:30Money PHP
~/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.