This pattern also referred as publisher – subscriber pattern describes a method to allow one object to be aware of another object changes.
It allows you to ask to be notified when the state of the observed object changes, so that you can react on that information.
As you can imagine, this pattern is widely used to implement event systems.
Have you ever write Ajax code or used a call back function?
Then you have used this pattern. Continue reading
