bigboismith@lemmy.world to Programmer Humor@programming.dev · 2 years agoI am God's greatest programmerlemmy.worldimagemessage-square54linkfedilinkarrow-up1695cross-posted to: programmerhumor@lemmy.ml
arrow-up1695imageI am God's greatest programmerlemmy.worldbigboismith@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square54linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up9·2 years agoComments should only be used to describe stuff that’s otherwise difficult to convey with code.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up18·2 years agoThe best explanation I’ve ever heard is: Comments should state the ‘Why’ never the ‘What’.
minus-squaredukk@programming.devlinkfedilinkarrow-up3·2 years agoYeah. Most of the time I use comments in my algorithms, as they often use some weird optimized black magic which are difficult to understand without comments.
minus-squareDoomBot5@lemmy.worldlinkfedilinkEnglisharrow-up2·2 years agoLike don’t set this value to the obvious default. Bad stuff happens
Comments should only be used to describe stuff that’s otherwise difficult to convey with code.
The best explanation I’ve ever heard is:
Yeah. Most of the time I use comments in my algorithms, as they often use some weird optimized black magic which are difficult to understand without comments.
Like don’t set this value to the obvious default. Bad stuff happens