8000 GitHub - vandekeiser/cmd-pattern: Undo-redo framework using commands
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vandekeiser/cmd-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Undo-redo framework using commands

3 variations can be used depending on the concrete commands:

  • Compensation: For concrete commands that are easy to revert
  • Replay: Event-sourcing-like approach where on undo all commands are replayed except the last one
  • Memento: Take snapshots of the whole system state on every command execution.

The latter two are to be used when the concrete commands are hard to revert:

  • The memento variation is for when the system state is easy to capture and not too big.
  • The replay variation is for when the system state is hard to capture or too big.

TODO: implement limited stack depth in Stack

About

Undo-redo framework using commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0