odama626@lemmy.world to Programmer Humor@programming.dev · 1 year agomemelemmy.worldimagemessage-square11fedilinkarrow-up1101arrow-down11
arrow-up1100arrow-down1imagememelemmy.worldodama626@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square11fedilink
minus-squarebloubz@lemmygrad.mllinkfedilinkarrow-up3·1 year 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-squaresimple@lemmy.mywire.orglinkfedilinkarrow-up5·1 year agoMy “why” comments: // This is here because if I remove it, the whole server panics, no idea why. So don't delete it.
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
My “why” comments:
// This is here because if I remove it, the whole server panics, no idea why. So don't delete it.