Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: What are the best guides/resources for implementing Undo/Redo in an app?
2 points by flybayer on Nov 4, 2019 | hide | past | favorite | 2 comments


Game Programming Patterns happens to have a good summary of the command pattern which also deals with undo/redo:

http://gameprogrammingpatterns.com/command.html


That's a very broad question that I imagine depends very much on the particulars of the application. A basic undo/redo approach is described in the Command pattern chapter of Design Patterns.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: