dennyhong96 / design-patterns

Common software design patterns implemented in TypeScript (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOLID principles are a selection of 5 software design principles that are frequenctly referred in modern design patterns.

  1. Single Responsibility Principle
  2. Open Close Principle
  3. Liskov Substitution Principle
  4. Interface Segregation
  5. Dependency Inversion Principle

Design patterns are typical solutions to common software problems.

  • Deal with the creation/construction of objects
  • Explicit (constructor) vs. Implicit (DI, reflection, etc.)
  • Wholesale (single statement) vs. Piecewise (step-by-step)
  1. Builder Pattern
  2. Factory Pattern
  3. Prototype Pattern
  4. Singleton Pattern
  • Concerned with the structure (e.g., class members)
  • Many patterns are wrappers that mimic the underlying class' interface
  • Stress the importance of good API design
  1. Adapter Pattern
  2. Bridge Pattern
  3. Composite Pattern
  4. Decorator Pattern
  5. Facade Pattern
  6. Flyweight Pattern
  7. Proxy Pattern

......

About

Common software design patterns implemented in TypeScript (WIP)


Languages

Language:TypeScript 100.0%