Re:Ask HN: Why are toggle switches replacing checkboxes? Isn...
by jefftk on Thursday January 19, 2023 @09:21AM
(#34440520)
There is an easy answer: "Disable Fnurbification" is not what should be in the code. Present the right interface to the user, and fix the code when practical. Presenting something backwards to the user only makes it harder to fix later.
[ Parent
| on HN ]
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn...
by 4RealFreedom on Friday January 20, 2023 @12:08AM
(#34449490)
I deal with hundreds of these types of selectors from some inherited code. When a disable changes 2 lines of code to wrap functionality in an if block v adding many scattered if blocks to accommodate the enable case, I'll probably go with the low code solution. If I can easily accommodate enables then sure but it's just not always that easy.