Wednesday, November 5, 2008

Observer Patterns in code(vb.net/C#)


I decided if Im going to blog, I'd share what I do everyday, I develop mostly, I do application and network security (physical as well) ; (manage the integrity of my employers network and basically a developer evangelist as well; Of course thats not all I do, but we'll save that for later....)  So anyway, I attended a recent webinar by Microsoft's Zain Naboulsi (excellent presentation btw), gave me some very important coding disciplines; Why re-invent the wheel right? What does this exactly mean... Take the recent election as an example, what a great way to end the election, to learn how it would programatically work using the Observer pattern. The Subject in this observer pattern would be The Voting Location and the Displays (each person who wishes to use the information or update the information) would be the Observers. Its such a great design pattern. Many projects of mine that I'm working on would benefit from this Observer pattern, an aviation website (zapva.com) the Subject would be a particular VA, and the observers would be displaying the data in multiple locations or an aggregate display like the frontpage of the zap site.. Other sites I'd say this could be used great for would be mailing lists, data updates like sharepoint portal (like) sites. Any application that could utilize updates that rely on data from others. What a great thing... I've attached a copy of the zip containing the presentation information just incase anyone else hasnt heard about this design pattern. Yes, for the political programmers out there.. this is for you. slides available here..

No comments: