bigboismith@lemmy.world to Programmer Humor@programming.dev · 1 year agoI am God's greatest programmerlemmy.worldimagemessage-square54fedilinkarrow-up1694cross-posted to: programmerhumor@lemmy.ml
arrow-up1694imageI am God's greatest programmerlemmy.worldbigboismith@lemmy.world to Programmer Humor@programming.dev · 1 year agomessage-square54fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up9·1 year agoComments should only be used to describe stuff that’s otherwise difficult to convey with code.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up18·1 year agoThe best explanation I’ve ever heard is: Comments should state the ‘Why’ never the ‘What’.
minus-squaredukk@programming.devlinkfedilinkarrow-up3·1 year 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·1 year 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