Hi,
I would like you learn more about Design Patterns for .NET (especially C#). Which book(s) would you recommend?
Hi,
I would like you learn more about Design Patterns for .NET (especially C#). Which book(s) would you recommend?
Personally I like this one:
http://www.amazon.com/Enterprise-Application-Architecture-Addison-Wesley-Signature/dp/0321127420
Some would find this oxymoronic (because it's actually written in Java) but I would suggest going ahead to read Head First Design Patterns.
Because Java and C# are so close to each other, grokking the code samples and translating them to C# was effortless, and the understanding it gave regarding design patterns was invaluable regardless of the language.
C# 3.0 Design Patterns covers the GoF Patterns with specific updates applicable to C# 3.0. It is a good read, but I would still recommend the original GoF book for a more elaborate discussion of the patterns.
If you would like to see Patterns in the context of Agile Development practices, you should check out Robert C. Martin's book. The only drawback is that he sometimes lapses into C# 1.0 programming idioms that have been superseded by better practices in C# 3.0. Of course, this is still an improvement over examples presented in other languages and will be true of any book more than a year old or so.
I second Head First Design Patterns and the DoFactory website. I even managed to follow Head First using VB.Net. The other thing I would recommend is to read lots of code containg different patterns. I found it has taken a while to spot the patterns but you will get there in the end and it will make your coding better for it