this post was submitted on 12 Feb 2024
97 points (98.0% liked)

Programming

26436 readers
94 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] DmMacniel@feddit.de 58 points 2 years ago (13 children)

It should show the current state, just like a checkbox shows if its option is enabled, an input box its current value etc. Everything else doesn't make sense.

[–] ptz@dubvee.org 20 points 2 years ago* (last edited 2 years ago) (6 children)

Exactly. A light switch* shows its current state, and toggle buttons are effectively an equivalent to that.

*Standard, two-way garden variety light switch

[–] nxdefiant@startrek.website 14 points 2 years ago (1 children)

I'd argue that a light switch has an indicator that shows the current state, separate from the switch.

[–] SmartmanApps@programming.dev 4 points 2 years ago

Not if the globe has blown out, in which case you need the switch to indicate which state it is in (unless you like to live dangerously and change globes in lights that may be still on :-) ).

load more comments (4 replies)
load more comments (10 replies)