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

Programmer Humor

19197 readers
1006 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
[–] bloubz@lemmygrad.ml 6 points 1 year 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 1 year 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 1 year 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 1 year 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