this post was submitted on 11 Nov 2025
556 points (97.4% liked)

Programmer Humor

27322 readers
2231 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
[–] sunoc@sh.itjust.works 11 points 3 days ago* (last edited 3 days ago) (1 children)

Very much needed for embedded systems, but I’m more of a for (;;) guy myself!

[–] toynbee@lemmy.world 3 points 3 days ago (1 children)
[–] sunoc@sh.itjust.works 11 points 3 days ago (2 children)

It’s C, but the unusual look of having two semicolons is the reason why I prefer it over while (True). It feels more like “here is the weird part”.

[–] embed_me@programming.dev 5 points 3 days ago* (last edited 3 days ago)

And the rare

do { /*loop*/ } while(1);

[–] toynbee@lemmy.world 2 points 3 days ago (1 children)

Gotcha, thank you. I mostly code in bash or python.

[–] TwilightKiddy@programming.dev 3 points 3 days ago

Well...

for ((;;))
do
  # stuff
done