cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoWhen you look at code you wrote last yearlemmy.mlexternal-linkmessage-square20linkfedilinkarrow-up1719arrow-down19cross-posted to: [email protected]
arrow-up1710arrow-down1external-linkWhen you look at code you wrote last yearlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square20linkfedilinkcross-posted to: [email protected]
minus-squarestebo@lemmy.dbzer0.comlinkfedilinkarrow-up22·2 years 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-up5·2 years agoTry to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.
minus-squarescutiger@lemmy.worldlinkfedilinkarrow-up5arrow-down1·2 years 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.
minus-squareAppoxo@lemmy.dbzer0.comlinkfedilinkarrow-up2·2 years agoDon’t be a dick to your (current) co-workers.
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.
Don’t be a dick to your (current) co-workers.