Comment
Don't comment bad code, rewrite it!Comments Do Not Make Up for Bad Code
Explain Yourself in Code
// Check to see if the employee is eligible for full benefits
if ((employee.flags & HOURLY_FLAG) &&
(employee.age > 65))if (employee.isEligibleForFullBenefits())Good Comments
Legal Comments
Informative Comments
Clarification
Warning of Consequences
TODO Comments
Javadocs in Public APIs

Bad Comments
Redundant Comments
Noise Comments
Position Markers
Closing Brace Comments
Commented-Out Code
Others
Last updated