I comment depending on if there is paper documentation for the code or not. If not, then most likely I am doing a code fix and I intersperse comments in the code. Especially if it is an algorithim I'm writing. If there is sufficient specs and documentation, then my comments are sparse and only where neccessary.
I also find that when starting a project, I comment a whole lot just to help during debugging. After I'm sure the code works, I tend to take most of the stupid comments out and leave what I think a programmer coming in after me (to maintain the code) would want to see.
I also find that when starting a project, I comment a whole lot just to help during debugging. After I'm sure the code works, I tend to take most of the stupid comments out and leave what I think a programmer coming in after me (to maintain the code) would want to see.