Re:On logic in a Rails app
by bengotow on Monday December 24, 2012 @03:50PM
(#4964045)
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!
[ Parent
| on HN ]
There are no comments on this comment yet.