concept reason in category java

This is an excerpt from Manning's book JavaFX in Action.
Give reasons for your answer
There’s undoubtedly a certain resistance to source code commenting among programmers. It was ever thus! Comments acquired a bad name during the 1970s and 1980s, when the prevailing mood was for vast quantities of documentation about every variable and parameter. Pure overkill. I’d suggest the ideal use for comments is in explaining the reasoning behind an algorithm. “Give reasons for your answer,” as countless high school examination papers would demand. To the oft-heard complaint “my code is self-documenting,” I’d counter, “only to the compiler!” Justifying your ideas in a line or two before each code “paragraph” is a useful discipline for double-checking your own thinking, with a bonus that it helps fellow coders spot when your code doesn’t live up to the promise of your comments.