Is writing comments inside methods not a good practice?
Posted
by
Srini Kandula
on Programmers
See other posts from Programmers
or by Srini Kandula
Published on 2011-02-28T01:16:14Z
Indexed on
2011/02/28
15:32 UTC
Read the original article
Hit count: 275
comments
|coding-standards
A friend told me that writing comments inside methods is not good. He said that we should have comments only for the method definitions(javadocs) but not inside the method body. It seems he read in a book that having comments inside the code means there is a problem in the code. I don't quite understand his reasoning. I think writing comments inside the method body is good and it helps other developers to understand it better and faster. Please provide your comments.
© Programmers or respective owner