170
// Implement (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] melechric@lemmy.world 8 points 5 days ago

Yes. Sometimes you're limited by the hardware you're controlling. This code is a bit hard to justify with that excuse though. Normally your code would do a read from hardware to see if the value decremented and then repeat the write. (Possibly a sleep/yield in there if required.)

this post was submitted on 01 Aug 2025
170 points (100.0% liked)

Programmer Humor

25518 readers
2172 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