~/talk

Decoupling with Design Patterns and Symfony2 DIC

Talkat SymfonyLive London 2014 · 2014-09-25..09-26· [php]
slides:none on file

A refactor of Behat turns core features into independently loadable extensions wired by Symfony compiler passes and service tags so new bundles register handlers without touching core code; specific patterns used are delegation loop for pluggable handlers, decorator chain for dynamically ordered wrappers, adapter wrappers to introduce non‑breaking API changes. Result: extensible toggles for features, fewer live objects at runtime (despite twice as many classes), faster performance, and a reusable TestWork subframework; design work is ~18 months thinking, ~2 weeks to implement.

AI-written summary · about

  1. 0:00The journey to Behat
  2. 1:37Philosophy and goals
  3. 5:15Defining extensibility
  4. 7:57Dependency injection internals
  5. 10:45Implementing the observer pattern
  6. 14:03Dynamic service registration
  7. 16:37Cohesion vs coupling
  8. 19:01Refactoring for extensibility
  9. 20:40The delegation loop pattern
  10. 23:02The decorator pattern
  11. 26:20Decorator chains
  12. 29:00Composite pattern for output
  13. 32:24Hierarchical data structures
  14. 35:13The adapter pattern
  15. 38:13Demonstration and benefits
  16. 41:57Version management
  17. 43:42Performance implications
  18. 45:30TestWork framework
  19. 47:31Designing for extensibility
  20. 50:56Final classes and encapsulation
  21. 52:46Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.