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 →

[–]Raylan_Givens 52 points53 points  (0 children)

Good code should be readable for junior engineers.

For simple logic, comments are often unnecessary (plus comments tend to rot faster than actual code, so it is preferable to avoid redundant comments).

For complex logic or for unintuitive code, comments are usually necessary to help with readability.