News for hackers. Stuff that matters.
Re:In Loving Memory of Square Checkbox by vel0city on Sunday January 28, 2024 @01:04PM (#39168120)
Showing the current state matches light switches with the state on them.

https://www.homedepot.com/p/Leviton-15-Amp-Single-Pole-Switc...

Or car door locks which show red (unsafe) when unlocked. It's showing the current state, not the state that will be when toggled.

Re:In Loving Memory of Square Checkbox by lowbloodsugar on Sunday January 28, 2024 @02:01PM (#39168726)
Red means “stop” and green means “go”. So how the fuck does red mean “this door is passable”??!

“Unsafe” is contextual. If you are inside the car, and the car is on fire, then “locked” is very much the “unsafe” option.

Re:In Loving Memory of Square Checkbox by vel0city on Sunday January 28, 2024 @03:42PM (#39169626)
I've been in moving vehicles where opening the door would have been unsafe more than I've been in car fires. I often lock my car when leaving as well which usually unlocked is a bad state to leave it in, that normally happens more often than being in a burning car.

Are you in burning cars often?

Re:In Loving Memory of Square Checkbox by lowbloodsugar on Monday January 29, 2024 @12:06AM (#39172882)
Honestly, if I’m in the car and we’re driving then I want to see a red light for same reason: red means stop and green means go. Or from outside after parking it: will this door open or will it stop somebody.
Re:In Loving Memory of Square Checkbox by vel0city on Monday January 29, 2024 @12:34AM (#39173029)
Red also often means "danger, caution" not just "stop". A red stop sign means "pay extreme attention here, there's danger, please stop and evaluate". A red DO NOT ENTER sign isn't just saying to stop, its saying there's danger heading that direction. If you just stop there its probably not going to end well, So clearly they're signaling more than just "stop".

I'm still unsure, have you been in many burning cars before? More than just moving vehicles?

Re:In Loving Memory of Square Checkbox by rpmisms on Sunday January 28, 2024 @03:08PM (#39169336)
On many guns, switching the safety to the "fire" position exposes a red dot, red meaning "hot" or "fire".
Re:In Loving Memory of Square Checkbox by lowbloodsugar on Monday January 29, 2024 @12:09AM (#39172900)
Yeah my CZ pistol is like that and it’s fucking terrifying because in my mind red means stop or locked. I actually feel more secure with my Glock because it doesn’t have a safety so it’s unambiguous. If I point my Glock and squeeze, I know it’s going to fire.
Re:In Loving Memory of Square Checkbox by vel0city on Monday January 29, 2024 @12:24AM (#39172972)
The red of a stop light makes a lot more sense in relation to the red of a fire mode on a gun when you think of red being "caution, unsafe" instead of just "stop". Just like the red of a STOP sign is to caution you into paying attention of the danger of the cross traffic, not necessarily just stopping.

Red lights on top of towers isn't trying to tell planes and helicopters to stop, its telling planes to exercise caution around the tower.

Re:In Loving Memory of Square Checkbox by lowbloodsugar on Monday January 29, 2024 @12:44PM (#39179382)
Or like at a railway crossing. The flashing lights indicate danger, and the barriers drop. According to GP, the lights should flash when the barrier is not dropped, because now it's unsafe, FFS.
Re:In Loving Memory of Square Checkbox by weebull on Tuesday January 30, 2024 @03:28AM (#39187665)
Reprogram your brain for "Red means danger, green means safe" and you'll do a lot better.

Red at a traffic light means there's a danger so you stop. Green means it's safe to proceed.

Red on a gun safety switch means danger because it's live.

The red wire is live and dangerous. The green wire is earth and safe. (at least true in Europe).

Re:In Loving Memory of Square Checkbox by rpmisms on Monday January 29, 2024 @10:09AM (#39177092)
Ah, my CZ is a DA/SA with a decocker. I'd recommend it! No manual safety, but you can hold the hammer forward while holstering.
Re:In Loving Memory of Square Checkbox by wolfendin on Sunday January 28, 2024 @07:20PM (#39171372)
If you’re inside a car and the car is on fire, you’re not determining the state of the door lock by its position visually. For people inside the car unlocked is the unsafe position in most cases (leaving, driving.)

(Do car still come doors that don’t automatically unlock when the handle is pulled, if the child safety switch is disabled?)

Re:In Loving Memory of Square Checkbox by twixfel on Monday January 29, 2024 @11:22AM (#39178121)
At my current workplace (particle accelerator) one control panel in particular has red for "good" as in "this is red, so don't go in here, because everything's fine and you have no reason to". Always amuses me.
Re:In Loving Memory of Square Checkbox by folmar on Sunday January 28, 2024 @07:03PM (#39171258)
The link is 403 for me.
Re:In Loving Memory of Square Checkbox by Spare_account on Monday January 29, 2024 @05:00AM (#39174606)
Re:In Loving Memory of Square Checkbox by ajyotirmay on Monday January 29, 2024 @05:38AM (#39174835)
I guess such interactive elements always show the current state of the system, and when they are interacted with, it changes the state it was in, examples: 1. Social media buttons for upvotes/likes/dislikes 2. on/off toggle switches for features 3. microphone/speaker buttons on desktop OSes
Re:In Loving Memory of Square Checkbox by dotancohen on Monday January 29, 2024 @06:06AM (#39175007)
The YouTube play/pause button shows the action it will do, not the state that it is in.
Re:In Loving Memory of Square Checkbox by phkahler on Monday January 29, 2024 @09:48AM (#39176843)
>> The YouTube play/pause button shows the action it will do, not the state that it is in.

A lot of physical play/pause buttons show both symbols. Also in a lot of cases you can tell if a video is playing.

Re:In Loving Memory of Square Checkbox by dotancohen on Monday January 29, 2024 @10:11AM (#39177116)
Not if it's buffering because you know that you have a bad internet connection. Around here, I often see people skip to an earlier portion of the video to check if it is playing or not.

And that is anyway besides the point of consistent UIs' toggle switches describing their state, not their action.

Re:In Loving Memory of Square Checkbox by godshatter on Monday January 29, 2024 @11:21AM (#39178113)
I miss the old convention of showing a button with shadows indicating it's been pushed in vs. showing it with just a flat plane when it's not pushed in. A button that shows that it's been pushed in with a triangle icon means it's playing, clicking or touching it will stop it from playing. A button that doesn't indicate it's been pushed in with a triangle icon is not playing, clicking or touching it will start it playing. Bonus points if there is a small virtual led that turns on when it's pushed in.

Fewer and fewer devices we have access to these days have physical switches on them, though.

Re:In Loving Memory of Square Checkbox by rerdavies on Tuesday January 30, 2024 @11:52AM (#39192380)
As someone who has built media players, the established convention seems to be that the play/pause button shows what the button will do. It hurts me to do "button shows what it will do" every time. But all the other media players I'm familiar with do it this way.

Does anyone know of a major media player where the play/pause button shows what the state is, rather than what the button does?

Re:In Loving Memory of Square Checkbox by eternityforest on Tuesday January 30, 2024 @06:02PM (#39197190)
Why not just have separate play/pause buttons and highlight the active one?
Re:In Loving Memory of Square Checkbox by cesaref on Monday January 29, 2024 @07:50AM (#39175655)
And (as a european) i'm reminded of the confusing american light switches which show a light when they are off. Oh, and they toggle in the wrong direction (up is on?).

By comparison, it's quite common here to have a switch with a lamp to indicate the light is on, which get used when the status of the light cannot be easily seen where the switch is located (e.g a switch for a light in the loft/outside light etc).

Re:In Loving Memory of Square Checkbox by bonton89 on Monday January 29, 2024 @08:33AM (#39176014)
I believe American light switches are intended to confirm to a standard if installed correctly. But that all goes out the window with a 3 way switch.
Re:In Loving Memory of Square Checkbox by vel0city on Monday January 29, 2024 @08:38AM (#39176083)
I'd say in a residential setting our switches make a lot of sense.

The light up variety are mostly to aid turning on the lights in the dark and aren't usually the default. It's nice being able to see the switch when entering a dark room.In a residential setting it's a bit more rare to have a switch control a light you're not either immediately seeing or are often imminently going to see, like a closet or looking out a window next to the switch. It's not like you're often turning on and off lights across the house, so having it light up when the room lights up is rather redundant instead of offering that dark time help. Finally, having an on light would be really redundant since you can usually easily see the switch is physically pointing up or down and they sometimes even say ON or OFF.

As for up being on and down being off, it's about being easier to toggle to the safer state. It's more likely for off to be a safer state (think changing a bulb, having it connected to a garbage disposal, etc.). It's generally easier to flip the switch down than flipping it up, so it's easier to toggle to the safe state rather than the unsafe.

Re:In Loving Memory of Square Checkbox by Scarblac on Monday January 29, 2024 @10:19AM (#39177222)
> And (as a european) i'm reminded of the confusing american light switches which show a light when they are off.

I have those in Europe. The point is that you can find the light switch in the dark. Why would it need a light when it's on, if it's in the room that it lights?

Re:In Loving Memory of Square Checkbox by neuralRiot on Wednesday January 31, 2024 @04:28PM (#39209658)
This reminds me of when i was studying electronics and we had to design a circuit with some purpose. I made a “Light indicator” with an LED a photoresistor and some other stuff.