179
// Implement (lemmy.nz)
you are viewing a single comment's thread
view the rest of the comments
[-] melechric@lemmy.world 8 points 1 year 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
179 points (99.4% liked)

Programmer Humor

33694 readers
450 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 3 years ago
MODERATORS