Behavioral Design Patterns
Introduction
Observer Pattern
The Problem I Had
My Solution: Observer Pattern
Event Emitter Pattern (Node.js Style)
Strategy Pattern
The Problem I Had
My Solution: Strategy Pattern
Real Example: LLM Provider Selection
Command Pattern
The Problem I Had
My Solution: Command Pattern
Macro Commands (Composite)
State Pattern
The Problem I Had
My Solution: State Pattern
Real Example: Scan State Machine
Combining Behavioral Patterns
When to Use Each Pattern
Observer Pattern
Strategy Pattern
Command Pattern
State Pattern
Conclusion
What's Next?
References
Last updated