News for hackers. Stuff that matters.
Re:Never Use a Warning When you Mean Undo by pan69 on Thursday January 27, 2011 @09:02PM (#2150487)
"Oh, and the next time you see a warning used instead of undo, send the designer of the application/website a nice e-mail suggesting that they implement an “undo” feature instead."

A typical designer point of view on the world. Has the author any idea of how much time (therefore money) it can take to implement Undo features across the board? I don't think so. Successfully implementing Undo functionality can be a daunting task. The question simply comes down to; is it worth the money investing in this feature? For most applications it simply isn't, no matter what mister visual UX dude thinks or says.

Re:Never Use a Warning When you Mean Undo by jayliew on Thursday January 27, 2011 @10:07PM (#2150621)
This is a legitimate point of view, that perhaps developers don't want to hear. Disclaimer: I'm a developer, so I understand the challenge to undo. However, I also realize that I'm building for normal people (i.e. not myself).

There is no need to be defensive, nobody is attacking anybody. This is just another "best practices" thing.

update: just to add one more note: end-users don't care if the person who built the product like/dislike implementing an undo feature, end-users care if it's easy for them or not.

Re:Never Use a Warning When you Mean Undo by lukeschlather on Thursday January 27, 2011 @11:09PM (#2150759)
The biggest problem with undo is that sometimes allowing the user to recover from a particular action is also undesirable behavior. If I accidentally typed my username and password into a file, I want it to go away, right now.

There's a somewhat worrying trend with applications such as Facebook and Google Apps where software is more concerned with making users believe it's doing what they need it to do, and less concerned with doing what users need. I'm not saying this necessarily crosses the line - if I have the space on my server I'm storing lots of incremental backups. But there's always a trade-off. And some people might rather be assured that when they hit delete that it goes away forever than that they never lose anything they meant to keep.

Re:Never Use a Warning When you Mean Undo by pan69 on Friday January 28, 2011 @12:34AM (#2150916)
What I was trying to get at is that this is often not a "Best Practice" decision. As if the developers didn't think of implementing undo functionality... Implementing such a complex feature such as undo if often a business decision, if anything else.
Re:Never Use a Warning When you Mean Undo by jasonlotito on Friday January 28, 2011 @07:34AM (#2151582)
Maybe it's the belief that it's a complex feature that hinders them? Implementing an undo feature isn't really complex for most things a user does.

Outside of anything real time, most things have the capability of having an undo element added to them to some degree. Even then, real time actions can still be undone (credit card transactions, for example).

Re:Never Use a Warning When you Mean Undo by redcap on Thursday January 27, 2011 @09:17PM (#2150519)
Implementing an undo feature is certainly harder than just providing a popup, but I think at least for me using a popup is a reflex and we should at least think about using an undo feature.

I agree with the author that habitual responses to dialogue buttons can be dangerous, so I suggest considering this on a case-by-case basis - not just as to whether it's worth the money, but whether it will significantly reduce user distress.

Re:Never Use a Warning When you Mean Undo by ubershmekel on Thursday January 27, 2011 @09:18PM (#2150521)
It's all about software development and usage norms.

Yes, it's difficult to bootstrap undo functionality. But look at mobile apps, they never ask "are you sure you want to leave?", they just make sure that whenever you come back - everything is exactly like it was before. Users EXPECT this behavior and developers feel obligated to implement it.

Concerning deleting by accident - I think it's just that we have bad software usage/development norms. Who knows, maybe this will improve with time.

Re:Never Use a Warning When you Mean Undo by jerf on Friday January 28, 2011 @12:05AM (#2150866)
Some things really have to be in the lowest possible level of your code to work, to come back later and bolt them on is incredibly difficult. Correctness of encoding, localization, and good unit testing are some of my usual examples; start with them from day one and they don't cost you that much, add them into a project that has gone for 10 man years without thought and you're in for some pain.

Undo functionality is like that. You have to start with some sort of ability to make it easy to create your "actions" in some way where every one of them can be reversed, and in some cases the OS itself makes that very hard. How do you undo "close program"? Like you said, but didn't quite spell out, with a fundamentally different OS where suddenly it's easy. You can make a Microsoft Windows program that will automatically open in the same state you left it in, but first of all, it's much harder than it is on a phone, and second, I very much hope that you thought of that from day one because otherwise you're probably in for some pain just refactoring your program to the point where it is possible....

Ideally you would work in some language that makes undo that easy, but it's really hard because so much of the system is fighting you. I've toyed with this but UIs themselves are fundamentally not undoable so you burn a lot of time just telling the UI how to roll back. It really needs to be fundamentally woven into the entire system and that will probably be decades, if ever.

Re:Never Use a Warning When you Mean Undo by wallflower on Thursday January 27, 2011 @09:52PM (#2150588)
> But look at mobile apps, they never ask "are you sure you want to leave?"

I know your context was about something a little different but just to be nitpicky, most iOS apps we develop prompt the user if they want to leave the app and launch Google Maps to get directions and/or thank them for wanting to donate - Safari will be launching shortly and/or tell them to wait while we launch the e-commerce page.

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."

Re:Never Use a Warning When you Mean Undo by irondavycole on Friday January 28, 2011 @12:05AM (#2150867)
You're suggesting that "mister visual UX dudes" (like me, for example) don't take complexity of implementation into account when making design decisions. We do. It's part of the process. Note that he said to send the designer the e-mail, not the developer. The designer on a project should always know where the current UX problems in the product are, even if they are too expensive to fix at the time.
Re:Never Use a Warning When you Mean Undo by kelnos on Friday January 28, 2011 @12:25AM (#2150892)
Then I applaud you for having awareness of issues outside your immediate domain. I know quite a few UX people who know nothing about implementation and think everything is easy to do.
Re:Never Use a Warning When you Mean Undo by irondavycole on Friday January 28, 2011 @12:42AM (#2150935)
I don't even think it takes knowledge of implementation, just respect for it. I've had engineers ask me to fix certain design problems that would take weeks of prototyping and user testing to actually nail down in a meaningful way. Good devs appreciate the difficulty and we find a solution that fits the schedule, bad devs think design is easy to do. It runs both ways. Let's avoid making needless blanket statements and concentrate on working together.
Re:Never Use a Warning When you Mean Undo by ugh on Thursday January 27, 2011 @10:06PM (#2150618)
I’m not following you there, what has the difficulty of implementing undo to do with whether or not it should always be at least suggested as a clearly superior solution?

I’m not seeing any assumptions about the difficulty of implementing an undo feature in that sentence (except that it’s not impossible and that some companies have been capable of implementing it). Where do you find those?

I think your prejudices got the better of you.

Re:Never Use a Warning When you Mean Undo by kelnos on Friday January 28, 2011 @12:28AM (#2150904)
It wasn't simply suggested as a superior solution. The article states that you should "never" use a popup and instead have an undo mechanism. That's a bit absolutist.
Re:Never Use a Warning When you Mean Undo by ugh on Friday January 28, 2011 @12:33AM (#2150911)
That’s a bit typical hyperbole. Don’t seek conflict where there is none.
Re:Never Use a Warning When you Mean Undo by kelnos on Friday January 28, 2011 @04:25AM (#2151315)
It's not hyperbole when it's repeated over and over, and the entire point of the article is to tell everyone that warning dialogs are bad and universal undo is the answer. Did you even read it?
Re:Never Use a Warning When you Mean Undo by damoncali on Thursday January 27, 2011 @10:31PM (#2150676)
I can undo the shit out of Adobe Illustrator, and I still wind up losing work from time to time. How is that clearly superior to accidentally clicking "OK"?
Re:Never Use a Warning When you Mean Undo by ugh on Thursday January 27, 2011 @10:34PM (#2150683)
I’m not claiming that undo will protect you from everything. (It doesn’t.) I’m merely claiming that undo is preferable (“clearly superior”) to no undo.

Are you saying that Illustrator would be just as good without undo?

Re:Never Use a Warning When you Mean Undo by damoncali on Thursday January 27, 2011 @11:02PM (#2150741)
That's where we disagree. Sometimes an alert is just what you need, and can be better than an undo function (which can get rather complex as your ui gets more sophistiated - hence my illustrator issues).

Illustrator is clearly better with undo, but I don't think basecamp, for example, would be.

Re:Never Use a Warning When you Mean Undo by ugh on Thursday January 27, 2011 @11:08PM (#2150757)
I’m honestly not following you. I have trouble understanding in what way a warning could ever be better than the ability to undo. Why would it be?
Re:Never Use a Warning When you Mean Undo by damoncali on Thursday January 27, 2011 @11:48PM (#2150834)
There are some things that you change or delete frequently, and that have little value - the points in my illustrator file, for example. I might want to move one a bit, delete it, and then put it back. This is when you want an undo, and are willing to pay its price, both in ui complexity and implementation cost.

Other things, you want to delete only occasionally, and may be of high importance, like a character in a video game. this is when you want an alert. If it's not something you do all the time, it's not habit forming ( in the context of this particular game). It adds no complexity to the ui and has nearly no implementation cost, yet it helps protect your important data.

Re:Never Use a Warning When you Mean Undo by ugh on Friday January 28, 2011 @12:34AM (#2150915)
I don’t really understand how undo adds complexity.
Re:Never Use a Warning When you Mean Undo by seabee on Friday January 28, 2011 @01:14AM (#2150996)
If you go back to the video game example, you have a list of saved games/characters and you can choose to delete a character. Pretty standard stuff.

Now you add an undo button and you've gone from two actions to three actions. Furthermore, does the undo apply just to when you delete characters, or can you undo the progress you just made with a character? If it's the former, then your undo is inconsistent. If it's the latter, if you accidentally undo, then you want a 'redo' so you can't lose your new changes either. So now you've doubled the number of options the user can take. And how often are you going to delete a character anyway?

Or, you can take the approach games do, which is simply ask you 'are you sure you want to delete this character?' Given this response is distinct from the 'continue game' action, which would display a loading screen, players are likely to notice the prompt. Why complicate things?

Re:Never Use a Warning When you Mean Undo by ugh on Friday January 28, 2011 @01:19AM (#2151005)
I see the challenge but I would still like to be able to press Command-Z at any point.
Re:Never Use a Warning When you Mean Undo by jasonlotito on Friday January 28, 2011 @07:40AM (#2151595)
Undoing a character delete is fairly trivial. The reason their is a prompt in most games is that their is no universally excepted way to undo something in games. It's become accepted to have a confirmation box.

As for consistency in a game, menus and the games UI rarely share the same structure. It's also generally except that you don't put up a confirmation box for the player to level up.

Re:Never Use a Warning When you Mean Undo by seabee on Friday January 28, 2011 @10:17AM (#2152086)
> The reason their is a prompt in most games is that their is no universally excepted way to undo something in games. It's become accepted to have a confirmation box.

Honestly, how many actions in a game does it make sense to undo, unless you're playing Prince of Persia: Sands of Time? I'm a big proponent of 'make everything undoable' but you are stretching it way beyond its use here.

Re:Never Use a Warning When you Mean Undo by adelle on Friday January 28, 2011 @11:35PM (#2154640)
Sim City could benefit from Undo.
Re:Never Use a Warning When you Mean Undo by jasonlotito on Saturday January 29, 2011 @06:29AM (#2155245)
Um... I didn't even come close to suggesting what you said. You inferred things not even remotely close.
Re:Never Use a Warning When you Mean Undo by rbranson on Thursday January 27, 2011 @10:21PM (#2150656)
Agreed. It becomes especially complex in a distributed system with multiple users having access to the same data.

For instance, even a simple message exchange, which has no data interdependency issues, an undo feature requires some kind of design trade-off. Either the application lies to the user and delays the sending of the message to allow for an undo period, or it allows the message to be delivered to the other user, but then allows the delivery to be un-done. However, in the later scenario, if the receiver reads the message before it is "unsent," then you aren't really providing a reliable undo facility.

Re:Never Use a Warning When you Mean Undo by zem on Friday January 28, 2011 @04:17AM (#2151300)
the partition magic guys didn't seem too receptive to the suggestion. bunch of stick-in-the-muds.
Re:Never Use a Warning When you Mean Undo by Hemlockz on Friday January 28, 2011 @11:26AM (#2152391)
Ha ha.... Undo repartition. At what point should users be responsible for their own clickings?