Darrell Norton's Blog [MVP]

Sponsors

The Lounge

Wicked Cool Jobs

News

  • Darrell Norton pic

    MVP logo

    View Darrell Norton's profile on LinkedIn

    Currently Reading:

    weewar.com

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Head First Design Patterns book now has C# code samples available

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!


Posted Wed, May 18 2005 9:00 AM by Darrell Norton
Filed under: ,

[Advertisement]

Comments

Bill wrote re: Head First Design Patterns book now has C# code samples available
on Thu, May 19 2005 6:47 AM
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!
Darrell Norton wrote re: Head First Design Patterns book now has C# code samples available
on Mon, May 23 2005 8:05 AM
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!
Mark McFadden wrote re: Head First Design Patterns book now has C# code samples available
on Mon, May 23 2005 8:39 AM
Darrell, can you provide an example of the Observer pattern with delegates. I am interested. Thanks for the feedback.
Mark McFadden wrote re: Head First Design Patterns book now has C# code samples available
on Mon, May 23 2005 8:15 PM
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 Norton's Blog [MVP] wrote Head First .NET code samples updated to use delegates
on Tue, May 24 2005 10:51 AM
I left a comment yesterday that Mark McFadden's code samples for the Head First Design Patterns book...
Devlicio.us