~/talk

Practical design patterns in PHP (Part 2)

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

Workshop builds a coupon system that combines a Decorator pattern for unlimited restrictions (limited lifetime, first‑order, minimum purchase) with concrete coupons: value coupon (subtracts €20) and rate coupon (20% / 0.20). It uses a Coupon builder to assemble decorators in a controlled order and a small factory variant; tests use the Symfony PHPunit bridge to mock the clock, tests pass, code is in Arab-dot-com/hhamon/websummercamp and examples demonstrate working combinations like 20% off on ≥€75 within a date range.

AI-written summary · about

  1. 0:00Decorator pattern intro
  2. 4:33Defining coupon interface
  3. 7:25Concrete coupon classes
  4. 11:31Rate coupon implementation
  5. 14:45Restricted coupon decorator
  6. 19:00Limited lifetime coupon
  7. 24:13Testing with clock mocking
  8. 28:59Validating coupon restrictions
  9. 35:38Advanced coupon combinations
  10. 43:42Adapter pattern concepts
  11. 52:37Prototype pattern in PHP
  12. 1:03:07Builder pattern fundamentals
  13. 1:14:23Coupon builder implementation
  14. 1:39:06Abstract factory pattern
  15. 2:04:24Factory method pattern
  16. 2:15:03Factory and builder refactor
~/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.