this post was submitted on 06 Jul 2024
1475 points (99.4% liked)

Programmer Humor

18407 readers
538 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] mundane@feddit.nu 69 points 1 week ago (12 children)

Comments should explain "why", the code already explains "what".

[–] smeg@feddit.uk 59 points 1 week ago* (last edited 1 week ago) (3 children)

The allowable exception is when the what is a what the fuck, as in you had to use a hack so horrible that it requires an apology comment

[–] bleistift2@sopuli.xyz 4 points 1 week ago

Describing the what also helps when you dabble in a new technology or little-used technology. It helps to explain to yourself what you’re doing and it helps in onboarding. “Hey, newbie, there’s a function in XYZ module that’s extensively documented. Look there for guidance.”

load more comments (2 replies)
load more comments (10 replies)