Skip to main content
Version: Next

design-patterns

Creational

Used to create object

  1. Singleton
  2. Factory
  3. Abstract Factory
  4. Builder:
    • Create a complex object from a simple one
    • When some attributes are not required
  5. Prototype

Structural

Relationship between objects

Behavior

Communication between objects

Combinator

  • Combinator pattern allows chaining functions on an object in order to perform some validations

  • Synchronization:

    • Allows resolving concurrency problem
    • Deadlock: when concurrency is not managed
  • Data Access Object (DAO)

    • Separate business layer from persistence layer
    • Permits both layer to evolve separately without knowing anything about each other
  • Data Transfer Object (DTO)

  • Data Change Capture

Archi

  • Data Driven Architecture