/Design-Patterns

Repository to store design patterns and serve as reference

Primary LanguageTypeScript

Essentials of a pattern:

  1. Pattern Name
  2. Problem it solves
  3. Solution to the problem
  4. The consequences

Three Categories:

  1. Creational Patterns: Class instantiation, creation of objects in the application.

Examples:

  • Abstract Factory
  • Builder
  • Factory Method
  • Prototype
  • Singleton
  1. Structural Patterns: The way objects are composed or put together.

Examples:

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Facade
  • Flyweight
  • Proxy
  1. Behavioral Patterns: How objects interact with one another.

Examples:

  • Chain of Responsability
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Memento
  • Observer
  • State
  • Strategy
  • Template Method
  • Visitor