cm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agoSenior Wisdomimagemessage-square25fedilinkarrow-up10arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up10arrow-down1imageSenior Wisdomcm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agomessage-square25fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarerockerface 🇺🇦@lemm.eelinkfedilinkarrow-up0·16 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-up0·edit-210 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-up0·10 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