Hai guys,
I ve seen people including comments in their program..
-
Is it to improve inter-programmer communication
and code readability, by explicitly specifying programmers’
intentions and assumptions? -
Should comments be in technical terms rather than in natural launguage terms?
-
How to use comments as effective as possible?
-
Is it really a good practice adding comments to a program?
Comments should only be used to explain why the code is the way it is. It should never explain what the code is doing. What the code is doing is described by the code.
That being said, some languages have tools that look for special characters in the comments in order to generate documentation. Java is one such language. But these aren’t so much code comments as they are documentation that happens to use the same syntax as language comments.