this post was submitted on 16 Jun 2023
120 points (98.4% liked)

Programmer Humor

19821 readers
817 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
[–] bloubz@lemmygrad.ml 6 points 2 years ago (2 children)

Comments should almost always be reserved to "why" and not "what" or "how". Give extra context that can not be brought in another way. The rest should be clear from the code

[–] olekskon@lemmy.mywire.org 7 points 2 years ago

My "why" comments:

// This is here because if I remove it, the whole server panics, no idea why. So don't delete it.
[–] Deebster@lemmyrs.org 1 points 2 years ago (1 children)

I upvoted this, but actually I hardly ever see this style of commenting. Maybe it's because I never got very far into corporate coding.

[–] Darorad@lemmy.world 2 points 2 years ago

At least in my experience it's more people just stop leaving comments. Best place I worked had comment review as a part of code review, that was nice