Behavioral patterns
Observer
Notifies subscribers whenever the observed object's state changes.
Article
Observer: notify everyone without knowing anyone
The Observer pattern through a pierogi place's pantry: when the cheese runs out, the menu, the shopping list and alerts react on their own, and the pantry does not know they exist. Subscribing, unsubscribing, pitfalls and code in five languages.
Challenges
- Your own EventEmitter easy
- Order observer medium
- Design patterns – basics Quiz
Around the topic
- Observer · Design Patterns Revisited · Game Programming Patterns article · web · Robert Nystrom
- 703: The Observer Pattern podcast · apple-podcasts · Syntax - Tasty Web Development Treats
- Observer Pattern – Design Patterns (ep 2) video · youtube · Christopher Okhravi
- Wzorzec projektowy obserwatora - .NET article · web · Microsoft Learn
- Head First design patterns book · openlibrary · Eric Freeman, Elisabeth Freeman, Kathy Sierra, Bert Bates
- Observer article · web · Refactoring.Guru
- Obserwator / Observer article · web · Refactoring.Guru
- Observer design pattern - .NET article · web · Microsoft Learn
- Mastering C# Design Patterns: Practical Examples of Singleton, Factory, and Observer article · devto · Leandro Veiga
- Episode 9. It’s the Holidays! Let’s Decorate! podcast · apple-podcasts · Java Pub House