this post was submitted on 13 Dec 2025
286 points (98.0% liked)

Programmer Humor

41326 readers
380 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] pineapple@lemmy.ml 2 points 2 months ago (1 children)

Still a mess to read though, anyone revewing the code will be like wtf?

You could do a lot worse. If the type of i was an object, you could overload the negation operation to have side-effects for the third snippet, for example.