this post was submitted on 14 Mar 2025
759 points (98.8% liked)

Programmer Humor

21522 readers
2184 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
[–] ZILtoid1991@lemmy.world 12 points 8 hours ago (2 children)

Comment your code. Problem solved.

[–] ipkpjersi@lemmy.ml 3 points 3 hours ago (1 children)

Make sure to remember to update your comments too, otherwise it causes even more confusion when something works differently than it says it does.

[–] ZILtoid1991@lemmy.world 2 points 1 hour ago

That happened to me multiple times...

[–] sunbytes@lemmy.world 9 points 7 hours ago (1 children)

And decent variable names if you can, as well.

No magic numbers!

[–] ZILtoid1991@lemmy.world 2 points 7 hours ago (1 children)

WYM, I can't just name my functions foo() and my variables single letters? /s

[–] sunbytes@lemmy.world 2 points 3 hours ago

$retVal and $item are my personal favourite.