Content pfp
Content
@
https://warpcast.com/~/channel/henry-dev
0 reply
0 recast
0 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp
πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅
@hz
My view on πŸ’¬ code comments has evolved. These days, I'm strict about leaving them.
1 reply
0 recast
1 reaction

πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅ pfp
πŸ„·πŸ„΄πŸ„½πŸ…πŸ…ˆπŸ΅
@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