Tuesday 6 March 2007

Design Patterns

"A design pattern names, abstract, and identifies the key aspectsof a common design structure that make it useful for creating a reusable object design. The design pattern identifies the participating classes and instances, their roles and collaborations, and the distribution of responsibilities." [1]

FAQ's

1. What is a Pattern?
Pattern is a solution to re-occurring real life problems within a context. For example, if you are decorating your kitchen to overcome space problem you will therefore acquire consultation from Kitchen Decoraters who will have surely have various types of designs available to accomodate individual needs.

2. Why is Patterns becoming so famous and encouraged to be used?
Simply because Patterns addresses every little aspect of the context and than solution is either ready to be used or invented.

3. What is the advantage of using Pattern?
Patterns encourage reusability. They are used over and over again which means the solutions provided has been tested and proven to be successful. It saves alot of time from re-inventing new designs.

4. How would one be able to identify that if it is a Pattern or not?
A structured way of solving problem is when you identify a Pattern.


REFERENCE

[1] - (Design Pattern - Elements of reusable object oriented software, GOF, (Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, p. 4-5)

8 comments:

John Ssebaale said...

Thanks for the FAQs, they were very helpful, simple and straight forward. Well done.
Cheers

r Thapa said...

On the first answer of your question, what is pattern?,you have given an example where you mentioned
problem: space
solution:consultation with kitches decoraters
but is there any context?

thank you

r Thapa said...

Also for the last question how can one recognise pattern or not? I will say a pattern must have been used at least three time and have positive consequences.

navaraj

Daljit @ Dil said...

Hi Navraj...thanks for your query

In question 1 I have given an example of a Pattern and if you read the example carefully I have also mentioned that in oder to overcome spacing problem, kitchen decoraters will have designs to accomodate customers various needs.

Lets hope that I have answered your query. Thanks

Goodday.

Daljit @ Dil said...

Hi Navraj....before a pattern can be used at least three times it must first be executed and used for the first time so that it can reach the count of using the 3rd time.

Thanks.

Goodday.

SAMUEL said...
This comment has been removed by the author.
SAMUEL said...

i like your FAQ straight forward and very simple, please add more so that the new user of pattern will take it more serious. And for the example you gave nice one but the context is missing.

Iqbal said...

Hi daljit,
I have gone through your FAQs. You have briefly explained your answers. However, the answer for the last question is partially correct as a structured way of RECURRING problems is when you identify a pattern.

good work :)