Observer: Tell Whoever's Listening
When the code that places an order has to call the kitchen screen, the customer's text and next month the delivery app by name, it grows with every new listener; the Observer pattern lets the order keep a list of whoever wants to know, and tell each of them, without knowing who they are.
Updated

- Category
- Data Structures
- Level
- Apprentice
- Tags
- coupling, Higher-Order Function, Observer Pattern, OOP