Design Patterns — What, Why and Types

HarshaVardhanReddy Bommareddy
2 min readAug 28, 2023

Design Patterns are the reusable solution for commonly occurring issues in any project architecture where object oriented programming approach is used.

Why

Design Patterns provides a set of solutions to the developers to make the architecture understandable. Each design pattern is a generic and reusable solution to most commonly occurring issues. Patterns are flexible for customisation.

Are design patterns specific to any programming language?

No, design patterns can be used in any programming language which used object oriented approach

Types of Design Patterns

  • Creational Patterns
  • Structural Patterns
  • Behavioural Patterns

Creational Patterns

  • Creational Patterns describes the instantiation process
  • These deal with object creations
  • Creating objects in basic format could result in design problems by adding complexity to the design

Structural Patterns

  • Structural Patterns focuses on how classes and objects can be composed to form large structures
  • Follows inheritance prince to compose interfaces or implementations
  • Used to design by identifying a simple way to realise the relationships between entities

Behavioural Patterns

  • Explains how objects interact with each other
  • Describes how different objects and classes sends messages to each other
  • And how the steps of a task are divided among objects
Types of Design Patterns
Types of Design Patterns

Conclusion

Creational Patterns describes a moment of object, Structural Patterns are a more or less static structure and Behavioural Patterns are a process of flow. We also have Class and Object Patterns which I would love to share in my next article.

Thank you for reading!
Happy Coding 👨‍💻

--

--