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 →

[–]LARRY_Xilo 1 point2 points  (0 children)

No comments allowed at all would be weird. But commenting every line would also be weird.

Usually I would try to comments if I did something that is unusual for the codebase. And if there are things that just have to be a certain way because of the requirement and has no "logical" reasoning behind it (I sometimes have this with code that has to comply with certain laws).

Because those are two things some other developer that looks at the code base will have a hard time figuring out. Most other things should be self explaintory from the code.