F
@Spigot said:But, if what i'm pulling from your commented example is correct, you have around 6 lines of comments for every if statement.
Actually, the comments pertain to an entire block of code, not just one line. Comments irritate me because they interfere visually with the linear flow of code, so I use them sparingly. When I do comment, I try to make it a complete enough explanation that it will answer my questions when I return to the code later, having forgotten the logic flow.
@Spigot said:More important then comment debate, what matters is whether your style helps you, or gets in your way. If I don't like your comments, I can just grep them out. :)
Truly spoken. I responded because I disagree that only bad code needs commenting. I believe I've given an example to the contrary.