this post was submitted on 14 Mar 2025
446 points (99.6% liked)

Programmer Humor

21487 readers
1421 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
[–] rockerface@lemm.ee 6 points 11 hours ago (1 children)

Yeah, there's a balance. If you comment every row of your code, you aren't naming things clearly. If you never comment, the context is always incomplete.

[–] vaionko@sopuli.xyz 2 points 6 hours ago* (last edited 6 hours ago) (1 children)

You don't comment what something does, ir can clearly be seen from the code itself. You comment why you do it.

[–] rockerface@lemm.ee 2 points 5 hours ago

Yes, that would be the context I'm talking about