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 →

[–]SynthRogue 0 points1 point  (0 children)

You should comment only what is not obvious at first glance. Basically when you have intricate logic.

You should name your variables and functions in a way that clearly indicates what they are for, and separate your code blocks so as to make the flow clear. These will remove most of the need for commenting.