Slashdot Mirror


Auto Code Commenting Software, Free Chairs

sien writes "When you think about it, code is usually fairly mundane and simple. Finally someone has come up with a parser and lexer that actually auto-comments code, allowing for vastly more rapid coding. This amazing new tool is called The Commentator and claims to analyse source code as it's being written and insert the necessary code comments. It's absolutely amazing. Also the problem of seating for eXtreme Programming has finally been solved."

2 of 169 comments (clear)

  1. Re:This is becoming tedious. by Rei · · Score: 4, Insightful

    Perhaps it will be opposite this year? Picking the true article out of the heaps of really bad fakes?

    --
    You don't exist. Go away.
  2. This comes up in every discussion on comments... by EvanED · · Score: 4, Insightful

    ...and it's just not true.

    Good variable names (class names, function names, etc.) go a long way: they tell you a lot about WHAT the program is doing. (I would argue that they can't always say everything too, but that's another matter.)

    However, they don't tell you WHY you are doing what you are doing.

    Also, remember there are other reasons for comments besides people reading your code. JavaDoc/Doxygen comments allow documentation to be produced right from the source. Comments such as /* FALLTHROUGH */ can tell sourch code analyzers such as Lint some useful information too. (Not to mention the programmer that looks at your code and has to think for a sec "did he mean to leave out the break there?")