DEV Community

lou
lou

Posted on

Design patterns

Design patterns are reusable solutions to common problems that developers face during software design.

There exists 3 Design patterns Categories:

Creational:

Describes how objects are created for a suitable class, rather than directly using the new operator.
examples:

  • Abstract Factory
  • Builder
  • Prototype
  • Singleton

Structural:

Describes how to create relationships among objects to make flexible and extensible structures.
examples:

  • Adapter
  • Composite
  • Bridge
  • Decorator
  • Proxy
  • Facade

Behavioral:

Describes the interaction between the objects and classes.
examples:

  • Strategy
  • Observer
  • Iterator
  • Mediator
  • Visitor
  • State

Top comments (0)