this post was submitted on 10 Jun 2024
282 points (94.9% liked)

Programmer Humor

22841 readers
565 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
282
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/programmer_humor
 

Comment from my group project teammate. You don't need to comment every line lol

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 10 months ago (1 children)

Too many is still better than too few, and it's not close. Useless comments make parsing a bit harder. Missing comments can mean hours of research.

[โ€“] [email protected] 4 points 10 months ago* (last edited 10 months ago)

These are arguments talking past each other. Sure 1 useful comment and 9 redundant ones can be better than zero, but comments are not reliable and often get overlooked in code changes and become misleading, sometimes critically misleading. So often the choice is between not enough comments versus many comments that you cannot trust and will sometimes tell you flat-out lies and overall just add to the difficulty of reading the code.

There's no virtue in the number of comments, high or low. The virtue is in the presence of quality comments. If we try to argue about how many there should be we can talk past each other forever.