| ??? 05/20/10 08:46 Read: times |
#176054 - When comments go wrong |
I have just been sent someones code to fix today and its covered in comments, so I just stripped all the comments out and was able to see what was going wrong.
The golden rule is:- only put comments in your code when its not clear what is going on,or there is some non-obvious side effect, nothing else I don't need to be told that a clock signal is a clock. |
| Topic | Author | Date |
| When comments go wrong | 01/01/70 00:00 | |
| Always document what the code is doing or the weather | 01/01/70 00:00 | |
| do you have some examples of that? | 01/01/70 00:00 | |
| I've never seen anything like that ... | 01/01/70 00:00 | |
| Do it like a pro. ;) | 01/01/70 00:00 | |
| the dubious value of comments | 01/01/70 00:00 | |
| RE: not subject to any scrutiny of the compiler | 01/01/70 00:00 | |
| limited vocabulary | 01/01/70 00:00 | |
| dubious | 01/01/70 00:00 | |
| Please remove baby from bathwater before disposal! | 01/01/70 00:00 | |
| Good selection of symbol names helps a lot | 01/01/70 00:00 | |
| variable/function names can be misleading too | 01/01/70 00:00 | |
| RE: the word Andy will be so kind to supply... | 01/01/70 00:00 | |
| Well | 01/01/70 00:00 | |
| Dodgy premise | 01/01/70 00:00 | |
That's no fun. | 01/01/70 00:00 |



