4 — Behavioral Patterns
Purpose
[stub: behavioral-patterns]
Planned coverage:
- Strategy
- Observer
- Command
- Chain of Responsibility
- Mediator
- State
- Visitor
- Iterator
- Template Method
- Memento
- Interpreter
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
1 — Introduction to Design Patterns
What a design pattern actually is, why the Gang-of-Four catalog still matters in interviews, and how to recognize which category a problem is asking for.
2 — Creational Patterns
The five creational patterns — Singleton, Factory Method, Abstract Factory, Builder, and Prototype — for controlling how and when objects get created.
3 — Structural Patterns
The seven structural patterns — Adapter, Bridge, Composite, Decorator, Facade, Flyweight, and Proxy — for composing classes and objects into larger structures.
5 — Pattern Selection Guide
A decision framework for picking the right pattern under interview pressure — when to reach for one, when it's overkill, and the trade-offs behind each choice.