Observer Pattern

Tuesday, 18 March 2008 15:58 by Frimbob

I have been doing some reading on design patterns an in particular the Observer Pattern.

In short the pattern helps to de-couple code modules by providing a third party class that will acts as observers to concrete classes. These observes act as an intermediary to send messages from one class to another.

This avoids having to directly reference other classes using a full qualified name and thus creating a dependency.

I have found some documentation on MSDN on Implementing the observer pattern in .net.

It  appears that by using delegates and events offered by the .NET frame work that less code is required than I originally though necessary.

I might use this pattern in my OOP university project if I can get my Lecture to approve of C++/CLI over his much loved classic C++ .  

Links

[Implementing observer in .net]

http://msdn2.microsoft.com/en-us/library/ms998543.aspx

[Observer Pattern MSDN documentation]

http://msdn2.microsoft.com/en-us/library/ms978753.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Recent Book Purchases

Thursday, 6 March 2008 23:14 by Frimbob

Work Books

Since I have needed more reference materials for my OOP (object oriented programming) class which uses C++ as the language I have taken out my credit card for some exercise.

[C++/CLI: The Visual C++ Language for .NET]  number1

http://www.apress.com/book/view/9781590597057

As I mentioned previously in another post

[ Ivor Horton's Beginning Visual C++ 2005 ]

http://www.wrox.com/WileyCDA/
WroxTitle/productCd-0764571974.html

I have also Purchased another code-notes book for my XML Class, they are very concise books easy to read, perfect for a quick read in conjunction with class textbooks.

[CodeNotes for XML]

http://www.codenotes.com/books/bookAction.aspx?bookID=2

Leisure Books

Just some easy fiction here.

[Ex Machina (Star Trek: the Original Series) Author : Christopher L. Bennett]

http://www.amazon.com/Ex-Machina-Star-Trek-Original/dp/0743492854

[Hammerjack Author: Giller, Marc]

http://www.hammerjack.net/

hammerjack-index

[Daedalus's Children Author: Dave Stern ]

http://www.mobipocket.com/en/eBooks/eBookDetails.asp?BookID=16632

[ Taking Wing (Star-Trek : Titan , Book One) Author:  Martin, Michael A; Mangels, Andy]

http://www.amazon.com/Taking-Wing-Star-Trek-Titan/dp/0743496272

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:  
Categories:   General | Life and Stuff
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed