Tuesday, October 30, 2012

Introduction to Patterns

Now we are going to talk about Factory pattern When we say factory we now we are talking about creating something so its quite obvious that this is a creational pattern. Oh what did you said, ‘we have not discussed the type of patterns yet’, my bad. So lets discuss the classification of design patterns first


Types of Patterns

The patterns are classified in three major categories.

Creational Patterns - Creational design patterns abstract the instantiation process. They help make a system independent of how its objects are created.

Structural Patterns - Structural patterns are concerned with how classes and objects are composed to form larger structures.

Behavioral Patterns - Behavioral patterns are concerned with algorithms and the assignment of responsibilities between objects.

And from there names only its quite obvious what are these patterns. Lets just find out all the actual patterns that belong to this category. (picture taken from GOF book)


For now this much bookish definitions are enough, since we are anyway going to look into each pattern. So cram these pattern types and names as you might need them while designing any system. Just kidding, once we are done with all the patterns coming up with the right pattern should be easy, but still knowing these patterns is one thing and designing a good system is other. Design is something that comes with experience and expertise but knowing these patterns sure should be the first step towards that. So just sit back and sit tight. Things are going to get good from here onwards.

No comments:

Post a Comment