Comments in Code, A Necessity ?

comments-in-codeA lot of developers write code and do not put comments in their code. Is comments in code necessary ?

Well, to me it is necessary. Why ? Because even when I am the only one who writes the code, when I visited it 2 years later, I do not have a clue of what the code is doing.

So, it is a good idea to write comment inside the code, for purposes of documenting the idea and thought of the moment. It will come in handy when you visit the code later. Because as we write more code and learn from other people’s code, we are aware of better ways to rewrite the code. Also known as refactoring.

It also helps other people understand your logic in writing the code, especially in multi-developer environment.

What do you think ? Is Comments in Code a necessity ?