Design
Patterns
Introduction:
Mistakes are meant for learning not repeating and wise man
learns from the experience of others.
Based on such mistakes/experiences software developers had
design the solutions for general problems. It represents best practices which
should be use by software developers while designing a solution.
Initially it is based on below principles of object oriented
design but later it has been evolved over a long period of time
1) Object
composition over inheritance
2) Program
to an interface not an implementation
Why should we use design patterns?
1) It
will provide common standard terminology to all software developers.
2) It
helps software developers to learn design in a easy way
Design patterns are broadly classified under below
categories
1) Creational Patterns: These patterns are
used to create objects while hiding the internal logic which gives a program
more flexibility to decide which object needs to be materialized at given
instance.
2) Structural Patterns: These patterns focus on class and object
compositions.
3) Behavioral Patterns : These are design
to focus on communication between objects.
We will look into all these type of patterns closely in next articles:
No comments:
Post a Comment