06 - Command, Chain of Responsibility and Template Method
Advanced behavioral patterns: Command with undo/redo, Chain of Responsibility for middleware and Template Method for reusable algorithms.
Advanced behavioral patterns: Command with undo/redo, Chain of Responsibility for middleware and Template Method for reusable algorithms.
What you'll learn
- Command = requests as objects, undo/redo, job queues
- Chain of Responsibility = chain of handlers, middleware
- Template Method = algorithm skeleton, hook points
- Use Command for undoable operations
- Use Chain for processing pipelines
This article is part of the Design Patterns series on federicocalo.dev.
Read the full article
The complete article (12 min read) with code examples, diagrams, and practical exercises is available here:
➡️ 06 - Command, Chain of Responsibility and Template Method
https://federicocalo.dev/en/blog/command-chain-of-responsibility-template-method-pattern
By Federico Calò — Software Developer & Technical Writer