Content
@
https://warpcast.com/~/channel/henry-dev
0 reply
0 recast
0 reaction
π·π΄π½π π π΅
@hz
My view on π¬ code comments has evolved. These days, I'm strict about leaving them.
1 reply
0 recast
1 reaction
π·π΄π½π π π΅
@hz
1. If a comment explains what the code does, I remove itβit's obvious. 2. If it explains why, I try to restructure or simplify the code so itβs clear without needing a comment. 3. When I do leave a comment, itβs only to explain why, never what. The above helps avoid sloppy, unhelpful comments.
0 reply
0 recast
0 reaction