Wednesday, November 10, 2010

Ctrl-Z!

Implementing the undo/redo stack. I'm providing the standard Undo/Redo Edit menu options with the nearly ubiquitous Ctrl-Z/Ctrl-Y accelerators, respectively. This is requiring a substantial refactor, as all logic for the undone/redone actions must be abstracted. Of course this abstraction ultimately results in a much cleaner code-base, but comes at the expensive of a substantial amount of work.

Relative to the previous post, I never really did take the step back to refactor and comment. But I think I have a decent feature-set now where a substantial refactoring/commenting session might be in order.

1 comment:

  1. Refactoring and commenting tends to be an on-going iterative process anyway. But yes, designing for undo/redo from the get-go would have saved some time. Like that saying about love though, it is better not have designed for undo/redo then refactor for it, than to never implement undo/redo at all :)

    ReplyDelete