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."

128 of 169 comments (clear)

  1. LOL by incubuz1980 · · Score: 1

    That is just so cool, asnd funny....

    1. Re:LOL by xstonedogx · · Score: 1

      Woah, not so fast. We better consult TBS on this one.

    2. Re:LOL by FlopEJoe · · Score: 1

      My mod points are useless today. When will /. let us mod the article???

  2. This is becoming tedious. by reality-bytes · · Score: 1, Redundant



    Individually, these stories might be amusing but when they're covering the entire front page it becomes rather wearing.

    --
    Ripping an new rectum in the fabric of spacetime.
    1. Re:This is becoming tedious. by Hamstij · · Score: 2, Insightful
      Hear Hear.

      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.

    2. 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.
    3. Re:This is becoming tedious. by Anonymous Coward · · Score: 1, Funny

      It could be worse: imagine what it would be if we had dupes about April fools !

    4. Re:This is becoming tedious. by Auckerman · · Score: 4, Informative

      Every year slashdot does this, every year people complain. The joke is being fooled into complaining. The joke is people revisit the site like every normal day hoping for it to end and it doesn't. The editors are having a laugh at YOUR expense and you don't even know it.

      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.

      --

      Burn Hollywood Burn
    5. Re:This is becoming tedious. by yanko22 · · Score: 1

      Finally a good excuse for ./ to not have a single informative article the whole day. Woohooh

      --
      The atheist,by merely being in touch with reality,appears shamefully out of touch with the fantasy life of his neighbors
    6. Re:This is becoming tedious. by null+etc. · · Score: 2

      I agree, but this one is actually pretty funny if you read it (and are a programmer).

    7. Re:This is becoming tedious. by jericho4.0 · · Score: 1
      I agree. Enough already. Some of us need to feel like we're wasting time more productivly.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    8. Re:This is becoming tedious. by INetUser · · Score: 1

      Well, if you notice that the comments count on the front page would appear to be at an all time low, so I guess /. has made itself irrelevant today.

    9. Re:This is becoming tedious. by TyfStar · · Score: 1
      relax, go over to Fark

      Now THAT is a good April 1 page!! it instantly made me think of every geek I know. :-D

      --

      "There is a reason Linux is free"

      ~me~

    10. Re:This is becoming tedious. by Neop2Lemus · · Score: 1

      the gmail story is all true. Horribly, horribly, true.

      --
      Needle Nardle Noo
  3. Please shoot me now! by nacturation · · Score: 2, Funny

    Won't someone please think of the children!

    --
    Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    1. Re:Please shoot me now! by StalinsNotDead · · Score: 1

      Please shoot me now!

      Won't someone please think of the children!


      Why? What are you planning on doing to the children?

      --
      Thanks to the internet, we can now all die alone together! -SomeWoman
    2. Re:Please shoot me now! by Atzanteol · · Score: 1

      Perhaps he intends to *have* some.

      --
      "Ignorance more frequently begets confidence than does knowledge"

      - Charles Darwin
  4. chair.. by Kaisum · · Score: 3, Funny

    That chair is not big enough for some men's asses.

    1. Re:chair.. by ReverendLoki · · Score: 4, Funny

      Sadly, that is the only chair big enough for some men's asses...

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    2. Re:chair.. by lpangelrob2 · · Score: 1
      They must not have designed that chair with XP in mind, because it looks like as soon as I sit on it the chair will lean over and break.

      Come on guys! Test, build, *then* refactor...

  5. Extreme XP seat? by Anonymous Coward · · Score: 2, Funny

    I sure hope this 2-person seat can handle a 500-pound couch potato, otherwise my partner will by flying.

  6. I'm confused... by AnonymousJackass · · Score: 2, Funny

    That chair -- the "PairOn" -- is it for intimate co-workers, siamese twins or for people with big, fat asses?

    1. Re:I'm confused... by tmasssey · · Score: 1
      One of the principles of Extreme Programming is paired programming: two programmers sitting in front of a single computer. This is a chair to "facilitate" this, including being able to elevate the chair to "standing height" for the daily standing meetings, also a part of XP...

    2. Re:I'm confused... by zootm · · Score: 1

      XP = eXtreme Programming, a means of development which preaches hands-on working and strict adherence to a few work processes. One of these is that all code should be written by two people at once.

  7. Off-color Commentary by Fox_1 · · Score: 4, Funny

    Beauty, this will replace the legions of QA people that used to do my code commenting

    --
    The rock, the vulture, and the chain
  8. I know it's an APJ... by jacen_sunstrider · · Score: 2, Insightful

    But I can't help but think how this could ruin some programmers. There are some programmers who live by documenting their work before they actually write it, as a guide to what they do. In fact, in my assembly language class, they say this is the best way to do it (not true IMHO, but oh well). besides, don't you just get a thrill out of documenting a finished routine, going to compile it, and realize you copy/pasted over a large chunk of code? or, more likely, forgetting an end tag and commenting out half of your storage?

    1. Re:I know it's an APJ... by JonTurner · · Score: 1

      Just remember, Ninjas don't forget endtags like other mammals.

      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!"

  9. good code by theMerovingian · · Score: 2, Funny


    Good code doesn't require comments - the variable names should tell you everything you need to know about the program.

    --
    "If you think you have things under control, you're not going fast enough." --Mario Andretti
    1. Re:good code by DarkMantle · · Score: 3, Funny

      rriiiiigggghhhhtttt, and the tooth fairy created linux

      --
      DarkMantle I been bored, so I started a blog.
    2. Re:good code by RichardX · · Score: 1, Insightful

      Good code doesn't require variable names - the memory addresses should tell you everything you need to know about the program.
      And remember kids, GOTO is the one true flow manipulator. Accept no substitutes.

      --
      Curiosity was framed. Ignorance killed the cat.
    3. Re:good code by bwalling · · Score: 4, Funny

      Good code doesn't require comments - the variable names should tell you everything you need to know about the program.

      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.

    4. Re:good code by kevinx · · Score: 1

      I started to laugh, but then the laughter turned to concerned when I realized that this was modded insightful rather than funny.

    5. Re:good code by Moskie · · Score: 1

      This is a joke, right? Insightful my butt.

      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.

    6. Re:good code by metlin · · Score: 1

      I don't think that's a nick that Linus Torvalds would appreciate munnnchhhhhhhh.

    7. Re:good code by Anonymous Coward · · Score: 1, Interesting


      Dude, if you have some screenshots or files left over from that place, you should send some choice bits over to here for proper... umm... evaluation.

    8. Re:good code by Dracolytch · · Score: 1

      I'm not sure if this is supposed to be FUNNY, a TROLL or someone just being STUPID.

      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

      --
      This sig has been enciphered with a one-time pad. It could say almost anything.
    9. Re:good code by theMerovingian · · Score: 1


      I'm not sure if this is supposed to be FUNNY, a TROLL or someone just being STUPID.

      Welcome to /. on April 1, brother. Believe me, I was as surprised by the "Insightful" moderation as anyone!

      --
      "If you think you have things under control, you're not going fast enough." --Mario Andretti
    10. Re:good code by MrVictor · · Score: 1

      Best name for a function ever: doThisShit()

    11. Re:good code by josath · · Score: 1
      There is a limit to this though, a guy who worked here for a bit had a tendancy to do things like:
      function calculateTheSumOfTwoNumbers(theFirstNumber, theSecondNumber)
      {
      var temporarySumVariable = theFirstNumber;
      temporarySumVariable += theSecondNumber;
      return temporarySumVariable;
      }
      --
      sig? uhh, umm, ok
    12. Re:good code by Anonymous Coward · · Score: 1, Interesting

      It's not even very well optimized.
      Ignoring the obivous need for a generally unique function name...

      dm.MM_p=[];
      would save some bytes and parsing time

      The "i=0" isn't needed, since default type of i will be "undefined" which will silent convert to 0 in an integer context

      It "should" be quicker to do "++i" rather than "i++" in the for loop.

      The "!=0" test of indexOf result isn't needed

    13. Re:good code by lukewarmfusion · · Score: 1

      In case it wasn't recognized (and judging by the troll mod, it wasn't) that is a Macromedia function. It's usually inserted by Dreamweaver (and maybe Flash or Contribute, both of which generate HTML pages).

      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.

    14. Re:good code by ggvaidya · · Score: 1

      Why not, he's admitted as much.

  10. OMG LOTF by sfcat · · Score: 3, Insightful

    This is the first funny article of the day. I like the self-importance option. In truth, a tool like this is impossible to actually write, but it would be cool since I never comment my code. But I don't comment for job security and I hate my coworkers. Just kiddin'

    --
    "Those that start by burning books, will end by burning men."
    1. Re:OMG LOTF by Jerf · · Score: 1

      In truth, a tool like this is impossible to actually write, but it would be cool since I never comment my code.

      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 suppose this would also be a punt on the "coherence" issue, but I think that would just be part of the joke.

  11. Extra Madden Option by Shadow+Wrought · · Score: 4, Funny

    I wonder if it will read the code commentary aloud in John Madden's voice for extra money?

    --
    If brevity is the soul of wit, then how does one explain Twitter?
    1. Re:Extra Madden Option by Fulg · · Score: 1

      I wonder if it will read the code commentary aloud in John Madden's voice for extra money?

      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 /. fake story day!

      --
      gcc: no input sig
    2. Re:Extra Madden Option by schon · · Score: 1

      sweat contest

      Umm, exactly what do you think the two people are doing in that chair, that they would sweat so much? .. and why would *anyone* want to hold a contest to see who's the sweatiest?

    3. Re:Extra Madden Option by Shadow+Wrought · · Score: 1
      I was laughing as I wrote it thinking of all the "BAM's" and "BOOM's" that he would use to describe stuff;-)

      Happy April 1st!

      --
      If brevity is the soul of wit, then how does one explain Twitter?
  12. Dead horse.... by matth1jd · · Score: 1

    Beating a dead horse doesn't even come close to these stories now.... please stop. Please.

    1. Re:Dead horse.... by rayde · · Score: 1

      oh come on, it's april fools. if you want some real news, go to CNN's Sci/Tech page for today. we'll all welcome you back here tomorrow with duplicate stories on how much we all hate SCO.

    2. Re:Dead horse.... by Jane+Hackworth · · Score: 1

      There's an address bar up near the top of your browser. If you click in it and type an URL, you can change the website you're looking at. No, I'm not kidding!

  13. That's an AFD product that would be of some use by roberto0 · · Score: 1

    Funnier than Google Gulp, but not as funny as that Parrot gag from O'Leary a few years ago.

    --
    Those who can, do. Those who can't, simulate.
  14. auto comments? by thundercatslair · · Score: 1

    This is probably a joke, but comments are the most useful part of any code. I used to hate them finding it boring and useless. After a I wrote a few large projects I couldn't comment enough. Auto comments might not be as usefull rather then if you did them yourself

    1. Re:auto comments? by me+at+werk · · Score: 1

      I think auto comments would be useful. For example, we were talking in #firefox the other day and somehow got onto "optimized code", which, while not as easy to read as the longer code which happens to be self explanatory, does the job better with less text.

      The auto commenter could come through and turn that optimized code into a sentence or so of what it'd do, then post it as comments. It'd be pretty useful, especially if it were able to do it recursively (Got a program and can't easily figure out what it does? Run the auto commenter and it'll tell you in plain english!).

      It's brilliant, just not the best application of the application right off. Best for the 'maintenance programmer' or someone trying to understand your code.

      --
      For context, click Parent.
  15. This should be a compiler option by zigzag · · Score: 1

    Along with the new auto-debug option.

  16. Auto April Fools Submitting by MadMorf · · Score: 2, Insightful

    Ok, obviously /. has implemented an Auto April Fools Submittal mechanism.

    None of the /. staff are actually at work today, the AAFS is handling all of these submissions automagically.

    Come on 12am...

    1. Re:Auto April Fools Submitting by Jellybob · · Score: 1

      I'd never thought of it that way... I guess it would make sense though - they can arrange the yearly company party without anyone knowing they're gone!

      It's genious really.

  17. Comments... by arose · · Score: 4, Funny
    /* I don't know what I was thinking */
    /* This shouldn't work... */
    /* I'll just insert a backdoor here, no one will ever notice */
    /* SCO code here, don't tell them */
    --
    Analogies don't equal equalities, they are merely somewhat analogous.
  18. 1 Half Chair/Cheek ratio? by seanvaandering · · Score: 1

    Looking at it, it almost looked like it developed from that point alone ;)

  19. Comments are for pussies by govtcheez · · Score: 1

    It was hard to write, it should be hard to read.

  20. Nice example of poor commenting style by Kelerain · · Score: 3, Insightful

    Very good humor! But on a more serious note, this is actually part of the problem with some comments. They duplicate the code. Comments like

    i++; // increment i by one

    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.

    1. Re:Nice example of poor commenting style by Peyna · · Score: 1

      i++; // increment i by one

      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++; // increment by one

      perhaps a better function would be:

      i++; // increase number of days since slashdot posted a meaningful article because the time is now 24:00 GMT.

      --
      What?
    2. Re:Nice example of poor commenting style by moxjake · · Score: 1

      Not only that, but they misspelled Dijkstra

    3. Re:Nice example of poor commenting style by HFXPro · · Score: 1

      what ID though? does application of this function have any side effects?

      --
      Reserved Word.
  21. I can't wait! by Stephen+Samuel · · Score: 1
    .... Until 12:00 Noon hits the International Date line.

    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. ))

    --
    Free Software: Like love, it grows best when given away.
    1. Re:I can't wait! by !usrlocalbinallen · · Score: 1

      That should be spokesmodel!

  22. got this from fortune by mpaon · · Score: 3, Funny

    Good programmers never comment their code; it was hard to write, it should be hard to understand.

  23. I wish all the software I saw was as well commente by Software · · Score: 3, Insightful
    I've seen plenty of OSS and proprietary software code that had comments that *looked* auto-generated. Stuff like:
    /** Sets the Home to a new value */
    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.

  24. The personality check answers all questions.. by Gopal.V · · Score: 1

    if you have any more doubts - look at the configuration screen. Also peek at the commented code - looks familiar ?. (linux, etc..)

  25. Re:ENOUGH!!!! by jkmiecik · · Score: 1

    Amen brother. It's just fucking annoying.

  26. "Commentator" - you can get it for free. by AtariAmarok · · Score: 1

    This is truly a revolutionary technology. There is even a mode whereby it will be nice and friendly and propagate itself through "Microsoft Internet Explorer" without you even asking: inserting comments into all the code on your computer for you! They can't do it all for free, so don't you worry at all about the ''' home loan and ''''viagra comments that appear in all of your code. It it is just part of their business model.

    --
    Don't blame Durga. I voted for Centauri.
  27. Enough of the damn April Fools jokes by Laconian · · Score: 1

    Slashdot has become utterly worthless today. I thirst for legitimate articles!

    1. Re:Enough of the damn April Fools jokes by nb+caffeine · · Score: 1

      Dude, thats every day. At least there isnt dupes today... (knock on wood)

      --

      "Something's wrong with you...and I hope we never do meet again." - Deftones When Girls Telephone Boys
  28. Wow! by ABaumann · · Score: 1

    Man do I wish this was real. Maybe it could just take random quotes from bash.org and insert them as comments in my code.

    Oooh! Brb... spending time at work writing code to insert random bash.org comments in commercial applications.

  29. Utterly useless to me by Cheirdal · · Score: 2, Interesting

    I can look at any piece of code in any project I've worked on and see what the code technically does. What I can't do is look at something and say "Ah, this criteria exists in the code because of business rule #275 for customer X." Almost all my comments are related to business rules and what I'm trying to accomplish. There is no way an autocomment tool could analyze the code for the business rules I use.

  30. Personality Controls by Rightcoast · · Score: 1

    I will run mine with verbosity turned way down and bitterness turned way up...Just like the real me!

  31. This one is giving my PHB an idea :( by mollog · · Score: 3, Funny

    The PHB wants to order these so he has a place to sit while micromanaging.

    --
    Best regards.
  32. Missing languages by frisket · · Score: 1

    Damn, still nothing for XSLT.

  33. Auto Comment Slashdot by superstick58 · · Score: 1
    I have adapted this technology to the Slashdot commenting system. Now, I will always have first post, always be the first to say In Soviet Russia...

    I can already taste the Karma.

  34. Let's see, it's April Fools... by syphax · · Score: 1

    ... so it must be time to head over to ./ and BITCH about the lame April Fool's jokes!

    Me, I love April 1 because I can ignore ./ for a full day. Or at least a few more hours than usual...

    --
    Simple Unexpected Concrete Credible Emotional Stories
  35. Re:Comments? Who needs comments? by MyLongNickName · · Score: 1

    It says "this guy shouldn't be allowed to touch himself, much less a computer".

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
  36. PaiRON? by red_dragon · · Score: 1

    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.

    --
    In Soviet Russia, Jesus asks: "What Would You Do?"
  37. // TODO... by duckpoopy · · Score: 4, Funny

    //TODO: remove this comment

    --
    word.
  38. Cool Chair! by lbmouse · · Score: 1

    I want that chair! Finally a Herman Miller that will fit my fat ass.

  39. Re:Utterly useless to me by Cheirdal · · Score: 2, Funny

    Damn you April Fool's Day! ;)

  40. Re:ENOUGH!!!! by jaysones · · Score: 5, Funny

    I guess we'd better cancel Sense of Humor Day too, then.

  41. best one by jonathanduty · · Score: 1

    This gets my vote as best one of the day.

  42. Comments ... NO! by jmartens · · Score: 2, Interesting

    Real programmers don't comment. If you did that someone might actually be able to figure out what you are doing. You need a code obfuscate function that takes simple functions and makes them complex and adds nonsensical comments, such as:

    Before:
    int i = 1;
    while (i 1000) { ... A[i] ...;
    i ++;
    }

    After: //Super Froopy node generator
    int i=11; //Charge the Interociter
    while (i 8003) { ... A[(i-3)/8] ...; //null node generator
    i += 8;
    }

    --
    Now that's a death ray!
  43. But... by RayDude · · Score: 1, Interesting

    If the comments are so simple that a machine parser can write them, how could they possibly be useful?

    I thought the point of comments is to write the things that are not obvious. Obvious comments are coding spam where I work.

    Raydude

  44. Best April Fools I've seen :) by Toby+The+Economist · · Score: 2, Funny

    bitterness=9,profanity on

    major lol :)

    --
    Toby

  45. 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?")

  46. Re:ENOUGH!!!! by Jane+Hackworth · · Score: 1
    That...was "insightful"?

    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.

  47. In the name of all that is geeky! by Conspiracy_Of_Doves · · Score: 1

    Enough! Make it stop! Make it stop!

  48. First Test Run by Nom+du+Keyboard · · Score: 2, Funny

    10 PRINT "Hello World" 'what a novice
    20 END 'boy I'm glad that's over

    --
    "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
    1. Re:First Test Run by gkwok · · Score: 1
      You forgot

      15 GOTO 10 'um, yeah. goto line 10

  49. Re:I wish all the software I saw was as well comme by Vadim+Grinshpun · · Score: 1

    Because some places require you to write comments (even when they are really not necessary) and enforce it with a style checker.
    One way to shut up the said checker is to generate comments of this sort. Sad, but true :)

  50. GIVE ME CYANIDE!.... by djan · · Score: 1

    It's got to be more peaceful than this.

  51. short term memory loss by commodoresloat · · Score: 1
    I feel like the guy from memento. This is the third time I stopped what I was doing to look at slashdot, and it's the third time I forgot it was april fool's until halfway through the story. You think I'd get it by now.

    Clearly, I need to recalibrate the delicate balance of caffeine and cannabis in my system...

  52. Re:*THE* Authority for all april fools pranks by DrinkingIllini · · Score: 1

    Stop Posting This Shit IN EVERY DAMN ARTICLE!

    Thank you.

  53. this is why only one comment is necessary by commodoresloat · · Score: 1

    /* You're not supposed to understand this */

  54. Groan by Chanc_Gorkon · · Score: 1

    Sheesh....Now the fscking ADS are even April Fools.

    --

    Gorkman

  55. How about the Automated Code Review (tm) program? by mollog · · Score: 1

    If there was a follow-on product that could automatically do group code reviews, complete with inane and gratutious remarks, truisms, and CS type boilerplate comments, I could really use that. Talks about eXtreme Programming!

    --
    Best regards.
  56. Re:I wish all the software I saw was as well comme by eyegone · · Score: 2, 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.

    --
    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
  57. Re:ENOUGH!!!! by Anonymous Coward · · Score: 1, Funny

    Relevance=1,Verbosity=6,Religion=On,Profanity=On

  58. Re:enough already, its past noon PST, stop by Drooling+Iguana · · Score: 1

    Posting Slashdot comments via telegram?

    --
    ... I'm addicted to placebos
  59. for loop comment by 0xABADC0DA · · Score: 1

    //avoid using the reverse "i >= 0; i--" style loop here

    bitterness=9:
    // only some lame intern would write a counting
    // loop as "i >= 0; i--" instead of "i-->0;"

    1. puts lots of work into craft
    2. become clueful, uber-coder
    3. sell clue on ebay for ad-free slashdot pages
    4. ...
    5. profit?

  60. Reminds me of an old joke... by AnonymousJackass · · Score: 1
    ...rather wearing.
    Two nuns in a bath.
    Nun #1: "Where's the soap?"
    Nun #2: "Yes it does, doesn't it."

    *running away*
  61. mundane and simple by imess · · Score: 1

    if the code is so mundane and simple, why does it need to be auto-commented?

  62. Who the hell is Dykstra? by roman_mir · · Score: 1

    The probably meant Dijkstra
    but then again, they wrote the C0|\/||\/|3|\|7470r, who am I to question?

  63. Re:I wish all the software I saw was as well comme by raygundan · · Score: 1

    I agree. This happens all too often-- it's what you get when you mandate code comments but don't add time for it to your project schedule. Doing it right can frequently take longer than writing the code, and sadly, nobody will pay for the time it takes. So the programmers tag every "i=1;" with a "//set i equal to 1" and leave out anything even remotely subtle or useful.

  64. Re:*THE* Authority for all april fools pranks by DJStealth · · Score: 2, Insightful

    PLEASE MOD THIS (and other similar posts) DOWN, this has been in every single article today, and he has got mod points in each one.

    See user's other posts at
    http://slashdot.org/~Urgo

  65. Re:I wish all the software I saw was as well comme by Oligonicella · · Score: 1

    "One way to shut up the said checker is to generate comments of this sort."

    Yeah, as opposed to providing a valid comment, despite it's being "not necessary".

  66. Re:This comes up in every discussion on comments.. by BlockedThreads · · Score: 1

    I have never seen good documentation produced with JavaDoc or Doxygen. Usually the documentation consists of a page for each class providing nothing that you could not get from a well formatted header file. People just seem to use these tools to tick the documentation box. Someone show me I am wrong and point me to some good automated documentation.

  67. +1, INSIGHTFUL by hanshotfirst · · Score: 1

    Where are mod points when I need them?

    --
    Why, oh why, didn't I take the Blue Pill?
    1. Re:+1, INSIGHTFUL by hanshotfirst · · Score: 1
      Just after I posted the above, the dupe article for iCopulate, Executive PONG, etc., was posted.

      It's nice to see things beginning to return to normal.

      --
      Why, oh why, didn't I take the Blue Pill?
  68. MY GOD! by cdcarter · · Score: 1

    My God, will they ever stop?!?!?!?!? *TIME MACHINE TO 11:59 PM* Windows LongHorn, Re-Named Windows NeverHappeining-Whore

    --
    "Love is like a trampoline, first it's like "SWEET!!" then it's like *BLAMM!*"
  69. Commenting my Code by 00+Agent+Kid · · Score: 1

    This could be useful, but I'd probably find myself deleting autocomments more than keeping them. I sparsely comment my code, and only do so when it is necessary. I can't really see this saving me a lot of time.

    --
    INACTIVE ACCOUNT
  70. Re:I wish all the software I saw was as well comme by InfiniteWisdom · · Score: 1

    Possibly because companies have "standards" written by people that don't understand technology that dictate that every function must have a comment explaining its purpose. This can get truly atocious with OO languages where you often have trivial accessor functions like the one in this example.

  71. Re:I wish all the software I saw was as well comme by Oligonicella · · Score: 1

    Lemme get this straight. You believe that the process of designing (or choosing) an algorithm doesn't provide you with the information you then simply type up as a comment?

    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

  72. Re:This comes up in every discussion on comments.. by ishepherd · · Score: 1

    Uh, well, here?

    The doc generators don't actually remove the need to, well, document things. It's just handy to be able to move around through hyperlinks, to be able to see documentation of all a class' members (without having to go look at its superclasses), and so on.

    And it's surely good to keep the comments directly above the relevant code rather than in some separate header file, so they are (marginally) more likely to be up-to-date.

    --
    fud, notfud, yes, no, maybe
  73. Re:This comes up in every discussion on comments.. by Tim+C · · Score: 1

    Don't blame the tool because the people using it are lazy and/or doing it wrong.

  74. Is this day over yet? by Skudd · · Score: 1

    I've never even enjoyed this "holiday", and it seems that this year it's just gone overboard. Hell, look at that ThinkGeek ad up there... "iCopulate"?! An iPod dildo? WTF?!

    If anyone needs me, I'll be living in reality for the rest of the day.

  75. Re:This comes up in every discussion on comments.. by BlockedThreads · · Score: 1

    Ok that is good documentation. I was a bit too emphatic in my claim. But you know what I mean. I don't want to name names but there are a number of projects in which the Doxygen generated documentation is almost entirely pointless. That's not to blame the documentation programs. They clearly can be used well - as you indicated.

  76. I'm sad. by Lord+Duran · · Score: 1

    I saw the computer virus spread to humans article, I saw the ipodtreo article, but not before I saw a machine-made commentator did I realize that it was april fools.

  77. Re:Utterly useless to me by Jeremi · · Score: 1
    Some of the most useful comments in my codebase look like this:


    sLayout->addSpacing(10); // FogBugz #2768


    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.

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
  78. Re:This comes up in every discussion on comments.. by ishepherd · · Score: 1

    Yeah, I do know what you mean. Sounds like we agree then.

    Like anything else. You start out with best of intentions, then... requirements change, deadlines get slipped, and things like writing those doc-generator comments can take a running jump... Heh.

    --
    fud, notfud, yes, no, maybe
  79. Re:I wish all the software I saw was as well comme by yomahz · · Score: 1


    I've seen plenty of OSS and proprietary software code that had comments that *looked* auto-generated. Stuff like: /** Sets the Home to a new value */
    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? They look auto-generated because they were.

    --
    "A mind is a terrible thing to taste."
  80. Re:I wish all the software I saw was as well comme by raygundan · · Score: 1

    The information may be there, but organizing it and putting it down in a useful fashion is not something most developers ever do, let alone do quickly. It's rare that I see good info, particularly on side effects and non-parameter requirements (file formats, db requirements, external system constraints and expectations, etc...)

    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 good. Real life, however, forces you to deal with and create procedures for the lousy programmers. A manager who doesn't understand the variation among his developers is asking for crap when proper documentation is not checked and enforced-- and when the time it really takes is not factored into the project estimates.

    The dipshits do deserve termination. I'd rather have nothing than crap. Sadly, you will almost always have to work with people like this-- and you (and/or the project manager) will *have* to find ways to coax usable output out of them, or you end up doing their jobs for them.

    I'm just saying that putting the time squeeze on people who are already just barely getting things done isn't going to result in a font of wisdom in the comments. By not making allowances for differences in skill (and thus development time) you end up making maintenance or expansion drastically more difficult down the road, because documentation is what gets crapified first.

    And remember: there is always somebody smarter than you, too. So don't be too smug with the dipshits.