Thursday, March 22, 2007

Fear of Design Patterns - Let it go!

Many of us shudder when we hear some one blabbering on Design Patterns.

Well, there is nothing to fear, as the beauty of design patterns lies in the fact that we have all used it some where unknowingly. Well, may be not all, but some of them at least. Have you heard of MVC (Model-View-Controller) pattern? Yes? Good. Have you used it? No? Are you sure? The very code-behind architecture in Visual Studio .NET (the idea of separating code (controller) from the presentation (view)) is based on MVC pattern.

Have you heard your OO evangelist yelling : "Code against Interface, not implementation!"? He is referring to Strategy Pattern.

The event handling in .NET is based on the Observer Pattern.

Now you get the picture, right? So dont hold behind. If you are new, get hold of the Head First Design Patterns book and have a wonderful ride!

Disclaimer: No, I don't get paid by O'Reilly! I just love the book!

Saturday, March 03, 2007

An attempt to learn Design Patterns

Months ago I had picked up a Design Patterns book titled Head First Design Patterns. This book took me to ride with the very first chapter. But unfortunately, due to busy work load, I could not continue reading the rest. And every time I see that book in my shelf, I feel guilty.

And again, it would not be my reading habit. It is the subject in itself. Unless and until you get your hands dirty by implementing the concepts discussed in this books, nothing would "remain" in your head. May be its just me.

I have decided to take it slow and get this book chapter by chapter. Read one chapter. Then discuss and share the principles with my peers. There are dudes at work who have similar interests in learning the design principles.