News for hackers. Stuff that matters.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by Existenceblinks on Thursday January 19, 2023 @03:53AM (#34438145)
I think it shouldn't include the redundant semantic in the label.

  [ ] fnurbification
  [x] fnurbification
or

  [*enabled* | disabled] fnurbification
  [enabled | *disabled*] fnurbification
Light up the active one.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by stranded22 on Thursday January 19, 2023 @04:36AM (#34438405)
So, radio boxes then…
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by Existenceblinks on Thursday January 19, 2023 @04:39AM (#34438437)
I think rectangle switch with active light on one end is good. I believe the confused one people talking about is the rounded slide toggle whose body color is used as status (the bolt head left right is equivalent to meaning nothing)
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by saagarjha on Thursday January 19, 2023 @03:55AM (#34438157)
Checkboxes stay winning.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by Existenceblinks on Thursday January 19, 2023 @04:00AM (#34438193)
The latter generally works for sum type states.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by numpad0 on Thursday January 19, 2023 @05:50AM (#34438923)
It's not when desirability of fnurbification negatively correlates to other items, i.e. when following is normal config:

  [X] perform deconbinaturation 
  [X] disable fnurbification 
  [X] enable entrapollation
... in this case there is a reason to make it a "positive-disable".
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by ilyt on Thursday January 19, 2023 @08:43AM (#34440143)
Nope, just mark which config is default and add tooltip explaining to user why it might need to be changed.

Aiming for all options to be "on" or "off" is some pedantic nightmare that makes settings harder to navigate

Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by bentcorner on Thursday January 19, 2023 @09:41AM (#34440753)
> Aiming for all options to be "on" or "off" is some pedantic nightmare that makes settings harder to navigate

This probably stems from config files or in-app defaults where a feature is default-on and so the existence of a value means something is disabled. And then some dev comes along and mindlessly transcribes a bunch of boolean flags into a settings menu and here we are.

Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by amelius on Thursday January 19, 2023 @04:00AM (#34438189)
To make matters worse, a disabled checkbox is one you can't toggle.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by Existenceblinks on Thursday January 19, 2023 @04:08AM (#34438246)
Not sure we are on the same page, the two lines is only for demonstration, the real ui is going to have that one line at a time. And the latter is custom radio button, I think it's up to 5 short name items before consider making it a dropdown.
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by rjmunro on Thursday January 19, 2023 @04:45AM (#34438461)
You mean:

  ( ) enable fnurbification
  (o) disable fnurbification
Re:Ask HN: Why are toggle switches replacing checkboxes? Isn... by mildchalupa on Thursday January 19, 2023 @07:21AM (#34439543)
There are many instances where the default is set at enable fnurbifucation with white text on a black background. Disable is shown as black text on a white background. When you change the state the text and background color inverts.

There is no way of knowing for certain what position is on and what is off without assuming that the first displayed state is on.

I believe recently I setup a nest with this issue. There is no way of knowing what is specifically selected unless there are three options. With three exclusive options you can compare to determine what the current state is because two of them will look the same thus must be off.

Ti-89 93... calculator settings can have this issue but some of the options have 3+ states and once you see the schema it's quite easy to deal with.