Refactoring to Design Patterns
Hi, I find it easier to understand the Design Patterns by writing code initially which doesn't follow any pattern or object oriented principles and refactoring it step by step to convert it into one of the predefined patterns and understanding the reasoning behind doing so.
The "Head First Design Patterns" book tries to follow this path, but I find it too repetitive. Some examples are given so much attention that I get distracted from the actual subject.
There is also a classic "Refactoring to Patterns" book, but no examples in C#.
I like the Dofactory examples, but if they have a book that explains each of them in detail (especially through Refactoring approach) that would be really helpful.
So my question is: if anyone is aware of any other book that tries to teach Design Patterns this way, please let me know.
Thanks in advance.
Ramakrishna Pujari, Mar 09, 2011
There's an old WROX book on pattern which follows this approach. This is in VB.NET, but it shouldn't matter. Not sure whether a c# copy is available or not. It can be procured from
I had read this couple of years back and found it very useful as it deals with some real stuff and is definitely a good read after Head first patterns.
Rajesh Pillai, Mar 09, 2011