3 ms·
You couldn't get more hand-waivy and abstract than that. Except maybe if you said "just write some code to take input and produce output, that's all you need".
by coldtea 8y ago
You couldn't get more hand-waivy and abstract than that.
Except maybe if you said "just write some code to take input and produce output, that's all you need".
Yeah, it's a "virtualization layer" (though the usual terminology is "abstraction layer"). But that doesn't explain the specific of how to implement a layer that does undo/redo. Caching is also a layer, but it's not undo/redo. So it's not like "any layer will do".
The command pattern does explain one way of achieving it.
- Retra 8y agoI'm talking about actual virtualization. Reifying objects in memory. That's completely different from abstraction, and nothing like caching. It's a process that requires interpretation or translation, and not nearly as broad as "abstraction" is.