55
How Should I Go About Commenting My Code?

How Should I Go About Commenting My Code?

5 years ago
Anonymous $L9wC17otzH

https://medium.com/@timothyfquirk/how-should-i-go-about-commenting-my-code-eb830ccfbf4b

It seems that everyone has a differing opinion on how to use comments when coding. Opinions that range from — any need for a comment is a failure to write readable code — to any comment is better than no comment at all.

With such a wide range of strong opinions, how am I to decide which approach is right for me? For those who are unsure, and looking to establish a strong foundation from the get-go, comments are used by developers to write notes to themselves, as well as to those who will read their code in the future.