Types of Design Patterns

Published by

on

These are the broad category of Design Patterns 

Creational

  1. Constructor
  2. Module
  3. Factory
  4. Singleton

Behavioural

  1. Command
  2. Mediator
  3. Observer
  4. Strategy

Structural

  1. Decorator
  2. Facade
  3. Flyweight
  4. Adaptor

More here…

These are some of the most widely used design patterns. Will plan and cover each one of these (in the process of brushing my rusty skill sets too :))

Most design patterns are not a Class or a method that can be directly plugged into code and make things work. Its more of a well proven approach that can help solve common set of problems faced during software development cycle. 

A good design pattern should be implementable in most—if not all—languages, depending on the capabilities of the language. Most importantly, any design pattern can be a double-edged sword— if implemented in the wrong place, it can be disastrous and create many problems for you

One response to “Types of Design Patterns”

  1. Strategy Pattern – avinash.tech( ) Avatar

    […] of algorithms on need basis. Strategy Pattern is part of Behavioural Design Patterns. More on types of Patterns here . Lets understand this with an example using C# : Problem : There are a wide variety of Ducks with […]

    Like