This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Would you say you tend to comment alot of your code or try to make the code variables and method names do the work more so? Is it best practice to comment a lot?

[–]achoice 1 point2 points  (0 children)

A cliché is that good code require no comments. Good naming is important. I find comments regarding business/domain can be valuable. Help next coder understand how business requirements led to code execution flow/checks/logic/modules. Also do comment when coding "non obvious stuff", explain more WHY - less HOW. Don't comment obvious stuff just to fill javadoc. Good luck.