Banner Ad

Showing posts with label Design Pattern. Show all posts
Showing posts with label Design Pattern. Show all posts

Tuesday, December 9, 2014

Design Pattern - An Introduction

By Francis   Posted at   5:08 PM   Design Pattern No comments

                                  Few weeks ago, I commit to take an session about design pattern in my organization. As a matter of fact, I’m not a big fan of design pattern. However, I began dwell with design pattern, I found interesting on it. So I decided to write some posts on it. In this post, I just give an introduction about design pattern.
So what is design pattern?

                                 Design Pattern are conceived by the 4 people who wrote the book "Design Patterns: Elements of Reusable Object-Oriented Software ".  Design pattern is a proven ways to solve the particular problem while arising often writing software programs. Those problems are frequently encountered by the programmers, most probably when design the software.  So there is no reinvent the well again. There are 23 solutions predefined by the above authors. Each problem has its own name also.
The ultimate goal:
There is no reinvent of solution for the 23 problems. Also the main benefit is maintainability of software. If you want to change something in the existing system it is so easy. The above are the main benefits of design pattern. These 23 design patterns are called Gang Of Four in general.
                           They are categorized into 3 types. They are: 1. Structural Pattern 2. Creational Pattern 3. Behavioral Patterns

The category name itself enough to explain, the purpose of each pattern. For example, Creational patterns are talk about the object creation. At the same time structural pattern described about code structure. Below are the 23 design patterns.

 

Creational Patterns:

  1. Abstract Factory
  2. Singleton Pattern
  3. Builder Pattern
  4. Factory Method Pattern
  5. Prototype Pattern

 

Structural Patterns:

  1. Flyweight Pattern
  2. Proxy Pattern
  3. Adapter Pattern
  4. Bridge Pattern
  5. Facade Pattern
  6. Composite Pattern
  7. Decorator Pattern
  • Behavioral Patterns:
    1. Chain of Responsibility
    2. Observer Pattern
    3. Command Pattern
    4. Interpreter Pattern
    5. Iterator Pattern
    6. Visitor Pattern
    7. Template Pattern
    8. Strategy Pattern
    9. Memento Pattern
    10. Mediator Pattern
    11. State Pattern
Connect with Us