Design Patterns

These are a set of reusable solutions (templates) for solving the commonly reoccurring problems in programming. The idea is to speed up the development process and reduce post-production issues. These are classified into 3 types:

These are a set of reusable solutions (templates) for solving the commonly reoccurring problems in programming. The idea is to speed up the development process and reduce post-production issues.

These are classified into 3 types:

Creational Design Pattern:

This pattern deals with class Instantiation. This can further be divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively for the instantiation process, object-creational patterns use delegation effectively for object creation.

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

Design Patterns can solve the below few problems

  1. Resource management (Load Balancing, Reduce Unnecessary Connections)
  2. Resolve incompatibility issues b/w classes or API’s
  3. Loose Coupling
  4. Security
  5. Code Reusability
  6. Reduce Development Time.

One thought on “Design Patterns

Leave a Reply

Your email address will not be published. Required fields are marked *