News for hackers. Stuff that matters.
Re:Idempotence: What is it and why should I care? by qoi2ijds0 on Tuesday August 21, 2018 @07:48AM (#17808754)
IMO disabling buttons causes more trouble than it's worth - you can never guarantee the user hasn't clicked twice (because don't forget the code that disabling the button in the first place is relying on an event firing that tells you the button was clicked - this doesn't mean 2 events can't be queued before the event handler is called), and then you need a whole chunk of code around re-enabling the button depending on what has happened after the fact which is then a big source of bugs.

There are no comments on this comment yet.