Observer Pattern using JavaScript

Introduction Observer pattern is simply a publish/subscribe relationship. Like a person of interest we have an object of interest which we call subject or publisher and then we have interested parties and these parties are called observers or subscribers. Subject have something to say and observers are there interested in that saying. When we arrange our code … Read more

Observer Pattern in .NET

Introduction I have previously written few posts about delegates, .NET Events, Events Args to show that similar to real world events, we can use this concept in our code and how useful they are in certain scenarios. In this post, we will see that those types are a good candidate for implementing observer pattern without … Read more