Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 524 Bytes

33_relation_to_oo_patterns.md

File metadata and controls

16 lines (11 loc) · 524 Bytes

!SLIDE full-page smbullets

Relation to OO Patterns

  • Like the Observer pattern, but a single mapping / binding between producer and consumer
  • Decoupled responsibilities - very simple to test
  • Open-closed principle - adding new event handlers don't affect existing ones

Like observers, but never a fan out

Event generation is not coupled to the dispatch event handler.We can ignore or stub them out during testing.

Can develop an application almost entirely without transport