Writing good comments in code helps other programmers understand how it works.

image

Below is an example of bad comments in code.

image

The downside to so many comments is it makes your codebase very long and at times hard to read. So it's up to you to find a good balance.

Let me know what you think in comments below.

This post is also available on DEV.