cm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agoWhen you look at code you wrote last yearexternal-linkmessage-square11fedilinkarrow-up126arrow-down10
arrow-up126arrow-down1external-linkWhen you look at code you wrote last yearcm0002@lemmy.world to Programmer Humor@programming.dev · 7 days agomessage-square11fedilink
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up2·7 days agoAnd I always think I write good comments until a year later I’m like these comments don’t help shit
minus-squareAppoxo@lemmy.dbzer0.comlinkfedilinkarrow-up1·7 days agoTry to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.
minus-squarescutiger@lemmy.worldlinkfedilinkarrow-up1·7 days agoYeah, write it for the person who has to replace you when you inevitably get laid off so that your company can hire someone for half your salary.
And I always think I write good comments until a year later I’m like these comments don’t help shit
Try to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.
Yeah, write it for the person who has to replace you when you inevitably get laid off so that your company can hire someone for half your salary.