I believe in writing code such a way that, you don’t need to provide the documentation with your source code to understand how it works. Naming the functions, variables and even logs can help understand the source code flow instead of writing long confusing comments. However sometimes the comments also help.

There are a lot of good discussions around whether we should add comments in our code or not. Please go through below links to read more: