|
Re: Thoughts On Comments In Team Code
Quote:
Originally Posted by Alex Webber
Our team doesn't put code inside our methods. We Java Doc our code, with easily explainable wording so others can understand what is going on.
During development we typically do, but we transfer to Java Docs sooner or later.
|
Javadoc explains what the method does and anything that's needed for it to work properly. It doesn't explain reasoning behind the logic inside, which is very unhelpful when trying to debug. It doesn't need to be as zealous as OP's example, but you should at least have comments explaining non-obvious code
__________________
WPILib
GRIP, RobotBuilder
|