cm0002@lemmy.world to Programmer Humor@programming.dev · 13 hours agoSenior Wisdomimagemessage-square24fedilinkarrow-up1438arrow-down12
arrow-up1436arrow-down1imageSenior Wisdomcm0002@lemmy.world to Programmer Humor@programming.dev · 13 hours agomessage-square24fedilink
minus-squarerockerface 🇺🇦@lemm.eelinkfedilinkarrow-up6·10 hours agoYeah, there’s a balance. If you comment every row of your code, you aren’t naming things clearly. If you never comment, the context is always incomplete.
minus-squarevaionko@sopuli.xyzlinkfedilinkarrow-up2·edit-24 hours agoYou don’t comment what something does, ir can clearly be seen from the code itself. You comment why you do it.
minus-squarerockerface 🇺🇦@lemm.eelinkfedilinkarrow-up2·4 hours agoYes, that would be the context I’m talking about
Yeah, there’s a balance. If you comment every row of your code, you aren’t naming things clearly. If you never comment, the context is always incomplete.
You don’t comment what something does, ir can clearly be seen from the code itself. You comment why you do it.
Yes, that would be the context I’m talking about