Observer pattern is widely used in software development. You might be already using this pattern extensively but you may not be aware of it. Some of the real world examples are GUI Controls, Data Binding, File Watcher, Network Events and Model View Controller.

In this video I will discuss about 3 variations of this pattern

  1.        Traditional Observer Pattern – documented by Gang of four in design patterns book
  2.        Events and Delegates – Out of box Observer pattern in MS.Net Framework
  3.        IObservable<T> – new implementation of this pattern is added in Framework 4.0 Task Parallel Library

The Observer Design Pattern can be used whenever a subject has to be observed by one or more observers.

  •        It is a behavioral pattern
  •        It is also known as Publisher – Subscriber Pattern
  •        The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents,        called observers, and notifies them automatically of any state changes, usually by calling one of their methods.
  • Observer pattern is a way of notifying change to a number of classes



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s