DEV Community

Discussion on: You should write a comment on every line of code

Collapse
 
davidjames profile image
Info Comment hidden by post author - thread only visible in this permalink
DavidJames

I have no idea how you supported the idea but I don't allow it on my team (commenting every line). Are you nuts? Maybe it's different for a team that mostly focuses on the back-end but I doubt it. Properly named variables and functions along with well formatted code (the IDE should do this for you) serve as their own documentation 90% of the time (in my 25+ years of experience). Comments are more for blocks of code, e.g. "this bit does X", then you should be able to take it from there by reading the code itself.

Some comments have been hidden by the post's author - find out more