this post was submitted on 11 Nov 2025
578 points (97.5% liked)
Programmer Humor
27314 readers
3200 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can have a non-infinite loop without a break statement, you just need a return statement in it. Also
for(;;)is much faster to write thanwhile(true).Yes, but the latter is easier to read. I know what the former is, but my colleague could definitely use additional brain cells. And if they don't understand it, I'll be the one explaining. That's also the reason for not using abbreviations besides the most common ones in variable names. Always assume your code will be read by a typewriter monkey.