Polski

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

Around the topic

In this group: Behavioral patterns