|
|
|
|
|
by dogweather
4172 days ago
|
|
I gotta disagree with the entire purpose of this. We should completely abandon "Are you sure?"-style confirmations. Instead, we should provide rich feedback for the delete action taken, followed by the opportunity to undo. Wrap that up into a re-usable library, and that'll be a real step forward. |
|
However, as also mentioned by atian, it always depends on context, and what's available to you. There are situations where I'm writing an app that won't have the ability to "undo" deletes for particular objects. This can arise from API restraints, unnecessary overhead for a trivial object (todo list item as a contrived example), etc. Those scenarios are what I use the deleted library for.