Thursday, August 04, 2005

Auto Code Commenting

What a very cool product The Commentator is.

What is 'The Commentator'?
The Commentator uses revolutionary real-time language processing to actually grok your code and add the necessary comments on the fly. No more doco to slow you down. Just install The Commentator and watch as your coding elegance is eloquently decorated with insightful, nuanced commentary ...as you type. What's more, The Commentator's powerful Personality Controls allow you to tweak it's output so completely that it's as if The Commentator is speaking for you. In your voice. Explaining to those that need it, so that you can get on and get busy.
It does a wonderful job of commenting your code. Take this simple piece of code:
int sum = 0;
for (int i= 0; i < a.length; i++) {
   sum += a[i];
}
With some tweaking of the personality controls you can end up with the following examples of great commenting:

relevance=2,humour=8,verbosity=5
//okey dokey, lets sum the elements of a
int sum = 0; // the sum of all fears
for (int i= 0; i < a.length; i++) {
   sum += a[i]; // all your a[i] are belong to us
}
bitterness=9,profanity on
int sum = 0;
//don't even fucking *think* about asking
for (int i= 0; i < a.length; i++) {
   sum += a[i];
}
verbosity=3, relevance=0, religous references on
int sum = 0;
//goddamit I need some freaking coffee
for (int i= 0; i < a.length; i++) {
   sum += a[i];
}
If you have heard about Xtreme Programming, you may find the linked office chair quite amusing also.

Oh, and this product is only available for sale on April 1...

No comments: