Command: An Action You Can Hold
When the dispatcher's plan for the morning is stored as rows of text and run by a switch on each action's name, every new kind of action means editing the runner; the Command pattern turns "Assign package 42 to Dana" into an object that can be stored, queued, logged and run later.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- Code Smell, Command Pattern, Higher-Order Function, OOP