- Thanks received
- 0
RW is not a nice chap. I bet he's an agent.
Read CodeComplete2. It is the bible for programmers on this subject.
In summary:
Comments should not be pseudo code.
Comments should not paraphrase code.
Comments should add value to a code section, where it is not immediately obvious to a competent programmer what is going on.

Please don't tell programmers to test. Their bugs finance Tester Manor.Developers should write little or no comments. Comments are bad and often lie.
If you want to know what a class does look at its unit test.
You DO all write unit tests...?!![]()
Current ClientCo. want me to write a comment block at the start of every function with a change history of that function. I've made the point that that's what source control is for, but they haven't changed the policy yet.![]()

