cm0002@lemmy.world to Programmer Humor@programming.dev · 14 hours agoSenior Wisdomlemmy.mlimagemessage-square24fedilinkarrow-up1443arrow-down12cross-posted to: [email protected]
arrow-up1441arrow-down1imageSenior Wisdomlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 14 hours agomessage-square24fedilinkcross-posted to: [email protected]
minus-squarerockerface 🇺🇦@lemm.eelinkfedilinkarrow-up6·11 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-25 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·5 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