odama626@lemmy.world to Programmer Humor@programming.dev · 3 years agomemelemmy.worldimagemessage-square9linkfedilinkarrow-up171arrow-down12
arrow-up169arrow-down1imagememelemmy.worldodama626@lemmy.world to Programmer Humor@programming.dev · 3 years agomessage-square9linkfedilink
minus-squarebloubz@lemmygrad.mllinkfedilinkarrow-up4·3 years agoComments 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
minus-squareDeebster@lemmyrs.orglinkfedilinkEnglisharrow-up0·3 years agoI upvoted this, but actually I hardly ever see this style of commenting. Maybe it’s because I never got very far into corporate coding.
minus-squareDarorad@lemmy.worldlinkfedilinkEnglisharrow-up2·3 years agoAt 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
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
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.
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