DEV Community

Discussion on: To comment or not to comment?

Collapse
 
desi profile image
Desi

I think comments are important to provide context to others - maybe it’s not necessary to document why you made every choice, but maybe something specific is a best practice in your company and it might be nice to note that in the code.

I comment heavily right now so I can remember what things do and why I wouldn’t do it this other, often longer way I might think to do them!

Collapse
 
lankydandev profile image
Dan Newton

Follows the lines others are saying, that they show explain why / provide context as you've written.