DEV Community

[Comment from a deleted post]
Collapse
 
seraphicrav profile image
Ravaka Razafimanantsoa

I actually mainly dropped comments in the code I write. Function names, variables name should be self explaining. If I feel the urge to put a comment explaining what I do inside a function, it means that I need to make another function.

Comments looks like dead code to me, they are difficult to refactor, they add to maintenance and feel redundant most of the time too.

The only comments I write are links to some specifications or a link to an algorithm explanation.