Software Development Tricky

Friday, 1 September 2017

Design Pattern Overview

         1. What is a Design Pattern?

ð  In software development , a pattern (or design pattern) is a written document that describes a general solution to design problem that recurs repeatedly in many project
ð  Pattern in programming are like recipes in cooking. They are not ready dishes, but instructions for slicing and dicing products, cooking them, serving them and so forth
ð  It have certain rules and regulation

Examples:

#1 – Consider below tiles picture

These tiles are arranged in a pattern

#2 – There is a pattern in these numbers: 2, 7, 12, 17, 22, … they follow a rule “start at 2 and add 5 each time”.

          2. Why should we learn patterns?

         The most important reason is that pattern simplify the design and support of programs

¨       Tried and tested solutions

You spend less time by applying ready solutions instead of re-inventing the bicycle.

¨       Code unification

You create fewer bugs, since you use typical unified solutions where all hidden bugs have already been discovered.

¨       Universal programmers vocabulary

You simply pronounce the name of a pattern instead of spending an hour explaining to other programmers the benefits of your new design pattern and listing the required classes.

          3. Type of design patterns?


If you like this post. Kindly share your valuable comments.


No comments:

Post a Comment

Followers