Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to implement undo/redo operation without major changes in program

Hi I'm about to add new functionality to application which I'm currently writting. I need to write a undo/redo fnctionality. However 90% of our application is ready and I don't know what is the best way to implementing this functionality without affectig(too much ) code which has been already created.

like image 874
pieere Avatar asked Oct 19 '10 23:10

pieere


1 Answers

There aren't many details here. However, Undo/Redo functionality is typically handled via some variation of the Command Pattern. Depending on your architecture, this could be a simple reworking of your basic functionality into "commands", or a major overhaul.

like image 144
Reed Copsey Avatar answered Nov 11 '22 15:11

Reed Copsey