News for hackers. Stuff that matters.
Re:Undo by tadfisher on Tuesday November 19, 2013 @10:24PM (#6766098)
You use Gmail's undo feature as an example, but it doesn't work in the way you prescribe. It's the cheap & easy version of undo that doesn't require building your application around the command pattern: just implement a reasonable delay before making the irreversible change, and show the Undo action during this delay (which is really a "cancel the pending change" action).

No, it's not as clean or as good of an experience for your users, but it works great for applications such as email that perform fundamentally irreversible actions.

Re:Undo by sgdesign on Tuesday November 19, 2013 @10:31PM (#6766116)
Yeah, it's kind of a simulated undo. I'll update the post to point it out better. But anyway, the end result is (almost) the same for the user, which is what counts at the end of the day.
Re:Undo by reneky on Wednesday November 20, 2013 @10:01AM (#6768344)
There are actual undo in Gmail as well, for example when applying a label to a message.

Since send is making the change in an external system it has to be simulated, but that doesn't change the point of the post.