News for hackers. Stuff that matters.
Re:Never Use a Warning When you Mean Undo by Jach on Friday January 28, 2011 @12:41AM (#2150932)
There's a lazy solution: do what Gmail does. Rather than have an actual undo stack, especially for those pesky things like removing information from the database, just delay action for 5-30 seconds and offer an undo button until the time expires.
Re:Never Use a Warning When you Mean Undo by encoderer on Friday January 28, 2011 @03:44AM (#2151245)
That also gets complicated -- if they have your app open in two tabs, they expect state to be consistent.
Re:Never Use a Warning When you Mean Undo by d0mine on Friday January 28, 2011 @01:48AM (#2151041)
It is not a real undo it is a warning with timeout.
Re:Never Use a Warning When you Mean Undo by phillco on Friday January 28, 2011 @03:09AM (#2151186)
"LAUNCHING MISSILES (click here very quickly to undo)..."
Re:Never Use a Warning When you Mean Undo by d0mine on Friday January 28, 2011 @03:44AM (#2151247)
"cancel" and "undo" is not the same thing.

You can cancel the launch. But you can't undo it. It is thermodynamically impossible.

Re:Never Use a Warning When you Mean Undo by phillco on Friday January 28, 2011 @10:39PM (#2154549)
Right. But that's how Gmail is marketing it. "Undo send" gives you the impression that Gmail is reaching through the tubes and yanking your message back for you, but in reality it's just cancelling a launch that didn't happen yet.
Re:Never Use a Warning When you Mean Undo by jpitz on Friday January 28, 2011 @07:27AM (#2151571)
Yes, but there's a compensating transaction you can apply to the missile up until the time it reaches the target.
Re:Never Use a Warning When you Mean Undo by blahedo on Friday January 28, 2011 @10:47AM (#2152215)
You're right that it's not a "real" undo, but it is better than a warning with timeout; on a warning, it demands that you click (habitual action) after which there's no going back, but with this system it demands nothing, the message stays up, and you click (non-habitual action) only when you want to cancel.
Re:Never Use a Warning When you Mean Undo by d0mine on Friday January 28, 2011 @11:24AM (#2152384)
It is a warning where instead of the word "cancel" they use "undo".
Re:Never Use a Warning When you Mean Undo by blahedo on Friday January 28, 2011 @04:49PM (#2153666)
Except it's not the same: on a warning, you click OK and then A) the warning is gone and B) you can't get it back.
Re:Never Use a Warning When you Mean Undo by piaskal on Friday January 28, 2011 @11:09AM (#2152322)
I just checked that. They only let you undo when you delete messages from Inbox, which is trivial because those messages are not deleted but moved to Trash.

When I clicked on "Empty Trash now" all I got was this message: "All messages in the Trash have been deleted forever."