"Don't comment bad code -- rewrite it." -- The Elements Of Programming Style by Brian Kernighan and P.J. Plauger. 1974.
Until your code is as good as Kernighan's you probably want to comment what you intended to do.
Until your code is as good as Kernighan's you probably want to comment what you intended to do.
Also see Software Tools and The Practice Of Programming.
Reading page 141, he generally recommends that everyone should comment their code for non-trivial programs. Also, "One thing we will _not_ do is make pronouncements about how many comments a program should have."