3 ms·
I completely disagree with this example. Only in first order implementations does that click just change the date. As you refine UX you may add some debounce, e
by dexwiz 6y ago
I completely disagree with this example. Only in first order implementations does that click just change the date. As you refine UX you may add some debounce, error handling, alternative behavior, etc. DOM events rarely end up corresponding to such simply expressed handlers.
Also when you are reading the reverse, it’s not clear on what on what updates date. The worst scenario is when two listeners share a handler.
- irrational 6y agoWhat are your naming recommendations?
- dexwiz 6y agoExactly what OP discourages. Ha dleClick for onClick, handleDragOver for onDragOver, etc.