Hacker News new | past | comments | ask | show | jobs | submit login

I think what the OP is talking about is just a ruby reimagination of the Operation pattern. Most sufficiently complicated apps that implement undo / redo use "Single Responsibility Objects" to encapsulate individual user operations. Each one has a "do" method and an "undo" method, and little else. In a web service, you don't have to worry about undo server-side, so using this pattern is more an option than a necessity!



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

Search: