Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 542 Bytes

design_patterns.md

File metadata and controls

7 lines (4 loc) · 542 Bytes

Design patterns

  • Strategy Pattern - defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.

  • Observer Pattern - defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.

  • Decorator Pattern - attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.