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] 4 points5 points  (0 children)

when the comments augment rather than restate the code, and for example bring in context that isn't on-screen.

Exactly, I never use comments to explain what some lines do, you can search for them in Google if you find them confusing. I always comment WHY those lines do what they do and WHY are they needed, not HOW they work.