Thursday, 27 October 2011

Design patterns

Instead of defining what is design pattern...Lets define what we mean by design and what we mean by pattern.

In general we all know design is blue print or sketch of something so it can be defined as creation of something in mind and about pattern, we can define it as guideline, or something that repeats.

Now the definition of design pattern becomes creating something in mind that repeats or in other words capturing design ideas as a "pattern" to the problems.( Don't u think it sounds interesting.... :))

Design Pattern provides a core of the solution in such a way that you can use the core solution every time but implementation should and may vary ....
The main reason behind that is we have the core solution and not the exact solution.

An example.....

Lets discuss an simple example here about database normalization.
Normalization is a pattern (Core solution to database design) but what level of normalization you need (exact solution) depends on your requirement and context.

(any addition or any changes please kindly let me know.. :))

No comments:

Post a Comment