logoalt Hacker News

CWuestefeldtoday at 3:14 PM4 repliesview on HN

I want to support the "what about debouncing" argument mentioned elsewhere; the author shouldn't just ignore this.

But I also hate the "you had one job" meme and want to argue against its mindless usage. Most of the time, when people do the "you had one job" thing, it's false. And that's true most of the time in the case of buttons, too. In a typical user interface, a given button has some combination of these jobs:

* Communicate what action will occur should the button be pushed.

* (Sometimes) communicate the current status of some aspect of the system (e.g., often a button is used to enable/disable a mode, and the button itself visually conveys what the current mode is).

* Execute the intended action upon clicking.

* (Sometimes) communicate that the command has been received and is being executed (e.g., in the OP, the button might disable itself while animating the rotation in order to avoid the confusion the OP complains of).


Replies

notatoadtoday at 5:27 PM

>But I also hate the "you had one job" meme and want to argue against its mindless usage

the "you had one job" meme could pretty much always be followed up by "because i refused to consider the actual complexity of your job"

mathgeektoday at 3:19 PM

Your points are good ones, especially since they emphasize that different people have different expectations of what a "button" is and isn't. Your points individually describe a button with a label, one with a toggle, an actual button, and a progress indicator. All of those things can be "buttons" depending on the user.

functionmousetoday at 4:25 PM

> what about debouncing

activate button function on touch release instead of touch down?

show 1 reply