Mark McFadden has made the excellent Head First Design Patterns book’s code samples available in C# here. He even uses NUnit instead of Console.Writelines. Great job, Mark!
-
Archives
- August 2008
- July 2008
- June 2008
- May 2008
- August 2007
- February 2007
- September 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- November 2005
- October 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
Based on a little research I have a project in the download that utilizes a delegate and event declared in the subject that is registered by the observer. This looks more versatile than the implementations of subject and observer interfaces.
The new project is named Observer.CSharp.WeatherData with the NUnit test for the implementation in the ObserverCSharpWeatherDataDisplayFixture.cs file of the DeveloperTest project.
Thanks again for the input!
Darrell, can you provide an example of the Observer pattern with delegates. I am interested. Thanks for the feedback.
Bill – yeah, except the guy just did a straight port (like he didn’t use delegates for the Observer pattern, which annoys me). Sorry I missed you at Code Camp!
I absolutely loved this book b/c for a long time, I had a lot of trouble *really* understanding many patterns. This book helped out a lot – and the port to C# is great b/c I did a conversion and I can compare how close I got to the target. The nUnit stuff was a nice touch as well. Great post!