177
submitted 2 days ago* (last edited 2 days ago) by kyub@discuss.tchncs.de to c/programmer_humor@programming.dev

you are viewing a single comment's thread
view the rest of the comments
[-] brian@programming.dev 5 points 9 hours ago

found the following in our codebase the other day.

while(booleanFlag)
    return;

thhere wasn't more in the loop body, that was it. the loop conditional does exist and it can hurt you.

[-] rikudou@lemmings.world 2 points 5 hours ago

Can it hurt you, though? My guess would be every sane compiler and interpreter optimizes this.

this post was submitted on 04 Feb 2025
177 points (100.0% liked)

Programmer Humor

20351 readers
1270 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