this post was submitted on 04 Jun 2025
348 points (97.3% liked)

Programmer Humor

23844 readers
2623 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] xthexder@l.sw0.com 5 points 2 days ago

I've actually noticed this exact thing with elevators before... I was kind of amazed the beep and light were hooked up completely independently from the actual floor selection logic.
It sort of makes sense that the light in the button would just be hooked directly up to the button contacts. The computer would then be polling the buttons separately and it's possible to miss a button press... These sorts of buttons shouldn't need a debounce period since pressing any of them a second time doesn't do anything. If the buttons were interrupt based, this probably wouldn't happen.