802
Senior Wisdom (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] ZILtoid1991@lemmy.world 17 points 1 month ago

Comment your code. Problem solved.

[-] sunbytes@lemmy.world 13 points 1 month ago

And decent variable names if you can, as well.

No magic numbers!

[-] ZILtoid1991@lemmy.world 7 points 1 month ago

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

[-] sunbytes@lemmy.world 6 points 1 month ago

$retVal and $item are my personal favourite.

[-] ipkpjersi@lemmy.ml 7 points 1 month ago

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 3 points 1 month ago

That happened to me multiple times...

this post was submitted on 14 Mar 2025
802 points (98.9% liked)

Programmer Humor

22995 readers
481 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