OOP & Design Patterns - Command Pattern - Undo/Redo, Request Queuing & Logging
Consider two implementations of the Command Pattern: (1) brute force with manual undo/redo stacks, and (2) a memoization-based approach that caches command results for faster undo/redo. When is the memoization approach preferable over brute force?
