Auto Code Commenting Software, Free Chairs 169
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."
LOL (Score:1)
Re:LOL (Score:2)
This is becoming tedious. (Score:1, Redundant)
Individually, these stories might be amusing but when they're covering the entire front page it becomes rather wearing.
Re:This is becoming tedious. (Score:2, Insightful)
The fun of April fool's articles used to be picking the genuinely fake article amongst a whole heap of bizarre but true stories.
But this is just becoming boring.
Re:This is becoming tedious. (Score:5, Insightful)
Re:This is becoming tedious. (Score:1)
Re:This is becoming tedious. (Score:1, Funny)
Re:This is becoming tedious. (Score:5, Informative)
Relax, go over to Fark, who's random joke page can actually be amusing and read about the Pope being note quite dead yet and come back to Slashdot tomorrow. If you actually miss anything real, you can read it then.
Re:This is becoming tedious. (Score:2)
Re:This is becoming tedious. (Score:3)
short term memory loss (Score:2)
Clearly, I need to recalibrate the delicate balance of caffeine and cannabis in my system...
Re:This is becoming tedious. (Score:2)
Please shoot me now! (Score:3, Funny)
Re:Please shoot me now! (Score:2)
Won't someone please think of the children!
Why? What are you planning on doing to the children?
Re:Please shoot me now! (Score:2)
chair.. (Score:3, Funny)
1 Half Chair/Cheek ratio? (Score:1)
Re:chair.. (Score:5, Funny)
Re:chair.. (Score:2)
Come on guys! Test, build, *then* refactor...
Extreme XP seat? (Score:2, Funny)
I'm confused... (Score:2, Funny)
Re:I'm confused... (Score:2)
Re:I'm confused... (Score:2)
Off-color Commentary (Score:5, Funny)
I know it's an APJ... (Score:2, Insightful)
Re:I know it's an APJ... (Score:2)
And if they DID wipe out half their storage, I would be like, "Dude! You'd better look out -- that Ninja just dropped the PENDING_ORDERS table in Production and I think he's going flip out and chop off somebody's head!"
good code (Score:2, Funny)
Good code doesn't require comments - the variable names should tell you everything you need to know about the program.
Re:good code (Score:4, Funny)
Re:good code (Score:2)
Re:good code (Score:2, Insightful)
And remember kids, GOTO is the one true flow manipulator. Accept no substitutes.
Re:good code (Score:1, Troll)
(As an aside, this is a good example of optimizing code for production web delivery vs. clear, well-commented or self-documenting code for development.)
Re:good code (Score:2)
Some of the things you claim I can't really verify - I don't know why they made the decisions they did or if there was any thought behind it at all. For instance, the indexOf part might be intended for support of a specific browser's implementation of Javascript.
This comes up in every discussion on comments... (Score:5, Insightful)
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
this is why only one comment is necessary (Score:2)
Re:This comes up in every discussion on comments.. (Score:2)
Re:good code (Score:5, Funny)
You must be the guy that made the database at the last place I worked! The column names were complete sentences, including spaces and punctuation (it had never occurred to me that you could even do that). It was a real bitch to work with. Find the middle ground.
Re:good code (Score:1)
Re:good code (Score:1)
Good variable names tell you what a variable represents. Is that the only thing you think comments can do? Perhaps for simple programs that's all you would need. But what about insight as to why a certain algorithm was chosen? Or documenting things like the implementation of business rules?
Admit it, you're lazy. I am too. I don't comment my code nearly as much as I should, but I recognize its usefulness and wish I did more commenting.
Re:good code (Score:2)
It's April Fools, but I have met some people that actually believe this works. Those are also the same people that wrote the worst code I've seen in my life.
~D
Re:good code (Score:2)
I'm not sure if this is supposed to be FUNNY, a TROLL or someone just being STUPID.
Welcome to
OMG LOTF (Score:3, Insightful)
Re:OMG LOTF (Score:2)
Well, if you punt on the relevance issue, you could probably come pretty close with an old-style Dissociated Press-style Markov chain generator and a sufficient corpus of comments to draw from. (The other parameters would affect what comments are used for the corpus.)
This could be sort of interesting. But then, pretty much anything fed into such a Markov generator is "sort of interesting".
I su
Extra Madden Option (Score:5, Funny)
Re:Extra Madden Option (Score:1)
Now THAT, my good sir, is genuinely funny. A definite "+5 Coffee up the nose", in lieu of my non-existent mod points.
Thank you for brightening up my boring
Re:Extra Madden Option (Score:2)
Happy April 1st!
Re:Extra Madden Option (Score:2)
Umm, exactly what do you think the two people are doing in that chair, that they would sweat so much?
Dead horse.... (Score:1)
Re:Dead horse.... (Score:2)
That's an AFD product that would be of some use (Score:1)
Quote from the Commentator (Score:1)
Ha! Fat chance.
auto comments? (Score:1)
This should be a compiler option (Score:1)
Auto April Fools Submitting (Score:3, Insightful)
None of the
Come on 12am...
Re:Auto April Fools Submitting (Score:2)
It's genious really.
Comments... (Score:5, Funny)
Comments are for pussies (Score:1)
Nice example of poor commenting style (Score:3, Insightful)
i++;
really slow down the comprehesion level of most competent programers, because they have to filter out a lot of redundacy. Comment on purpose, on the more general function of things, etc. An automated program, could only really comment on the code that was there, and likely in an obvious way.
Not to detract from the marvelous humor of the 'article' but it was a good demonstration of the problem.
Re:Nice example of poor commenting style (Score:2)
The problem isn't so much the redundant comments like this, it's that some people think that they are appropriate to tell us what the function does. Perhaps more importantly, "i" should have a name that tells you what it's function is, and the comment could tell you perhaps WHY we're incrementing it. If it is blatantly obvious so that even the least intelligent programmer can figure out the how, what and why of the function, no comment is needed.
So if you have:
i++;
Re:Nice example of poor commenting style (Score:2)
I can't wait! (Score:2)
It's 12:20 on the west coast. Only another 3 1/2 hours left.
(( On the bright side, though, I did convince a friend that I'd taken a job in Redmond as a shill for (OK: 'Spokesperson') for Microsoft. ))
got this from fortune (Score:3, Funny)
I wish all the software I saw was as well commente (Score:4, Insightful)
I've never understood why people do things like this. Why not do something useful: specify what's a valid or invalid value of newHome, say when it should or should not be called. Or just leave it blank if you can't find something useful to say.
Re:I wish all the software I saw was as well comme (Score:1)
One way to shut up the said checker is to generate comments of this sort. Sad, but true
Re:I wish all the software I saw was as well comme (Score:2)
Yeah, as opposed to providing a valid comment, despite it's being "not necessary".
Re:I wish all the software I saw was as well comme (Score:3, Informative)
I suspect that you're trolling, but that is a Javadoc comment. The comment text, "Sets the Home to a new value," will be used as the method's description in the automatically generated HTML documentation.
Re:I wish all the software I saw was as well comme (Score:2)
Re:I wish all the software I saw was as well comme (Score:2)
Explain how that is possible, please.
In a working environ, a dipshit who fills their program with "//set i equal to 1" type shit deserves termination. It ain't for their own amusement, and it ain't amusing
Re:I wish all the software I saw was as well comme (Score:2)
I agree with you that a good programmer should be able to do this instinctively after design and implementation of the code. Unfortunately, not every (or even most) programmers are
Re:I wish all the software I saw was as well comme (Score:2)
Re:I wish all the software I saw was as well comme (Score:2)
I've seen plenty of OSS and proprietary software code that had comments that *looked* auto-generated. Stuff like:
public void setHome(String newHome)
{
}
I've never understood why people do things like this. Why not do something useful: specify what's a valid or invalid value of newHome, say when it should or should not be called. Or just leave it blank if you can't find something useful to say.
Have you never used an IDE [eclipse.org]? They look auto-generated bec
The personality check answers all questions.. (Score:2)
"Commentator" - you can get it for free. (Score:2)
Enough of the damn April Fools jokes (Score:1)
Re:Enough of the damn April Fools jokes (Score:2)
Wow! (Score:1)
Oooh! Brb... spending time at work writing code to insert random bash.org comments in commercial applications.
Utterly useless to me (Score:2, Interesting)
Re:Utterly useless to me (Score:2, Funny)
Re:Utterly useless to me (Score:2)
sLayout->addSpacing(10);
This adds very little clutter to the code, and if anyone wants to know why that line is there, they can head over to the bug database and read all 50 paragraphs of description and debate regarding the problem that this line fixed, when it was added, how it works, etc.
Personality Controls (Score:1)
This one is giving my PHB an idea :( (Score:3, Funny)
Missing languages (Score:2)
Auto Comment Slashdot (Score:1)
I can already taste the Karma.
Let's see, it's April Fools... (Score:2)
Me, I love April 1 because I can ignore
PaiRON? (Score:2)
PairOn... Pron... PairOn... Pron...
I don't know, but that chair seems designed exclusively for eXtreme Pr0n-watching with the SO.
Oh, wait; I'm on Slashdot... nevermind.
// TODO... (Score:5, Funny)
Cool Chair! (Score:1)
best one (Score:1)
Comments ... NO! (Score:2, Interesting)
Before:
int i = 1;
while (i 1000) {
i ++;
}
After:
int i=11;
while (i 8003) {
i += 8;
}
But... (Score:1, Interesting)
I thought the point of comments is to write the things that are not obvious. Obvious comments are coding spam where I work.
Raydude
Best April Fools I've seen :) (Score:3, Funny)
major lol
--
Toby
In the name of all that is geeky! (Score:1)
First Test Run (Score:3, Funny)
20 END 'boy I'm glad that's over
Groan (Score:2)
Who the hell is Dykstra? (Score:2)
but then again, they wrote the C0|\/||\/|3|\|7470r, who am I to question?
Re:ENOUGH!!!! (Score:1)
Re:ENOUGH!!!! (Score:5, Funny)
Re:ENOUGH!!!! (Score:1)
Would you F- off with the April Fool's whining already? We Get It! We've figured it out already: you are superior to the rest of us, who are obviously too easily amused.
To be bored with April Fool's Day is to be bored with life.
Re:Comments? Who needs comments? (Score:2)
Re:enough already, its past noon PST, stop (Score:2)
Re:*THE* Authority for all april fools pranks (Score:3, Insightful)
See user's other posts at
http://slashdot.org/~Urgo [slashdot.org]