~ Neil (SCJP)
Sandeep
Sandeep
Pushkar Choudhary wrote:
My code did not have ANY comments inside a method. When I talking about comments, I was referring to the class-level and method-level comments which describe what that class or method does. Something like this:
Apart from this, there were no comments inside any methods.
They also provided their feedback for the code.
The feedback had 2 comments, one of which was "Too Many Comments. More comments than code."
Pushkar Choudhary wrote:Ok. Maybe I didn't mention clearly. Let me try once more.
My code did not have ANY comments inside a method. When I talking about comments, I was referring to the class-level and method-level comments which describe what that class or method does. Something like this:
Apart from this, there were no comments inside any methods.
Ask them if they can provide more details on the feed back by providing them your opinion.
Sandeep
JavaRanch Granny wrote:Debug only code - comments can lie.
Pushkar Choudhary wrote:Ok. Maybe I didn't mention clearly. Let me try once more.
My code did not have ANY comments inside a method. When I talking about comments, I was referring to the class-level and method-level comments which describe what that class or method does. Something like this:
Apart from this, there were no comments inside any methods.
Even better, for me, would bebecause then isPassingScore is testable in isolation, *and* eliminates the need for a comment.Mike Isano wrote:
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|