Slashdot Mirror


Why MS is Not Opening More Source Code

mario_grgic writes "Apparently inappropriate code comments is one of the reasons according to this story. I wonder what kind of things developers put in comments that would be so bad for the rest of us to see?"

526 comments

  1. comments? by Anonymous Coward · · Score: 5, Funny

    /* Nothing for you to see here. Please move along. */

    1. Re:comments? by Anonymous Coward · · Score: 0

      double-entendre heh?

    2. Re:comments? by Anonymous Coward · · Score: 0

      All commercial code that gets open sourced is "scrubbed" first. This is not news.

    3. Re:comments? by Anonymous Coward · · Score: 0

      Open source code that get commercialized get too :)

    4. Re:comments? by carlmenezes · · Score: 1

      So THAT's what they meant by excellent language skills for the programming position on monster.com

      --
      Find a job you like and you will never work a day in your life.
    5. Re:comments? by Anonymous Coward · · Score: 0

      SCO lol!

    6. Re:comments? by Anonymous Coward · · Score: 0

      I doubt if they comment the code, the number of bugs would have been far lesser if they did it, I suspect :-)

    7. Re:comments? by G-funk · · Score: 2, Funny

      I've got comments like that. Before some API code I didn't want other developers using (stupid java's lack of a friends keyword) I had this: /* This code isn't really here *waves hand mysteriously, dates supermodel */ .... nasty sql code .... /* mmmm, supermodel */

      --
      Send lawyers, guns, and money!
    8. Re:comments? by Anonymous Coward · · Score: 0

      Haha you made my day start in a very funny way... thanks! Have a cup of coffee on me :)

    9. Re:comments? by MrBlint · · Score: 1

      A man walked into a bar and asked for a double entendre, so the bar maid gave him one.

      --
      That's very perceptive of you Mr Stapleton and rather unexpected in a G Major
    10. Re:comments? by Sardak · · Score: 1

      I don't usually comment very often, but when I do, I make them good. Here's one from my most recent project. It's from one of the tree classes.

      delete m_pChildren[i];
      // Hahaha, take that stupid kids!

    11. Re:comments? by G-funk · · Score: 1

      Alright, now I've gotta throw down. I've got a (protected, so it's ok) method that goes through the data, and removes anything with a bad parent link that points to an object that no longer exists:

      protected void departmentOfChildServices() { // Removes children with bad parents

      --
      Send lawyers, guns, and money!
    12. Re:comments? by storm916 · · Score: 1

      Umm... Sounds kind of cheap. More like an excuse /*NOT*/ to share more code.

    13. Re:comments? by rickt · · Score: 1

      I worked at Nortel in the early 90s writing telco protocol (CMIS) translation code in C. The code and libraries coming our way from the programmers in Canada was littered with the most foul, anti-American NHL team rhetoric I've ever seen. One-upmanship between the Canadian and the American programmers re: their favorite NHL teams was rife, each side blasting the other side's teams. They even played funny buggers with RCS headers to make it more interesting. Let's face it - programmers are a dirty bunch - especially those wacky Canucks!

  2. Best of the 'inappropiate comments' by rednip · · Score: 5, Funny
    • for a good time call June x12345
    • Linux rules!
    • It's like patching a Damn made of sawdust!
    • Man, this code sucks!
    • ToDo: this looks like a security hole (repeated 4689 times)
    • (got any more!)...
    --
    The force that blew the Big Bang continues to accelerate.
    1. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 5, Funny

      I prefer to think the most inappropriate comment possible would be:

      GNU General Public License, version 2.0

    2. Re:Best of the 'inappropiate comments' by over_exposed · · Score: 2, Insightful

      Probably just a bunch of four-letter variables that would offend anyone older than 27....

      --
      "The object of war is not to die for your country, but to make the other bastard die for his." - Patton
    3. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 5, Funny

      Cmon. UNIX comments are way funnier.

      My personal favorite:

      /* You are not expected to understand this. */

    4. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0, Redundant

      Well, for those few parts of Windows which actually work as advertised, Bill's concern may be:

      // This program is free software; you can redistribute it and/or
      // modify it under the terms of the GNU General Public License
      // as published by the Free Software Foundation; either version 2
      // of the License, or (at your option) any later version.

    5. Re:Best of the 'inappropiate comments' by flacco · · Score: 1
      for a good time call June x12345

      i did, bitch didn't answer wtf !

      --
      pr0n - keeping monitor glass spotless since 1981.
    6. Re:Best of the 'inappropiate comments' by Tehrasha · · Score: 2, Funny

      Im sure there are alot of offensive 'Master' and 'Slave' comments in DOS too..

    7. Re:Best of the 'inappropiate comments' by Dasein · · Score: 1

      I could post may innapropriate comments in source code. In my youth one was: /* Go away Jeff XXXX. You do not understand this code even though you think you do. I'm tired of being forced to revert your changes to this file. */

      Unfortunatly many of the best ones have been in proprietary code that is still in use and would be recognized if posted here.

      --
      You are not a beautiful or unique snowflake -- but you could be if you got off your ass.
    8. Re:Best of the 'inappropiate comments' by Zocalo · · Score: 5, Informative

      Well that's a little out of context, but there is a short page about "odd" comments in UNIX which includes an explaination of the abovehere.

      --
      UNIX? They're not even circumcised! Savages!
    9. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 3, Funny

      I wonder if it is the 'inappropriate comments' or the 'inappropriate code'. Replacing the comments in code is easy but replacing the code is hard. Here is an example of what I mean (yes, a colleague actual did this once):

      public class JohnQPublic {
      public void GettinMyHo (int daBooty) { ...
      } ...
      }

      public class PimpDaddy{
      public GettinSome() {
      JohnQPublic johnDoe = new JohnQPublic();
      int inDaAss = 100;
      johnDoe.GettinMyHo(inDaAss); ...
      } ...
      }

      Except "John Doe" was usually people he didn't like. He wrote an entire program like this once. It was hilarious. Eventually he got fired for some other stupid nonsense, but this was a classic piece of code. The funny thing was, the program worked great...just a bit of a pain to maintain after he was gone ;)

    10. Re:Best of the 'inappropiate comments' by Necrobruiser · · Score: 1

      She's been Slashdotted.

      --
      "I planned within my means and got a fixed rate mortgage, so where's MY bailout?" -cafepress
    11. Re:Best of the 'inappropiate comments' by mungtor · · Score: 5, Funny

      Probably much more like: /* well, Bill is still a douchebag, so here goes the "extended" standard crap */

      or /* Instead of doing this right, we'll just keep doing it our way */

      and don't forget /* let's see those Open Source assholes figure this one out */

    12. Re:Best of the 'inappropiate comments' by Ba3r · · Score: 3, Funny

      that is usually followed by a:
      // W T F

    13. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0
      /* You are not expected to understand this. */

      I know exactly where that came from.

      And oddly enough, I do understand it :)

    14. Re:Best of the 'inappropiate comments' by Ann+Elk · · Score: 1

      That's also one of my favorites.

    15. Re:Best of the 'inappropiate comments' by GordoSlasher · · Score: 4, Funny
      I found my favorite Unix comment while browsing through the Unix sixth edition source (yes this was a loooong time ago). Embedded within reams of commentless code was:

      /* this is a comment */

    16. Re:Best of the 'inappropiate comments' by bigsteve@dstc · · Score: 1
      My favourite comment of all time was:
      PROCESS EQUIBALANCED ELEPHANTS
      What made it memorable was that it was the only comment in a large program written in CDC's COMPASS assembly language. IIRC, the author was actually proud of this fact!
    17. Re:Best of the 'inappropiate comments' by enyalios · · Score: 3, Funny

      grep -R chainsaw /usr/src/linux

    18. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      I worked as a TA at one point, and the program the students had to develop all semester included keeping track of titles of media files. A high percentage of the students submitted code with variables named tit. It made grading much more entertaining.

    19. Re:Best of the 'inappropiate comments' by a1cypher · · Score: 1

      /usr/src/linux/arch/sparc/kernel/ptrace.c:/* Fuck me gently with a chainsaw... */

    20. Re:Best of the 'inappropiate comments' by devilspgd · · Score: 3, Funny

      It's too bad no IDEs support search and replace.

      --
      Give a man a fish, he'll eat for a day, but teach a man to phish...
    21. Re:Best of the 'inappropiate comments' by shawn(at)fsu · · Score: 2, Funny

      I've seen
      ToDo: Make this work

      I laughed each time I saw it.

      --
      500 dollar reward for tip(s) leading to the arrest of the person(s) who stole my sig.
    22. Re:Best of the 'inappropiate comments' by alpha_foobar · · Score: 1

      When I worked in a company that released all enterprise code to the client... and would occassionally get asked to write in J++, VB and other Basic variants...

      My code would usually include some comment regarding how impressed I was with the language...

      When I worked in J++ I had just come out of university, where we had been using Java 1.3 and I believe 1.4 had been out for a while... and J++ was based on Java 1.1! I had commented somewhere: // J++ where are you from??

      And whenever dealing with Strings or arrays in VB I felt the desire to inform anyone who read the code that I didn't like the language....

      All this stuff needed to be taken out before we handed over the code.... Unfortunately, I agrued that they were legit informative comments... but my manager didn't feel they were constructive.

    23. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      What, eclipse and MSVC have supported search and replace for aeons, and there's always sed...

    24. Re:Best of the 'inappropiate comments' by Midnight_Blue · · Score: 2, Funny

      My favorite: /* drunk.... fix later */

    25. Re:Best of the 'inappropiate comments' by Brandybuck · · Score: 5, Funny

      I see that one all the time in the proprietary code base at work.

      --
      Don't blame me, I didn't vote for either of them!
    26. Re:Best of the 'inappropiate comments' by Aeiri · · Score: 5, Interesting

      My favorites are the ones from the "drivers/net/sunhme.c" file of the Linux Kernel:

      /* Welcome to Sun Microsystems, can I take your order please? */ ... /* Would you like fries with that? */ ... /* Anything else? */ ... /* Fifty-two cents is your change, have a nice day. */

      /* We have a special on GNU/Viking hardware bugs today. */ ... /* Will that be all? */ ... /* Don't forget your vik_1137125_wa. Have a nice day. */

      /* foo on you */

      /* Lettuce, tomato, buggy hardware (no extra charge)? */

      /* We're consolidating our STB products, it's your lucky day. */ ... /* Come back next week when we are "Sun Microelectronics". */ ... /* Remember: "Different name, same old buggy as shit hardware." */

      /* Only Sun can take such nice parts and fuck up the programming interface
      * like this. Good job guys...
      */

    27. Re:Best of the 'inappropiate comments' by Rangataua · · Score: 1

      That's when I stop comments and revert to using single letter variables all over the place (auto obfuscated code).

    28. Re:Best of the 'inappropiate comments' by utlemming · · Score: 1

      I attend a rather conservative school. In my programming class we are peer graded. One of the projects was particularly frustrating. Anyhow, by the end of the project I had a method called "makeTheDamnThing," and it was rather insulting the user, with output along the lines of "Give me the stupid number." Worse yet, a rather cute gal graded my code. Out of all the programs that I had peppered with less-than civil language, and the _only_ hot gal graded my program. Go figure.

      --
      The views expressed are mine own and do not express the views of my employer.
    29. Re:Best of the 'inappropiate comments' by losinggeneration · · Score: 1

      Yes, and it's still a joke right?

    30. Re:Best of the 'inappropiate comments' by Profane+MuthaFucka · · Score: 2, Funny

      My favorites: // Check for Dr. DOS, and exit if true // If this were Linux, lpt1: would be on fire. // Uh oh, somebody's looking. Enable A20. // Copyright 1989 IBM Corp.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    31. Re:Best of the 'inappropiate comments' by heydonms · · Score: 1

      from MPlayer: (paraphrased) //We will let the compiler optimise this out if ( 1 ) { ...

    32. Re:Best of the 'inappropiate comments' by freemacmini · · Score: 1

      I actually saw this someplace (it was from MS)

      "We have to do this to get this pig into memory"

    33. Re:Best of the 'inappropiate comments' by kubrick · · Score: 1

      It's a quote from Heathers , during a croquet game IIRC...

      --
      deus does not exist but if he does
    34. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      I am over 27 and I like the word "cunt". Nope, not offended at all.

    35. Re:Best of the 'inappropiate comments' by AmberBlackCat · · Score: 1

      /* f-ck */

    36. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      The ones that really stuck in my mind were read over a decade ago in developer code from Apple. In order to protect Mac addicts from certain convulsions I'll not reveal which code - I still wake up sweating and screaming myself :-). /* should we be doing this */ /* how does this work */ Sadly, they were not the last comments like that I've seen (but they certainly explained an awful lot :-0).

    37. Re:Best of the 'inappropiate comments' by Sanat · · Score: 1

      I started writing in COMPASS in 1970. Of course, back then we used 80 column cards and keypunch machines to make each card in the deck so time constraints normally dictated avoiding the comments unless they were absolutely required.

      After all, some people wrote the comments on the card in ink until it was recognized that the card was valid.

      Most programs were flow charted also so that was what one followed for understanding the process.

      The operating system for the CDC 3200 used a deck of about 2000 cards which was one box full.

      The cpu timing was regulated by a "0" being sent down a delay line with pick points along its length to create the cycle for reading core and then rewriting it.

      --
      And in the end, the love you take is equal to the love you make
    38. Re:Best of the 'inappropiate comments' by TylerL82 · · Score: 0

      Hell, this should be modded "Insightful".

    39. Re:Best of the 'inappropiate comments' by igb · · Score: 5, Informative

      For those missing the joke, the hme ethernet
      interface gets its name from the `Happy Meal'
      ethernet/SCSI combo card, so named because
      you get both interfaces as a discount deal.
      The same chipset went onboard some machines, too.
      The PCI version (Happy Meal was SBus) I think
      was named Fresh Choice (two trips to the ASIC
      salad bar) after the valley eateries, but I
      might be misremembering.

      ian

    40. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      /* Hope this will work ! */ /* Thanks God nobody will ever look at this closed source code ! */

    41. Re:Best of the 'inappropiate comments' by mpe · · Score: 3, Interesting

      I prefer to think the most inappropriate comment possible would be: GNU General Public License, version 2.0

      As well as any other comment which implies piracy. If the developers are working on code they never expect to be seen by "outsiders" they are unlikly to be concerned about "borrowing" someone else's code.

    42. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      ... and you havent reported this why? That's copywrite infringement. At least find a way to do it anonymously (what are they gonna do, fire your whole department punitively?)

      Unless you were joking, of course.

    43. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      It's too bad no IDE's support search and replace for all compiled calling classes either. Dumbass.

    44. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 2, Interesting

      Actually pulling in any GPL'd code is a good way to get yourself fired at Microsoft. They are pretty careful about that sort of thing.

      Now BSD licensed code, on the other hand, is all over the place in their projects.

    45. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      And he didn't post anonymously.

      Legal and employment danger abounds!

      Accessory to copyright infringement, contributory liability, etc, etc.

      I sure hope it was a joke. Even so, it was an inappropriate one. Like saying "bomb" in an airport.

    46. Re:Best of the 'inappropiate comments' by jzap · · Score: 4, Funny

      Or the Rene Magritte variant:
      /* This is not a comment. */

    47. Re:Best of the 'inappropiate comments' by l3v1 · · Score: 1

      My personal favourite was when a configure script (I don't recall what I was configureing though, it was a while ago) dumped a line like: checking for intelligent life: not found :)) I remember having a real hard time not falling out of my chair from laughing out real loud :))

      --
      I am putting myself to the fullest possible use, which is all I can think that any conscious entity can ever hope to do.
    48. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      Cmon. UNIX comments are way funnier.
      My personal favorite: /* You are not expected to understand this. */


      I don't get it...

    49. Re:Best of the 'inappropiate comments' by Bert64 · · Score: 2, Informative

      There was also a predecessor chip to the HME called the Big Mac.. so it's not coincidence that they were using mcdonalds names for their products, i'm just surprised they didnt get sued.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    50. Re:Best of the 'inappropiate comments' by Bert64 · · Score: 1

      Actually, HUGE chunks of the windows sourcecode contain copyright notices saying "DIGITAL EQUIPMENT CORPORATION"

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    51. Re:Best of the 'inappropiate comments' by mdecarle · · Score: 1

      When I was a student, We did this all the time. We'ld pick a subject ('brands of wash powder'), and then start coding. So, "Dash = Dreft + Ariel" and "If MisterProper Then ..."

      Actually, this example got us to stop this practice (when you have 54 variables, it's difficult to remember what each means)

    52. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      That's copywrite infringement.

      No, it's not. Please, read and understand the GPL before you start flapping your arms.

    53. Re:Best of the 'inappropiate comments' by Hosiah · · Score: 1

      Nahhhh, the funniest Linux source code comment is the Pythonesque bridge-keeper/cheese-shop material at the beginning of "screenhack.h" The developer actually ties these references in with what it's like getting the X server to let your program run.

    54. Re:Best of the 'inappropiate comments' by ozbird · · Score: 2, Funny

      /* Drunk - fix later */

    55. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 1, Informative

      >UNIX comments are way funnier.
      >/* You are not expected to understand this. */

      Oh, but there are things like that at MS too. see the FATFS Spec. :

      Do not spend too much time trying to figure out why this math works. The basis for the computation
      is complicated; the important point is that this is how Microsoft operating systems do it, and it works.
      Note, however, that this math does not work perfectly. [...] Because it is OK to have a FATSz that is too
      large, at the expense of wasting a few sectors, the fact that this computation is surprisingly simple
      more than makes up for it being off in a safe way in some cases.

      well, it's a legacy bug...

    56. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      It's too bad no IDE's support search and replace for all compiled calling classes either. Dumbass.

      You'd really put crap like that on an external interface???

      Well, if you really do, you can always rename the exported symbols at link time :-p

    57. Re:Best of the 'inappropiate comments' by gilesjuk · · Score: 2, Interesting

      Well the article does mention IP issues. So it shows that closed source code can have licensing/patent issues also.

    58. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      What is _copywrite_?

    59. Re:Best of the 'inappropiate comments' by MadMoses · · Score: 4, Funny

      Best comment I ever saw was an unused char array in some C code, initialised with all '0's, and the comment //here we insert some zeros to keep the code fluffy and airy

      --

      Do not be alarmed. This is only a test.
    60. Re:Best of the 'inappropiate comments' by Ashtead · · Score: 2, Funny
      The scary parts are the error messages from that file (drivers/net/sunhme.c) rather than the comments. Unlike the comments, they can be revealed to the word at large, and, since they are error messages, they will appear in a context of "my bloody network card has stopped and I'm only getting daft jokes about it!", which is probably nowhere near as funny as what was might have been intended. Of course, I have no idea about how likely this is to happen; it could be that this is a rare or obsolete unit whose inclusion might have been mandated by some PHB...

      Some of the funny printk() calls can at least be called informative:

      printk(KERN_ERR "happy meal: Aieee, transceiver MIF read bolixed\n");
      printk(KERN_ERR "happy meal: Aieee, transceiver MIF write bolixed\n");
      printk(KERN_ERR "%s: Aieee, link timer is asleep but we got one anyways!\n");

      Then there are the rather less informative:

      printk(KERN_ERR "happy meal: Transceiver BigMac ATTACK!");
      printk(KERN_ERR "happy meal: Receiver BigMac ATTACK!");
      printk(KERN_ERR "happy meal: Fry guys.");
      printk(KERN_ERR "happy meal: Transceiver and a coke please.");
      printk(KERN_ERR "happy meal: Eieee, rx config register gets greasy fries.\n");
      printk(KERN_ERR "happymeal: Would you like that for here or to go?\n");

      The author's opinion of the Sun hardware aside, it stops just short of telling off the end-user for using such hardware.

      --
      SIGBUS @ NO-07.308
    61. Re:Best of the 'inappropiate comments' by TheRaven64 · · Score: 1

      I was looking at the sourcecode for WebDAV support in Darwin recently (don't ask) and one of the comments was /* Fix this before the next version */ (or something along these lines). This file had not been modified since before Apple bought NeXT...

      --
      I am TheRaven on Soylent News
    62. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      /* DONT TOUCH THIS SECTION OF CODE
      ** I wrote it when concerned about my job being
      ** offshored and implemented 8 binary variables
      ** and a Karnaugh Map to simplify the logic of the
      ** 8x8 input matrix.
      ** YOU'VE BEEN WARNED!!!
      */
      a= ...
      B= " with slight changes
      c= " with slight changes

      I heard they needed to change the code I wrote, but saw this comment and decided it wasn't worth the risk.

    63. Re:Best of the 'inappropiate comments' by ZorMonkey · · Score: 1

      // HH HH AAAA CCCC KK KK
      // HH HH AA AA CC KK KK
      // HHHHHH AAAAaAAA CC KKKKK
      // HH HH AA AA CC KK KK
      // HH HH AA AA CCCC KK KK

      (Filter fooling)
      Your comment violated the "postercomment" compression filter. Try less whitespace and/or less repetition. Comment aborted.

    64. Re:Best of the 'inappropiate comments' by luciofm · · Score: 0

      My favorite one from drivers/video/atafb.c from the Linux Kernel

      /* no default driver included */
      /* Nobody will ever see this message :-) */
      panic("Cannot initialize video hardware");

    65. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      :TRICKY: Tags like this were the best thing i did in the early 90s. :TODO: :WARNING: :BUG: :ERROR: :BITCH: :MOAN:

    66. Re:Best of the 'inappropiate comments' by neiljt · · Score: 1

      I am over 27 and your comment offends me.

    67. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      Seriously,

      If I was a teacher grading material like that with inappropriate filenames, variables, etc.

      They'd fail instantly!

      Personally I'm not offended by it.. but just imagine people delivering/showing that kind of work to a customer later in life!

      I see programming as a form consisting of logic, creativity and art. I can certainly enjoy reading a comment like /* magic wizardry below */

      every now and then... but there _are_ limits.

      Just imagine someone (who's sexually frustrated?) who likes to use variables like that, working on your 'mission cricitcal business database' :X :X

    68. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 2, Funny

      As well as any other comment which implies piracy.

      /* Whoever designed this API should be made to walk the plank. */
    69. Re:Best of the 'inappropiate comments' by 47F0 · · Score: 1

      "Microsoft rapes babies in the park"

      Found in an especially kludgy bit of MS code that the programmer was clearly not happy about. This was from the golden DOS 3.x days when our company, a major supplier of IBM terminal emulators especially for the airline industry) was moving from a proprietary platform to a PC platform and paid MS a chunk-o-change for source to DOS. A good bit of code to review - ranging from quite clever to abysmal. Far too much of the latter, I'm afraid.

    70. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      Imagine if that person didn't have an outlet like putting funny comments and variables in the code. Maybe they would just modify the code to do something malicious instead.

    71. Re:Best of the 'inappropiate comments' by Crayon+Kid · · Score: 1

      There was also a predecessor chip to the HME called the Big Mac.. so it's not coincidence that they were using mcdonalds names for their products, i'm just surprised they didnt get sued.

      In this context, it's more like free advertising. Hopefully nobody's gonna take a bite outta that chip, will they.

      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
    72. Re:Best of the 'inappropiate comments' by MAPBuH · · Score: 1

      Or the following: Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c)

    73. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      One comment found: /* if it was hard to write, it should be hard to read. */

    74. Re:Best of the 'inappropiate comments' by Crayon+Kid · · Score: 2, Informative

      Ahh, the joys of grepping for "fuck".

      arch/mips/pci/pci-ip27.c:
      /*
      * IOC3 is fucked fucked beyond believe ... Don't even give the
      * generic PCI code a chance to look at it for real ...
      */
      if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16)))
      goto oh_my_gawd;
      arch/sparc/kernel/ptrace.c:
      /* Fuck me gently with a chainsaw... */
      net/core/netfilter.c:
      /* James M doesn't say fuck enough. */
      And of course
      /* Fuck me plenty... */
      which occurs several times in the Linux kernel. I wonder who it was.
      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
    75. Re:Best of the 'inappropiate comments' by ALecs · · Score: 1

      Well - officially it's called 'Hundred Meg Ethernet'; but nobody calls it that. :)

    76. Re:Best of the 'inappropiate comments' by isorox · · Score: 1

      /* You are not expected to understand this. I know I don't. */

    77. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      That's quite an overstatement. The Alpha-specific code in NT was mostly ported from Microsoft's original MIPS code by programmers from DEC, so is owned by DEC/Compaq/HP. The same is true for a fair amount of Itanium-specific code, except the developers were from Intel/HP (obviously). For other architectures, like MIPS, x86 and amd64, Microsoft programmers generally did all the coding. In any case, the architecture-dependent code is a tiny part of the overall NT kernel, and not 'huge' by any stretch of the imagination.

      PS If you're trying to suggest there's something sinister about DEC engineers working at Microsoft writing Alpha-specific code for the NT kernel, and putting it under DEC copyright, there isn't. However, such copyrights are one reason Microsoft can't generally open the entire NT source tree.

    78. Re:Best of the 'inappropiate comments' by MikeBabcock · · Score: 3, Funny
      /* I don't know why, but this seems to fix a bug */
      if (**a[4] > *(b+6))
      return;
      Not that I've ever written such a thing ...
      --
      - Michael T. Babcock (Yes, I blog)
    79. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0
      I prefer to think the most inappropriate comment possible would be: GNU General Public License, version 2.0

      I've never understood this obsession amongst GNU/Linux fanatics with the idea that other people are stealing their code. Is it because they spend most of their time cloning commercial software, so can't comprehend the notion of actually designing and implementing something without copying something else (in terms of design, if not code)?

      The idea that Microsoft would be stealing GNU code is at least as ridiculous as the idea that Linux is stealing SCO code. Most of this stuff has long been well understood by senior programmers in the field, who've no need to copy it from somewhere else, especially from technological laggards like GNU and Linux, which largely amount to less developed imitations of much older systems (principally Unix).

    80. Re:Best of the 'inappropiate comments' by Ctrl-Z · · Score: 1

      Best. Comment. Ever.

      I can't remember the last time I actually laughed out loud at Slashdot.

      --
      www.timcoleman.com is a total waste of your time. Never go there.
    81. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      True.. but there's a difference between 'funny' and 'inappropriate' or 'possibly inappropriate'. :-)

      Same by Anonymous Coward as the one on Thursday February 10, @01:20PM :P

    82. Re:Best of the 'inappropiate comments' by BHS_Turf · · Score: 1
      I write proprietary code. Usually with incredibly tight deadlines, so my code is riddled with comments like:
      //TODO this is a kludge, so come back and fix this

      //WTF was HE thinking when he wrote this. rewrite this.

      /* if I see another IF statement used to assign a static value to a boolean I will go postal. i.e.:
      if(condition) {
      myBoolean = true;
      } else {
      myBoolean = false;
      }
      */
    83. Re:Best of the 'inappropiate comments' by Bert64 · · Score: 1

      Well, virtually all of the SNMP support code is copyrighted by DEC, aswell as other parts which are not alpha specific.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    84. Re:Best of the 'inappropiate comments' by Incadenza · · Score: 1

      Or the Rene Magritte variant:
      /* This is not a comment. */

      Here I go acting the pedantic prick again, but that is not right. Margritte was right, because it was not a pipe, it was a picture of a pipe. Your comment belongs to Hofstadter.

    85. Re:Best of the 'inappropiate comments' by TheDarkener · · Score: 1

      I bet all that Russian hacker code has some cool comments...

      "In Soviet Russia, the code comments YOU!"

      (the faint, whining bugle sounds)

      --
      It is pitch black. You are likely to be eaten by a grue.
    86. Re:Best of the 'inappropiate comments' by Eil · · Score: 1

      A real comment in the MS-DOS 6.0 source code, cmd/fdisk/fdisk.c, line 77:
      /* P.S. - To whoever winds up maintaining this, I will */
      /* apoligize in advance. I had just learned 'C' when */
      /* writing this, so out of ignorance of the finer points*/
      /* of the langauge I did a lot of things by brute force.*/
      /* Hope this doesn't mess you up too much - MT 5/20/86 */
      And of course, slashdot is munging the whitespace in the preview...
    87. Re:Best of the 'inappropiate comments' by Eil · · Score: 1


      BTW, I found the whole thing here:

      http://os2.in.ru/view/fdisk.c

      Look at all those nested ifs!

    88. Re:Best of the 'inappropiate comments' by Anonymous Coward · · Score: 0

      How about downright mysterious error messages?

      mv: values of beta will give rise to dom!

      (yes I had to spell it out. slashdot after all pushes the cutting edge by disallowing anything that isn't ascii. what a fucking poor joke, a geek blog with code this ancient, unmaintained, and all around poor.)

    89. Re:Best of the 'inappropiate comments' by AkaXakA · · Score: 1

      Followed by: /* This is not the comment you are looking for. */ /* ** Waves hand ** */

    90. Re:Best of the 'inappropiate comments' by Darth23 · · Score: 1
      • **Word Perfect killing procedure**

      • **Lotus killing procedure**

      • ** paste Stacker code here**

      • ** java killing procedure**

      • mozilla killing procedure**

      • ....
      --

      -------- In Soviet Russia, "Soviet Russia" sigs hate Slashdot.

    91. Re:Best of the 'inappropiate comments' by Jonathan+the+Nerd · · Score: 1
      Not that I've ever written such a thing ...

      I have. I don't remember the context, but I had a program that wasn't reading input correctly, and I added a check for EOF (after I had read all the data), and it fixed the bug. Oddly enough, I didn't do any error-handling at all -- I just checked for EOF and continued regardless. Thus, the code had the following form:

      /* Why does merely CHECKING for EOF fix the bug??? */
      if (stream.eof()) { }
      --
      Disclaimer: The opinions expressed are not necessarily my own, as I've not yet had my medication today.
    92. Re:Best of the 'inappropiate comments' by turgid · · Score: 1

      You may jest, but I once worked for an old assembly-laguage coder. He used to put random dbs into his source to confuse casual would-be reverse engineers. I went home and wrote a disassembler that followed program flow...

    93. Re:Best of the 'inappropiate comments' by Anonymous+Brave+Guy · · Score: 1

      Heh. Where I used to work, there was some common code that included the line

      #ifdef F___ING_DESPERATE

      Rumour had it that the code was actually written by the CTO in his younger days...

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    94. Re:Best of the 'inappropiate comments' by ssimontis · · Score: 1

      Is inappropriate comments the real reason here? I don't think most people would mind a few obscenities in the code. Perhaps Microsoft thinks that "inappropriate comments" are anything that helps you understand the code. That way, they can go on and on about how they give their code to the world, even though its useless and no one understands how to use it.

      --
      Scott Simontis
    95. Re:Best of the 'inappropiate comments' by fingerfucker · · Score: 1

      Well that's a little out of context, but there is a short page about "odd" comments in UNIX which includes an explaination of the abovehere.

      Good job with putting "You are not expected to understand this." into Google, clicking on the first hit and posting it on Slashdot. Woo-hoo, way to go, Slashdot!!

    96. Re:Best of the 'inappropiate comments' by fingerfucker · · Score: 1

      Here is an example of what I mean (yes, a colleague actual did this once)

      If this is Java code and you are saying:
      public GettingSome() {...

      Then this is a method without a return type. Having such a method in a class ("public class PimpDaddy { ...") means that "GettingSome" could only be the constructor, which however MUST be the SAME name as the class name.

      Your code would not even compile, which leads to the inevitable conclustion that you are full of shit.

    97. Re:Best of the 'inappropiate comments' by aztracker1 · · Score: 1

      figured I would reply.. GPL only applies to re-distribution.. one can modify all they want for internal/private use.. just can't sell/resell/distribute without source modifications being open...

      --
      Michael J. Ryan - tracker1.info
    98. Re:Best of the 'inappropiate comments' by DiD+Roe · · Score: 0

      I have myself put things like:
      "What does this do"
      "Cheeky fix"
      "Nasty bodge"
      "wtf"
      etc into my/others code at some point in time, I wouldn't want customers seeing those! But I feel they can still be justified and are actually useful when someone has more time to spend improving the code. Ok so maybe the language needs toning down but if the comments have to be cleaned up to show customers, hopefully the code will be too!

    99. Re:Best of the 'inappropiate comments' by 0b-fsck-83d · · Score: 1

      How about Visual Basic 6? Or just write/open your C#/++ in Microsoft Works/Word and save as .txt

    100. Re:Best of the 'inappropiate comments' by I_Wrote_This · · Score: 1

      My favourites comment is from an old OS, now mostly gone. I'll change the name and the non-relevant parts to protect the innocent - the name of the truly-guilty (de)part(ment) is left in.

      /* Called by XXXXX to start the Assassin. Has this dopey alternate
      /* name because XXXXX is an ABC module. The Assassin runs under the
      /* name LOGOUT_SERVER due to the chicken-livered complaints of our
      /* Customer Service and Marketing groups, who were worried that our
      /* customers would get all bent out of shape over this.
      ...
      ...
      /* 12/01/87 Wrong Changed name to "LOGOUT_SERVER" at request of our
      /* crack Marketing group.
    101. Re:Best of the 'inappropiate comments' by mangee · · Score: 1
      reams of commentless code

      /me thinks it musta been a while back ;)

  3. See the code, be the code by Dancin_Santa · · Score: 1, Insightful

    And when you've glanced at it, you've doomed yourself and your Open Source company from ever using you as a developer ever again. Take the glibc stance and just avoid MS code if at all possible.

    1. Re:See the code, be the code by Anonymous Coward · · Score: 0

      And when you've glanced at it, you've doomed yourself and your Open Source company

      I believe any company of that sort is already doomed anyways no matter what the developer does, so don't sweat it. ;)

    2. Re:See the code, be the code by Anonymous Coward · · Score: 2, Insightful

      that is completely untrue.

      that is like saying once you have seen a book you cant be an author.

      it is literally the same expressiveness in both.

      you cannot memorize one in enough quantity to matter.

      looking is not the same as analyzing and studying it for a long LONG fucking LONG amount of time.

      you can get an idea of how things work without the time it takes to remember significant amounts of code.

    3. Re:See the code, be the code by Anonymous Coward · · Score: 0, Insightful

      Does that mean any closed source code writer can never work again once (s)he's seen some open source code?

      It really depends on the relative strengths of each legal team, doesn't it?

    4. Re:See the code, be the code by Spy+der+Mann · · Score: 0, Troll

      And when you've glanced at it, you've doomed yourself and your Open Source company from ever using you as a developer ever again.

      That's right. Who would hire a developer whose mind became infected with spaguetti code?

    5. Re:See the code, be the code by Detritus · · Score: 2, Insightful

      Bullshit. Running away in fear, just because someone might use your actions as a pretext for a lawsuit, is for cowards.

      --
      Mea navis aericumbens anguillis abundat
    6. Re:See the code, be the code by quanticle · · Score: 1

      Does that mean any closed source code writer can never work again once (s)he's seen some open source code?


      No. The open source coder's mind will be infected by Microsoft (a la Snow Crash) and all their code will suck from then on. For an open source coder, this is fate worse than not being able to work.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    7. Re:See the code, be the code by Feztaa · · Score: 2, Funny

      This is, of course, how it should be. Everybody knows that no successful author has ever read a book.

  4. grep by mmkkbb · · Score: 5, Funny

    /* The word 'fuck' is here so you can grep for it */

    --
    -mkb
    1. Re:grep by Anonymous Coward · · Score: 0

      hell i'd print that to the screen for errors. "You fucking moron, can't you do anything right?"

      Atleast until my teacher told me to stop...I'm not lying either.

    2. Re:grep by strider44 · · Score: 1

      yeah, i'd always use words like fuck and shit in my debugging code, as i was sure these words weren't already in use. However now it looks like i'll have to stop it, seeing as it's such a common occurance. Now where was that "how to swear in all languages" doc?....

    3. Re:grep by Toresica · · Score: 1

      In a program I wrote in high school,

      #include /* As always. :p*/ /* A blank line, except for this comment. Because I like blank lines */
      int random(int min, int max, int *pointer); /* Function prototypes put the 'fun' in 'function'! */ /* Another almost blank line, for fun */

      Of course, a friend of mine had a program that said, /* Barehanded damage fixed by Thoric */ /* Unarmed combat re-fixed by Scion */ /* Well, third time's the charm - Keo */

    4. Re:grep by aussie_a · · Score: 1

      Whenever testing my code I often have similar error messages. Although once I hand it in I search for any left over error messages and either: A) Make it so the error is handled gracefully without just printing out a message saying there's an error B) Make the error message more friendly.

    5. Re:grep by laptop006 · · Score: 1

      Ahem.

      (And yes this has been my sig for years...)

      --
      /* FUCK - The F-word is here so that you can grep for it */
  5. Inappropriate comments.... by thewldisntenuff · · Score: 0, Offtopic

    MS XP Source Code
    ---------------------
    ###Linux is teh suxxor
    ###Linus Torvalds is a dumbass

    etc etc etc

    -thewldisntenuff

    1. Re:Inappropriate comments.... by glenebob · · Score: 1

      You think XP is written in Python or something?

    2. Re:Inappropriate comments.... by Anonymous Coward · · Score: 5, Funny

      Well, if ya look at the performance, it's pretty obviously not C.

    3. Re:Inappropriate comments.... by dtfinch · · Score: 1

      They've been gradually converting their dialogs to embedded hta's, as in html+vbscript.

  6. ha by momerath2003 · · Score: 5, Interesting

    Heh, no surprises here. I mean, from what we've seen from the leaked windows source...

    --
    I had but a simple dream, to destroy all humans.
    1. Re:ha by RonnyJ · · Score: 4, Informative

      Actually, the first link there isn't from Windows source code, it's from the source of a Linux USB camera driver (as you can see when you look at the parent post to it).

    2. Re:ha by losinggeneration · · Score: 1

      Not to mention how many times "Hack" and "Ugly Hack" are used like it tells here

    3. Re:ha by Bush+Pig · · Score: 1

      I frequently put comments like this (/* UGLY HACK ALERT */) in code I'm not particularly proud of. It makes it easier to find when (if) you work out how to fix it, and it also alerts the poor bastard who inherits it after you've moved on that there's a potential source of problems.

      --
      What a long, strange trip it's been.
    4. Re:ha by Kirth · · Score: 1

      So what? Release the source only to europeans then, if you're worried about swear-words. They don't care. Most probably they won't even notice unless its very excessive (Excessive for european standards: Ozzy Osbourne).

      Seeing "/* this will fuck up the compile on alpha */" will just make you think "ah, I see, now they broke it on Alpha, I guess they won't support Alpha any more.." and not "they used an expletive in a comment!". See the point?

      I just saw a turkish film with about 20 "fuck" in english, and a lot more expletives in turkish. I remember it because I thought it was funny.

      --
      "The more prohibitions there are, The poorer the people will be" -- Lao Tse
  7. "Linux Rocks!!!" by jdray · · Score: 4, Funny
    10 REM Linux rocks!!!
    20 Do(stuff);
    --
    The Spoon
    Updated 6/28/2011
    1. Re:"Linux Rocks!!!" by excaliber19 · · Score: 1

      /* I for one welcome our new Linux overlords... */

    2. Re:"Linux Rocks!!!" by wed128 · · Score: 1

      the funny part here is the insinuation that the windows source is written in basic...

    3. Re:"Linux Rocks!!!" by mikestro · · Score: 0

      whats even funnier than that is that it isn't even right.

  8. I wonder... by PornMaster · · Score: 4, Funny

    // horribly insecure, but we had to meet a ship date...

    1. Re:I wonder... by mod_critical · · Score: 1

      You know, I took some heat once because I had a comment like that which was taken incorrectly by some of my fellow developers. The comment was // REALLY FREAKIN' BROKEN!!!.

      I wrote it there because I had not completed the method and wanted to get the class running so I could test the rest of it (as that particular part was fairly complex, but mundane, therefore boring). I was going to get back to it because it was more of a detailed feature than a critical functionality.

      The problem was is that someone else (who wasn't even working on that part of the program, just utilizing it) was looking over the code and thought that I just meant that the method was broken, and was meant to be left as such until the next itteration. Well, it was gone and finished by time I heard about it (the next day), but some people were pissed thinking that I was just going to start a method, not finish it, and just stick some silly comment in there and expect people not to use it.

    2. Re:I wonder... by Brandybuck · · Score: 2, Interesting

      Seen in real life: /* IMPORTANT: comment out the following before release */

      This was above a section of code that gave the developer a gaping back door into the system for debug purposes. The code in question had been out in the field for over five years.

      --
      Don't blame me, I didn't vote for either of them!
    3. Re:I wonder... by Anonymous Coward · · Score: 0

      Was that in the Borland DB Product (Firebird now right?)

    4. Re:I wonder... by Anonymous Coward · · Score: 1, Funny

      // Oh CRAP! Oh well, we'll fix it in 3.1^H^H^H3.11^H^H^H^H95^H^H98^H^H98SE^H^H^H^HNTSP1 ^H2^H3^H4^H^H^H^H^H 2000^H^H^H^H XP^H^HLonghorn

  9. Programmers do to comment. by kngthdn · · Score: 5, Funny
    ...

    /* Man I hate this fricking company */
    LineTo(hdc, LOWORD(lParam), HIWORD(lParam));
    ReleaseDC(hwnd, hdc);
    }

    fDraw = NULL;
    return 0L;

    /* Nobody reads this crappy code anyway */
    case WM_MOUSEMOVE:
    if (fDraw)
    {
    hdc = GetDC(hwnd_global);
    MoveToEx(hdc, ptPrevious.x, ptPrevious.y, NULL);
    LineTo(hdc, ptPrevious.x = LOWORD(lParam),

    /* I wish I could stick this at the top of the WndProc... */
    SendMessage(hwnd, WM_DESTROY, 0, 0);

    ...

    1. Re:Programmers do to comment. by Anonymous Coward · · Score: 0

      //HELP! I am being HELD HOSTAGE at a MICROSOFT PROGRAMMING FACILITY

    2. Re:Programmers do to comment. by nodialtone · · Score: 0

      LOL, that halarious. Look like some of my code.

    3. Re:Programmers do to comment. by vranash · · Score: 1

      For the funnier version of this comment play Space Quest 3, and beat the AstroChicken Game in the Monolith Burger Station :)

    4. Re:Programmers do to comment. by Gigantor009 · · Score: 0
      I went to a lecture once given by a visiting lecturer. He displayed an error message that had come up on his computer a while back when he was trying do something that he took a screen shot of because the error message had this phrase in it.

      "we need to find a real solution to this"

      and yes it was from a microsoft product, though I don't really remember which one.
  10. "Hello World" by Airconditioning · · Score: 1

    Evidence of juniors programming major applications?

  11. Well... for starters... by Duncan3 · · Score: 5, Funny

    /* Copyright © 2000 Apple Computer, Inc. All rights reserved. */

    --
    - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
    1. Re:Well... for starters... by NanoGator · · Score: 4, Insightful

      "/* Copyright © 2000 Apple Computer, Inc. All rights reserved. */" /* Special thanks to Xerox */

      --
      "Derp de derp."
    2. Re:Well... for starters... by aristotle-dude · · Score: 3, Informative

      I think you are forgetting that MSFT stole some Quicktime code to create WMP.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
    3. Re:Well... for starters... by soft_guy · · Score: 1

      I think you mean: /*Copyright (c) 1981 Apple Computer, Inc. All rights reserved.*/

      --
      Avoid Missing Ball for High Score
    4. Re:Well... for starters... by RzUpAnmsCwrds · · Score: 1

      According to whom? A Google search didn't turn up anything interesting.

      Justify your argument or stop spreading FUD.

    5. Re:Well... for starters... by ajna · · Score: 2, Insightful

      http://imprint.uwaterloo.ca/issues/100298/3Science /science01.shtml
      http://news.com.com/MS+to+invest+150+million+in+Ap ple/2100-1001_3-202143.html

      "Both Apple and Microsoft executives denied that the Microsoft investment represents a path to converging the companies' operating systems. However, they said they had agreed to work out a settlement to a long-standing dispute over whether Microsoft's Windows operating system infringes on any of Apple's patents."

      http://www.jmusheneaux.com/index02.htm#Major

      From the last link it's clear that Xerox lost, so the only FUD here is that of Xerox deserving credit.

    6. Re:Well... for starters... by RzUpAnmsCwrds · · Score: 1

      Those links don't provide any evidence at all to support your claim that Windows Media Player contains Quiktime code.

    7. Re:Well... for starters... by ajna · · Score: 1

      No one knows for sure, but the implication of those links is that among the settled claims at the time of the $150 million Microsoft purchase of Apple stock was one involving Quicktime and WMP.

    8. Re:Well... for starters... by Anonymous Coward · · Score: 0

      Do you have any actual proof that you can link to?

      AFAK, the newer Windows Media codecs are MPEG-4 based codecs - just like XVid and DiVX. Sorensen (the developers that Apple licences their Quicktime codecs from) has also developed an MPEG-4 based codec. I don't think that anybody is copying anything except the MPEG-4 reference standard.

      The biggest joke about the modern codecs is that they're all variations on a theme, just with different container formats.

    9. Re:Well... for starters... by Barlo_Mung_42 · · Score: 1

      "No one knows for sure, but the implication of those links is" == FUD

    10. Re:Well... for starters... by nacturation · · Score: 1

      Patent infringement != code theft. You could implement a one-click purchase system on your website from scratch in the Oog! language and infringe Amazon's patent even if you've never heard of one-click shopping.

      --
      Want to improve your Karma? Instead of "Post Anonymously", try the "Post Humously" option.
    11. Re:Well... for starters... by nonicenamesleft · · Score: 1

      Modded +4 informative for spreading FUD? Posting "BillG is gay" will do wonders to my Karma.

    12. Re:Well... for starters... by Chris+Oz · · Score: 1

      If my memory serves me correctly it was actually quick draw code and it was back in 1992 or so. Apple sued. Microsoft lost the case and had to pay Apple some were around $100m (could have been $10m) and rewrite the code. When the code was examined at the time it was reported to contain around 90% Apple code. This was during the days of windows 3 or so. I don't have a link, however I remember reading about the case in the IT section in the Australian.

    13. Re:Well... for starters... by Anonymous Coward · · Score: 0

      "No one knows for sure"

      "It doesn't help my argument to admit that no one has said any such thing, so I'll pretend it's all vague and just make shit up to suit my preconcieved notions."

      "but the implication"

      "I have been able to bend both logic and reason to support my preconcieved notions."

    14. Re:Well... for starters... by Anonymous Coward · · Score: 0

      Microsoft wouldn't have had much use for QuickDraw code, given that QuickDraw was written in 68k assembly (like most of Mac OS).

      Probably the only Apple software Microsoft could have copied code from was QuickTime for Windows. I don't know how they'd have got the code, though, unless the copying (if there was any) was done by a former Apple employee (probably without anyone else knowing).

    15. Re:Well... for starters... by aristotle-dude · · Score: 1
      Oh for crying out loud. MPEG4? You're looking in the wrong decade. I'm talking about the original version of Media Player and the quicktime version at that time.

      BTW. The MP4 container format is based on the Quicktime format but Apple willingly allowed MPEG to base their standard on it.

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
    16. Re:Well... for starters... by aristotle-dude · · Score: 1
      Are you new around here? This is slashdot. M$ is the enemy.

      Have you ever considered using the waybackmachine before you accuse someone of spreading FUD. You are not going to find everything on the net with Google.

      How old are you? Where you "born" in the eighties?

      --
      Jesus was a compassionate social conservative who called individuals to sin no more.
  12. lol by Apreche · · Score: 2, Insightful

    grep -ri fuck /usr/src/linux

    I just wouldn't be open source without inappropriate comments.

    --
    The GeekNights podcast is going strong. Listen!
  13. Most Common Inappropriate Comment by flargleblarg · · Score: 0, Redundant

    God, I fucking hate working for Bill Gates!

    1. Re:Most Common Inappropriate Comment by Anonymous Coward · · Score: 0
      main.c:1: error: parse error before "fucking"

      flargleblarg,

      Your code has build errors. You must exit with status 0. In other words you are terminated.

      Bill G.
  14. Couple of the comments by bdigit · · Score: 0

    //This is here so slashdot has something to start rumors about //This is here so slashdot can flame us

    http://www.immigrantornot/

  15. inappropriate comments like by Anonymous Coward · · Score: 0

    why the HELL would you write something like that??
    that's the stupidest line of code I've ever seen.

    do YOU know how unsecure that makes this software??

  16. Hard habit to break. by shotgunefx · · Score: 5, Interesting

    I used to pepper my code with vulgarities. Then clients wanted copies on their own hosts. It's a hard habit to break.

    Particularly when debugging scripts. "F*CKING C*NT" and the like weren't to uncommon.

    An interesting tidbit, Viaweb (now Y! Store) used to have a program called storef*cker :)

    --

    -William Shatner can be neither created nor destroyed.
    1. Re:Hard habit to break. by jbarket · · Score: 4, Funny

      I had the exact same thought when I read the summary.

      A few years ago I was hired to do web application development because of my skills in one language, but I was hired to write in another. So, since I began doing for-production work in a matter of days, I had a lot of simple errors.

      I used to step through my code by placing either "Fuck yeah!" or "Shit's broke" inside and outside of different condition statements.

      Then one day some idiot on the team decided it would be a good idea to randomly show the clients my incomplete, not live code for whoknowswhy, and in the middle of the page at random was "SHIT!"

      Been trying hard to break that habit since :D

      --

      -----
      jonathan barket
    2. Re:Hard habit to break. by mrseigen · · Score: 1

      I nearly failed a comp sci assignment when I built a final up from a hack (that was laden with expletives). It took like 15 minutes to explain to my prof the "sheer stress" I was under. :)

    3. Re:Hard habit to break. by slashrogue · · Score: 4, Funny

      Been trying hard to break that habit since :D

      I hope you mean breaking that idiot of the habit of showing clients random and incomplete code ;)

    4. Re:Hard habit to break. by JWhitlock · · Score: 1
      Yeah, it just happened to me today. I was Coding my unit test first for a bit of code that returned a C++ string. Since the function wasn't written yet, I wrote a skeleton function to make the test fail. It could have returned a null string, or "This function is not implemented". However, I had just read too much JerkCity , so, of course, the skeleton function returned "Diagnosis: Gay."

      It made me chuckle every time the test failed. I stopped chuckling when my boss's boss came in to ask what progress I was making. As soon as his back was turned, I changed the failure string to something more... neutral.

      Maybe it's a good reason for the Extreme Programming practice of pair programming - to prevent you from doing something "funny" that will get you in trouble.

    5. Re:Hard habit to break. by lb746 · · Score: 0

      When I originaly started programming back in the day I didn't know any real good techniques to find bugs in the code. So I would make my code print out what I refered to as Flags on the screen to show me where in the code the program was. It started out simple with me putting stuff like "Flag 1" or "Flag 2" then after a while the numbers didn't work and I'd try label it with something else that might make sense like "3rd loop with input int" But this was just getting annoying as well. In the end I started just putting "F*ck line 21" or similar ideas.

      It really is a hard habbit to break. I'm still doing this all the time and I doubt I'll ever really stop doing it in my code. It just goes to show how many of us do this in our code, so what's the big deal? We might be able to understand the code better with it since it would be more like our own comments. I have a weird time when I see code with real comments and whole paragraphs explaining it.

    6. Re:Hard habit to break. by Anonymous Coward · · Score: 0

      nice. shows just how professional you are.

    7. Re:Hard habit to break. by noidentity · · Score: 4, Funny

      An interesting tidbit, Viaweb (now Y! Store) used to have a program called storef*cker :)

      Must have been a b*tch to invoke from the command line, with an asterisk in the name and all.

    8. Re:Hard habit to break. by bigbadunix · · Score: 1

      Exactly!!

      I have to watch it when auditing code or making minor changes when the powers-that-be are looking over my shoulder...more than once I've embarassed myself with working on code clearly commented with things like:
      "That dumbass So-and-so doesn't know what the fuck he wants so I put this in to shut him the fuck up".

      Oops :-)

      You ain't learnin' when yer talkin'
      --

      The older I get, the less I like everyone else.
    9. Re:Hard habit to break. by digitalchinky · · Score: 1, Offtopic

      Ok a lot off topic, so the tinfoil hats wont believe me, but I swear this is true! Somewhere back in 97 the place I was working at had been tasked with recording various video streams coming from different asian countries - anyway, their techs usually spend 15 minutes setting things up before the head honcho's pop up and start doing the business - one time the techs were watching a porno in the background, joking around they pointed the camera at it for a few minutes... Like good little collection staff, we recorded everything (including that)

      Had a few safe draws full of the most boring idiots talking to each other about inane government crap.

      Anyway, a year or so later we had a visit from a few high ranking civil servants, and an army General - aside from the flashy lights of the officer fascination panels, they wanted a quick demo of video conference. One of the guys grabbed a tape at random... And you can guess the rest :-)

      Fortunately generals have a sense of humor too.

      The guy who did it is now flying in the back of P3C orions out of Adelaide. (This last paragraph will confirm it for those in the know - I was there :-)

      SBRS was the coolest place to work!

    10. Re:Hard habit to break. by shotgunefx · · Score: 1

      What the fuck was I thinking? This is fucking slashdot after all. :P

      --

      -William Shatner can be neither created nor destroyed.
    11. Re:Hard habit to break. by Randy+Wang · · Score: 1

      Oh, so THAT'S why late-night SBS is so popular :)

      --
      --- Egads, I glow in the dark!
    12. Re:Hard habit to break. by lachlan76 · · Score: 1

      So Australia is the new Siberia that everyone gets sent to? It's not that bad ;)

    13. Re:Hard habit to break. by nyri · · Score: 1

      Particularly when debugging scripts. "F*CKING C*NT" and the like weren't to uncommon.

      An interesting tidbit, Viaweb (now Y! Store) used to have a program called storef*cker :)


      One company offering SSH, virus protection, etc. is named F-Secure. Officially thay won't give any kind of a meaning for it but I have hunch what the F stands for.

    14. Re:Hard habit to break. by JamieKitson · · Score: 0

      A friend at uni showed our tutor the "wrong" version of his code. He used similar debug messages to yours :)

    15. Re:Hard habit to break. by Crayon+Kid · · Score: 1

      I used to step through my code by placing either "Fuck yeah!" or "Shit's broke" inside and outside of different condition statements. Then one day some idiot on the team decided it would be a good idea to randomly show the clients my incomplete, not live code for whoknowswhy, and in the middle of the page at random was "SHIT!"

      See, now that's why I use "kilroy was here" for debug statements.

      --
      i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
    16. Re:Hard habit to break. by Kehvarl · · Score: 1

      Must have been a b*tch to invoke from the command line, with an asterisk in the name and all.

      wh\*t d\* you me*n by th\*t?

    17. Re:Hard habit to break. by PeanutGallery · · Score: 2, Interesting

      Yeah, back a couple of years ago when I was writing firmware for [Company name baleeted] we wrote a simple Winderz client driver to test our stuff against while the driver guys got the "official" driver working. Of course ours was peppered with bizarre comments (and worse, sceen messages).

      I still remember the day the MSCE's wandered in and confiscated our driver because they couldn't seem to make theirs work quite right. To this day I wonder how many calls tech support has gotten asking what the "She's gonna blow capn'!" dialog is all about.

      Lesson to all Noob's (and anyone else who hasn't had the pleasure): NEVER WRITE ANYTHING YOU WOULDN'T WANT YOUR GRANDMA TO READ! (Cuz you just never know where it'll turn up)

      --
      -- Just another unsolicited opinion... from the Peanut Gallery.
    18. Re:Hard habit to break. by Anonymous Coward · · Score: 0

      Finnish?

  17. How about this? by mtrisk · · Score: 4, Funny

    /* Taken from the Linux Kernel 2.6 DO NOT RELEASE UNDER ANY CIRCUMSTANCES, VIRAL GPL WILL HARM US */

    /* No one from the Debian Project shall ever see the following, lest you want your head chopped off! */

    /* These Samba guys figured it out, here's what they wrote */

    In all reality though, it's probably littered with expletives, like the Win2000 source code leak was.

    --

    Without a proper flamewar, Anonymous was undecided on what shell to run.
    1. Re:How about this? by ScrewMaster · · Score: 4, Interesting

      Yeah, well ... if you were a fresh-out-of-college coding grunt in a Microsoft sweat shop, believing that no-one would ever see your code but your co-workers and maybe your boss, you might be inclined to put some asinine comments in your code as well. That's not so surprising ... what is surprising is that those comments are still there. Which gives me an idea that maybe Microsoft doesn't run quite as tight as ship as they would like us to believe. Of course, we already knew that.

      --
      The higher the technology, the sharper that two-edged sword.
    2. Re:How about this? by lakeland · · Score: 5, Interesting

      Yeah yeah, YHBT and all that...

      Notice how the code snippet you pasted is inside #if? That means the preprocessor will strip it out at compile time, not run time... got that? Next you note that htons performs the same check. That would be the htons function right? There's this thing about functions... Every time you call them you have to push your state onto the stack, wasting cycles. That means your version will waste a processor cycles every single time it is called, but the linux one won't. We call this optimisation.

      What's that? Cycles don't matter? How frequently do you think the function above is called? Can you be certain it won't be called when performance is key? Lets be clear, there is some ugly code in the linux kernel, most of it is stuff written years ago that could be refactored if anybody bothered. But pointing to an optimisation and saying: look, that's redundant! is just foolish.

    3. Re:How about this? by damiam · · Score: 2, Informative

      The w2k source wasn't littered with explitives. There were a few, but much less than I'd expected (fewer than in the Linux kernel, which contains fewer LOC).

      --
      It's hard to be religious when certain people are never incinerated by bolts of lightning.
    4. Re:How about this? by Curtman · · Score: 1

      if you were a fresh-out-of-college coding grunt in a Microsoft sweat shop, believing that no-one would ever see your code but your co-workers and maybe your boss

      These days thats especially true. Nobody in Redmond speaks their language.

    5. Re:How about this? by Anonymous Coward · · Score: 0

      As someone who optimizes for a living, i'd rather see the code written clearly. Something tells me the person who wrote the above code didn't put it through a profiler before writing that.

    6. Re:How about this? by Anonymous Coward · · Score: 0
      dear gentle gentoo user,

      you appear to have missed his point entirely. the code doesn't do anything because the dude who wrote it doesn't understand network byte ordering. this is 100-level CS stuff that even a vbscript hacker would know.

      ps: inlining everything is not "optimization."

    7. Re:How about this? by Jondaley · · Score: 2, Informative

      I mentioned this the other day, but it also applies here.

      In Microsoft's WinCE IrDA driver it explicitly mentions why they aren't following the IrDA spec, to hack a fix for, "those stupid HP printers". Ironically, enough, I was testing an HP printer at the time, and wondering why CE wasn't following the spec, when the printer was. I think that is one of the only comments I have seen in the WinCE source. Presumably, they have been filtered out, unless they really just never comment anywhere.

    8. Re:How about this? by Karma+Farmer · · Score: 1

      I don't understand the comments or the code. Translating from the machine-specific byte ordering to network byte ordering depends (mostly) on your underlying architecture, not on your operating system. So, why would the comments indicate that the "strange byte ordering" depends on the operating system?

      I wonder if you're not looking at something else; This looks like userland code that's dealing with packet headers that are handled inconsistently by different operating systems.

      Especially since it seems odd to have an #ifdef BSD inside the Kernel itself...

    9. Re:How about this? by Anonymous Coward · · Score: 0

      The TCP/IP stack code is probably shared between both OS's.

    10. Re:How about this? by reed · · Score: 1
      htons is usually an empty macro on big endian systems anyway. My guess is that FIX macro is preventing a ton of ugly checks like this:
      #ifdef WRONG_BYTE_ORDER
      send(foo);
      #else
      send(htons(foo));
      #endif
      #ifdef WRONG_BYTE_ORDER
      bar = thing;
      #else
      bar = htons(thing);
      #endif
      #ifdef WRONG_BYTE_ORDER
      if(baz == 23)
      #else
      if(htons(baz) == 23)
      #endif
      {
      Instead you can just do:
      send(FIX(foo));
      bar = FIX(thing);
      if(FIX(baz) == 23)
      {
      Code readability is usually better than such tiny optimizations that the compiler will do much better than you anyway, and this FIX macro is probably there for readability.
    11. Re:How about this? by Jondaley · · Score: 1
      I was in Accelent's UART code, and apparently, part of this section is copied from Microsoft's code. I thought the comments were amusing, though I suppose not many people will see this post a day late...
      /* This next comment is from the ODO code, as is the following logic.
      It is believed that this may provide some primative support for
      asynchronous detection of a PDA being inserted into a cradle.
      The comment about CD and DSR is the most bewildering. - RL

      In a real null-modem cable, DSR is connected to CD. Unfortunately,
      many cables lying around do not have this. Thus, we are dealing with CD
      and not DSR here.
      */
    12. Re:How about this? by Lars+T. · · Score: 1
      If htons is usually an empty macro, why create another usually empty macro around it? And even if that made sense, why would someone not write your example as
      #ifdef WRONG_BYTE_ORDER
      send(foo);
      bar = thing;
      if(baz == 23)
      #else
      send(htons(foo));
      bar = htons(thing);
      if(htons(baz) == 23)
      #endif
      --

      Lars T.

      To the guy who modded me down from perfect to terrible Karma - Apple haters still suck

  18. graph of fucks per line in the kernel by tepples · · Score: 5, Funny

    Better yet: The word 'fuck' is here so you can graph for it.

    1. Re:graph of fucks per line in the kernel by coma_bug · · Score: 1

      It seems that the "shit" count per line is correlated with the proportion of the kernel written by Linus.

    2. Re:graph of fucks per line in the kernel by cmcguffin · · Score: 3, Funny

      I'm not sure what happened between 2.3.30 and 2.4.14, but apparently that shit is one craptastic penguin-fucking bastard!

    3. Re:graph of fucks per line in the kernel by Jugalator · · Score: 1

      "Linux kernel swear counts"?

      So "penguin" is a swear word...?
      Their devs is more uptight than I thought!

      --
      Beware: In C++, your friends can see your privates!
    4. Re:graph of fucks per line in the kernel by vidnet · · Score: 1

      :D

  19. Automatically strip the comments out! by Anonymous Coward · · Score: 2, Insightful

    I am a delphi developer and often delve into the VCL source and the source of other third party components and these usually contain little or no comments which leads me to believe that the comments are automatically stripped out when the software is released to the world.

    So If Microsoft does this then there is one excuse down the drain, but how many more will there be?

  20. Examples by apoch2001 · · Score: 2, Funny

    /** * * This method will cause system to crash and *fustrate users * */ /** * * This section of code will steal personal * information from users and give us blackmail * ability * */

  21. Re:In related news.... by iametarq · · Score: 1

    /* please sir, may i have another?! [cringe] */

  22. ever hear of grep? by AmigaAvenger · · Score: 1

    a couple of regex's on a perl command line string could clean your entire codebase of comments in a couple seconds, well maybe a minute or two for MS code, but anyway, that isn't much of an excuse!!

    1. Re:ever hear of grep? by JonLatane · · Score: 1

      Comment-less source code would be worthless to developers, though. Could you imagine trying to handle all that without knowing anything that's going on? Even the best programmers would find that a massive challenge, and pretty much any sensible programmer would refuse to even work with such code.

    2. Re:ever hear of grep? by danheskett · · Score: 1

      The Win2k kernel source isn't particular difficult to get a view at. I've been a contractor on a job that was working on a deeply system related project and the code I reviewed was all professional, well laid out, clean and nicely commentted. Additionally there was a very well maintained design document - which was up to date including hot fixes and patches - as well as a professionally edited style guide and implementation log.

      That was all kernel code, or very low level system services. (Stuff that would all be in the kernel in a linux system but ran in userspace on Windows).

      The code I saw that was for supporting tools was a little less clean. Applets, shims, drivers, etc were more of a patchwork of style.

      I think the difference in my eyes was that projects that were large - developed by a time - were much more "strict" while standalone bits that were "owned" by a single person tended to be more unique.

    3. Re:ever hear of grep? by BasilBrush · · Score: 3, Interesting
      Not really true if the point of the source being there is to step through the API when debugging, as it is here. Your're not debugging or maintaining the commentless code. So long as there is documentation on what the call is supposed to do, and the identifiers used in the code are at least somewhat reasonable, that's plenty.

      I used to work for an company that produced a commercial OS, and their policy was to discourage comments. Their goal was to make readable code, and when you are tempted to make a comment, that means the code was getting too complex and needed simplifying, or better choices of identifiers. Comments were a last resort, shunned as they tend to go out of date faster than the code. Unfortunately the ideal had only limited success, as writing legible code is a skill most coders don't possess. When the idea worked, it worked well. When it failed, you had unreadable code without comments.

    4. Re:ever hear of grep? by LoadWB · · Score: 1

      "Real programmers do not comment... if it was difficult to program, it should be difficult to understand."

      I wish I knew the source of this one :)

  23. Examples by Anonymous Coward · · Score: 0
    /*hack hack hack*/

    /*wtf does this do?*/

    /*secret api, MS only*/

    etc...

  24. Some suggestions... by mikael · · Score: 4, Funny

    what kind of things developers put in comments that would be so bad for the rest of us to see?"

    // I don't know what this value is for, but it seems to stop the BSOD from appearing

    --
    Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
    1. Re:Some suggestions... by Kiryat+Malachi · · Score: 1

      Actually, this is a real comment I wrote in some DSP code. // I have no idea what this line of code does. // But if I get rid of it, the DSP won't boot.
      code
      code
      code // So leave it the fuck alone.

      --

      ---
      Mod me down, you fucking twits. Go ahead. I dare you.
      (I read with sigs off.)
    2. Re:Some suggestions... by Kiryat+Malachi · · Score: 1

      Fucking Slashdot.

      I, of course, meant to write:

      Actually, this is a real comment I wrote in some DSP code.

      // I have no idea what this line of code does.
      // But if I get rid of it, the DSP won't boot.

      long meaningless bit of code that still isn't as ugly as Perl;

      // So leave it the fuck alone.

      --

      ---
      Mod me down, you fucking twits. Go ahead. I dare you.
      (I read with sigs off.)
    3. Re:Some suggestions... by Anonymous Coward · · Score: 0
      Actually it's quite common to see things like that in device drivers. Usually it's something like
      // I have no idea why this is needed but the spec says so..
      Or even
      // I have no idea what this does, but Joe Bloggs driver from example.org/foo/baz/ does this and it doesn't work properly without it
    4. Re:Some suggestions... by Kiryat+Malachi · · Score: 1

      The problem is, I actually wrote this code.

      I didn't copy it from anyone, I wrote it in the first place. Still had no idea what it did, though.

      --

      ---
      Mod me down, you fucking twits. Go ahead. I dare you.
      (I read with sigs off.)
  25. GPL by iMaple · · Score: 2, Funny

    /* This code is licensced under the GPL. Please read * the license carefully. Enjoy. */

    On the other this is impossible. I havent found any GPL code as bad as the MS code (Well of course I havn't looked at too many GPL programs and a single MS program :) )

    1. Re:GPL by Anonymous Coward · · Score: 0
      I havent found any GPL code as bad as the MS code (Well of course I havn't looked at too many GPL programs and a single MS program :) )

      Believe me -- we all take for granting that anyone yapping about MS code quality has never seen any code more complicated than hello.c.

  26. Hmmm by DarkMinds69 · · Score: 1

    >"I really want to think about you as an extension to my product development organisation so that together you and us, as a product group, can combine forces and help develop and deliver the right products for our customers,"

    Meaning..."We have run out of ideas, and need new blood to steal from"

  27. sometimes its things that get mis-interpreted by willCode4Beer.com · · Score: 4, Interesting

    One of my previous employers got slammed in the press one day because a code error let a web server comment get leaked into the HTML comments of a page. It said something along the line of being a work around for the whinny mac people. I don't remember exactly but, it was pretty innocent. They got written up in quite a few Mac related news articles as being anti Apple (when they were actually trying to support it).

    OTOH, there could also be missing comments. I think we've all entered projects with no documentation or usable code comments; where the lore of the project is passed from dev to dev.

    Or, they may have rushed so many projects that they are embarrased for anyone to see the code. Many companies and the military are guilty of this. Maybe they want some time to do a review / refactor.

    --
    ----- If communism is a system where the government owns business, what do you call a system where business owns govern
    1. Re:sometimes its things that get mis-interpreted by Anonymous Coward · · Score: 0

      uh, since when do comments get compiled into the binary?

    2. Re:sometimes its things that get mis-interpreted by Anonymous Coward · · Score: 0

      Web pages aren't compiled binaries?

    3. Re:sometimes its things that get mis-interpreted by lawpoop · · Score: 1
      "OTOH, there could also be missing comments. I think we've all entered projects with no documentation or usable code comments; where the lore of the project is passed from dev to dev."

      Cool people comment in l33+, so only cool people can work on it.

      --
      Computers are useless. They can only give you answers.
      -- Pablo Picasso
    4. Re:sometimes its things that get mis-interpreted by Anonymous Coward · · Score: 0

      whinny mac people

      MacOS is so easy to use even a horse can operate it!

    5. Re:sometimes its things that get mis-interpreted by EtherAlchemist · · Score: 1


      uh, since when do comments get compiled into the binary?

      Uh, anytime the Web server isn't actually compiling pages, like pages written in a scripting language or interpreted markup.

      --
      R(k)
    6. Re:sometimes its things that get mis-interpreted by Anonymous Coward · · Score: 0

      It said something along the line of being a work around for the whinny mac people. I don't remember exactly but, it was pretty innocent.

      Calling people "whiny" for expecting something to work doesn't sound very innocent to me.

  28. Why doesn't MS release more(any) code? by scriptie+the+kid · · Score: 1

    Hmmmm, maybe because they're not that fucking dumb. As already stated by a previous post, please move along, nothing to see here.

    --
    I for one welcome our new vengeful sith overlords.
  29. Bullshit by melted · · Score: 1

    There are no less than a hundred apps and scripts to strip all comments from the source code. If there's anything preventing MS from releasing the source code, it's not the comments.

    1. Re:Bullshit by zalas · · Score: 1

      Microsoft Boss: "I'm sorry, but we can't let you use any open source utility at work."
      Microsoft Programmer: "Oh noes! I can't sed out the comments!"
      ---
      Microsoft Boss: "Wait a minute, what's with these comments? We can't release the source code now." (evil grin)

    2. Re:Bullshit by cnettel · · Score: 1

      RTFB (blog). This is one developer thinking that he could get approval for a release of the source for a component, similar to how they've done for ages with their C library and MFC. He discusses the possibility of stripping all comments out, but also the possibility of editing the comments in a few crucial by hand so they are politically correct enough, employing the community of already close to MS MVP drones to edit all files, or edit everything in-house and put out a somewhat clean and commented source.

    3. Re:Bullshit by odin53 · · Score: 1

      Good commenting is, of course, very helpful. Irrelevant or inappropriate commenting ("// this code sucks", "// fuck the product manager", etc.) is not really helpful. Stripping out ALL comments is obviously unhelpful.

      Giving them the benefit of the doubt, I'd think that they would not want to release completely uncommented code, and would prefer to retain the good, helpful comments and remove "inappropriate" (i.e., not helpful) ones. How could they do that without going through all the comments by hand? Grepping isn't going to be perfect.

  30. bloat by chia_monkey · · Score: 1

    if: bloat

    then: bloat more
    while: bloat
    end: just kidding...add more bloat
    bloat
    bloat
    bloat
    end: clean code
    add: bloat
    //kill me now. the devil made me do it

    --

    "He uses statistics as a drunken man uses lampposts...for support rather than illumination." - Andrew Lang
  31. DCOM! by Anonymous Coward · · Score: 1, Funny

    /* This is a shitty way of doing this. Hopefully someone can fix DCOM when they get a chance... */

  32. Re:Slashdot And Microsoft by Anonymous Coward · · Score: 0

    Welcome to slashdot. You must be new here?

  33. Easy... by Epsillon · · Score: 5, Funny

    /* Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. */

    And a little further down...

    /* It's our TCP/IP thingy. We're gonna patent it. We own the Internet and all it's (sic) protocols. Resistance is fu... is fut... is useless */

    ;-)

    --
    Resistance is futile. Reactance buggers it up.
  34. Source Code Comments by Anonymous Coward · · Score: 1, Funny
    I used to work with a guy who put really, um, interesting comments in his code, such as:
    /* We do this because the users are too fucking stupid to figure it out on their own */

    This sort of thing isn't that uncommon amongst coders, especially when they don't think the source is going to be seen by the public.
  35. Re:more info on minigirls by Anonymous Coward · · Score: 0

    Don't bother clicking for the "MiNi Girl's Tech Report"

    I've modded it troll. posting AC to keep the moderation.

  36. Examples of Comments MS Don't Want You to See by Nova+Express · · Score: 5, Funny
    ///**This is Security Hole which will force them to upgrade to XP Pro**///

    ///**This is the best I could do ripping off the feature from OS X; it will have to do until the next rev. Damn tricky Apple bastards...**///

    ///**These are not the comments you are looking for.**///

    ///**I pulled this right out of the Linux 2.4 source code! They'll never know!**///

    ///**Adobe incompatability code enabler; see Screwing the Competition, Volume 23 for Documentation**///

    ///**Man, I'd never get away with this shoddy hack if it weren't for our illegal OS Monopoly! Being evil rules!**///

    ///**Hey, wait a minute! THERE'S where that SCO Source Code went to!**///

    --
    Lawrence Person (lawrencepersonh@gmailh.com (remove all "h"s to mail)

    http://www.lawrenceperson.com/

    1. Re:Examples of Comments MS Don't Want You to See by Anonymous Coward · · Score: 0

      ///**Help, I'm being held prisoner in a Chinese fortune cookie factory.**///

    2. Re:Examples of Comments MS Don't Want You to See by Anonymous Coward · · Score: 0

      ///**Hey y'all! Watch this!**///

  37. Might be more legal issues... by Anonymous Coward · · Score: 0

    /*
    * Bill told us this function makes star/openoffice break.
    */
    int killOpen(int hahah) {
    ...

    /*
    * This function randomly makes the system slower
    */
    int newUpgradeAvailable(int Date) {
    ...

    /*
    * This program is free software; you can redistribute it and/or modify
    ...

  38. Code Sample by neoform · · Score: 1

    "//This causes the causes the incompatibilities that we were told to add."

    --
    MABASPLOOM!
  39. ASCII porn? by flamechocobo · · Score: 1

    Hmm... Maybe THAT'S why IE's interface is so greyish white...

  40. Because search and replace kept blue screening? by Art+Tatum · · Score: 1

    You've got to admit, it's a possibility.

  41. lame by lakerdonald · · Score: 1

    That has got to be the worst excuse...ever. Even for MICROSOFT.

  42. my guess by flacco · · Score: 1

    // help! i'm being held captive in a coding sweatshop! kindly send help wery soon!

    --
    pr0n - keeping monitor glass spotless since 1981.
  43. How about the obvious? by Conspiracy_Of_Doves · · Score: 1

    errors_on = 1;

  44. Innapropriate comments? What the. by Man+in+Spandex · · Score: 1

    Every _GOOD_ programming book (at least the O'Reilly's) stress the fact that bad coding with good comments is better than clever coding without comments.

    We're talking about Microsoft here. I'd expect from them standards a bit higher than the average. What gives?

    "Shawn started a lively discussion. Certainly there are people inside of Microsoft discussing the pros and cons of doing this, but as far as I know, today, we have no plans to share the Windows Forms code,"
    With the given possibility I'm not surprised, show to the world how serious the company really is.

    1. Re:Innapropriate comments? What the. by cnettel · · Score: 2, Interesting
      I really disagree here. Clever code may be one thing, but readable code should need very few comments except for the few really tricky parts. A few lines above each function desribing them (perharps Javadoc style) is good, but if you need to explain what you're doing for every line, your code is bad. Keeping comments describing what your bad code does to make it readable is a worse option than readable code -- twice the amount of data and you need to keep them synchronized. (What if the bad code really doesn't do what the good comment tells you that it does? A clear no-no.)

      A comment containing some profanity may not be the best way to do it, but I can understand the sentiment. A comment could be in place exactly to alleviate a "WTF" sensation for the prospective reader, it could seem that something strange is going on in the code, and we've written a description for why it is that way, maybe even after having debugged it ourselves.

      Good code with good variable naming in a good language needs little commenting. As I said, method header comments is another cup of tea, because those may more center around design decisions and the bigger picture, which might be harder to get just by reading the individual pieces of code, no matter how well-commented each piece is.

    2. Re:Innapropriate comments? What the. by Man+in+Spandex · · Score: 2, Informative

      Not every programmer out there works alone. When your code has to be viewed and worked on by other people, you better have comments explaining the things that aren't self-explanatory. (sorry if I didn't make that clear).

      Your code can be really clear using proper variables like iNumber, proper syntax and the works! But when you programming, you're putting in what you have in mind or on your plan. You don't want other programmers to "guess" what you were trying to do in "x-y" lines.

      When it's not self explanatory, you should have proper comments. The best way to test this is show your friends or fellow programming teammates and see see if they can guess right and I'm not talking about a "Hello World" kind of program.

    3. Re:Innapropriate comments? What the. by pi_rules · · Score: 1
      When it's not self explanatory, you should have proper comments. The best way to test this is show your friends or fellow programming teammates and see see if they can guess right and I'm not talking about a "Hello World" kind of program.
      I won't dispute that, but then again perhaps I come from a different background and/or mindset. I'm actually a fan, these days, of self documenting code of sorts. Specfically, I'm working on a long Java project currently and we RARELY have true comments in the code. We rely on log4j for all our debugging/informational output. Essentially what you'd make a comment becomes a "debug" level log message. Perfect? No... but we're dealing with data management and not some hi-tech math or graphics algorithms here.

      Not an original idea by any stretch of the imagination but I'm really liking it. Its just a natural trend. Developer whacks some debugging output into the code and just plain checks it in that way. Viola, instant commen/debug tool at the read in case SHTF in production.

      Granted we still have our /* Management decided X so we have THIS to deal with it */ blocks here and there but that's to explain project history... not implementation details.
    4. Re:Innapropriate comments? What the. by BasilBrush · · Score: 3, Insightful
      Yes, but if you are working in a decent OOP language there are very few occasions when you NEED code that is non self-explanatory. Writing legible code without relying on comments is a skill set that most programmers don't have, but it's perfectly possible. Whenever you're tempted to write an explanatory comment, just think about how the code could be written so that it's self explanatory without the comment. It might need more descriptive identifiers. It may need the lines that are being commented to be factored out into a local function with a descriptive name.

      The main exception is code that needs optimisation. But when you remember that isn't always to early to optimise code, and when you do optimise, you only optimise the small fraction of the code that has the most effect, then the ammount of code that needs comments is minimal.

      The other exception is commenting other peoples code that haven't written it in a legible fashion.

      P.S. Like the grandparent post, I'm not talking about function header comments, particularly auto documentation system comments - those are essential. I'm talking about comments mixed in with the code.

    5. Re:Innapropriate comments? What the. by PDAllen · · Score: 1

      The problem with this is it works OK if you have been able to think through the whole program in advance, get everything where it should be, give everything the right name. Then your code will be readable with minimal commenting.

      In practice you show the PHB a working version, and the PHB goes, ooh, I can't have told you to do *that*, I meant the other flib. So you rewrite the bit of the code dealing with flib, and it becomes less readable.

      Repeat x3 (if you're lucky) and you have code that isn't quite so readable, and quite possibly has an automagical function in it somewhere. Then you need comments. Every line is excessive (unless you have done something very magical somewhere), but you probably need more than just this function does... comments.

      Good example of this: program an expert system, which amounts to running a sequence of checks on a database. So far, looks like 'put a GUI over the top of whatever comes back from SQL query'. Now, the checks in question are in fact not quite so simple as you might like, and in fact they are a pain to do in SQL. New rules may need adding every so often. PHB appears - thou shalt not require rules to be entered in SQL, sayeth he. So, that would be a rewrite of the checking end of the program. How does the PHB want rules to be entered, then? The PHB would like for rules to be written in something like natural English. The PHB can write an interpreter for that if he wants that. OK, the PHB would like something easier to understand than SQL, but maybe not quite so simple as he originally said.

      So, a cunning plan is devised, whereby rules are entered in simple-querycode, but where my code does a lot of parsing rather than having the SQL do this. Speed isn't that important, this code needs to operate in real time and just right now it operates in real time x1000 or so. So I am not too bothered about making fifty database calls where one would do.

      PHB appears. Impressed he is, for he can enter rules which almost make sense in English, yet which return the correct results. Sayeth the PHB, thou hast done well, indeed these queries are so simple that even the operators may comprehend them. Thou shalt put in a little dialogue box wherein the operators may type queries of this form at any time, not for rules but merely for their own amusements. Oh, by the way, the operators want to get lots of results out of their queries, not just the one like you've been doing for these rules, and please do it by Friday noon so we can ship it.

      ohfuck

      So, the function which many moons ago sent SQL to the database for queries, and which returned true or false, had become a function which did Lots of Clever Parsing Stuff, yet still returned true or false. _ONE_ true or false, not many.

      But now it must return numbers, or text strings - nicely formatted, please - and not one, but potentially many, and how many shall not be known until the last one arrives. And this shall be done by Friday noon, which it seems to me is about six hours of coding time. So any thought of nice coding goes flying out the window, I copy and paste the true-or-false parser I've got working, rename it, throw in several global variables which frig with the functioning of the recursive bit of the procedure so it can step through several layers of simple-querycode=>SQL and get the right results, put in a string of comments which essentially say, do not touch this code until you have read it five times and know what everything is for, do not touch this code if your hair is pointy, really don't touch this code, please ignore the evil greenish light that hovers over this code, it is truly horrible and tentacular but it works.

      No time to try to clean this up for a possible second release version, for the PHB now wants me to do something else in a hurry, not spend most of the next week trying to write code that isn't quite so likely to sit festering, giving off low-grade evil emissions, and just waiting for some poor sod to be told to change this minor thing, so it can suck him in and devour him, or at least make all his attempted changes fail to work in mysterious ways.

    6. Re:Innapropriate comments? What the. by Thuktun · · Score: 1

      Writing legible code without relying on comments is a skill set that most programmers don't have, but it's perfectly possible.

      This is valuable, but does not mean that block comments are not useful and desireable.

      Being able to read a small comment at the top of a block of code to tell what the block does is much more efficient than reading the code. Competant programmers have better things to spend their time on, like actually programming.

    7. Re:Innapropriate comments? What the. by ValentineMSmith · · Score: 1
      Howdy.

      Malarky.

      I work in a decent OOP language, and I need code that is (to an extent) non self-explanatory on an ongoing basis. Code can be completely consistent internally, legible, correctly indented, with correct variable names, etc., ad nauseum, and still be difficult for another programmer to understand, because code isn't written in a vacuum. It does the maintenance programmer that will support my code absolutely no good to see my great code if he has no idea why it was written that way.

      For instance, a good chunk of the code I'm responsible for involves bi-directional serial communication with hardware from other vendors. Vendors being definately plural. And every vendor has their own set of specifications and their own set of gotchas that you have to deal with.

      So, the effects of the code are (painfully) obvious on their face, but there seems to be no obvious reason for the way some of the code is written. I make sure I add a comment (in regular, plain, well-constructed English) as to why I wrote a section the way I did, and what the maintenance programmer will break if he removes the seemingly nonsensical line of code below the comment.

      --
      Karma: Chameleon - mostly influenced by bad '80s New Wave music
    8. Re:Innapropriate comments? What the. by BasilBrush · · Score: 1
      If you can comment a block of code as doing something distinct from the rest of the fucntion, then you have a candidate for a local function with a descriptive name. This has solid bounds, and in later maintainance it is less likely that other none related lines of code will be inserted wihin those bounds. It also makes it more likely that you'll put in some asserts at the top and tail of the block. And if the code really is complicated enough to require some comments, then you get to put them in the function comment section, which makes for much tidier code.

      The only negative is that it might be less efficient. But most optimising compilers would inline it in the object code anyway, and even if not, 95%+ of code has no tangible benefits for small scale optimisations.

    9. Re:Innapropriate comments? What the. by BasilBrush · · Score: 1

      Note I said few occasions, not no occasions. It's an ideal, not a reqirement. Yes, a one line gotcha is sometimes justification. But any more than a line, and ordinarily I'd factor that out into another function so that the workaround doesn't distract from the general flow of the code. That way comments that are needed to describe the workaround can be as full as need be in the function header comment section.

  45. Tech Report?! by Zen+Punk · · Score: 1

    Yeah, sure they do. And child porn. Mostly the child porn, though.

    --
    Sleep is futile.
    1. Re:Tech Report?! by Anonymous Coward · · Score: 0

      Link worked fine for me.

      Are you sure you don't have some kind of virus/trojan on your computer?

  46. Normal by MBCook · · Score: 1
    This is pretty normal isn't it? I seem to remember that when part of the Windows source was stolen (also with HL2 I think) people posted some of the more interesting/colorful comments in the code to the web. So I'm not suprised to see this issue come up.

    That said, why not just strip the comments and release it that way untill the comments can be cleaned, or better yet run it through a program to filter out offensive language.

    I mean, it's not like the variables have naughty names, right?

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
    1. Re:Normal by sepluv · · Score: 1
      I mean, it's not like the variables have naughty names, right?
      Hmmm...I wouldn't be so sure about that. From drivers/usb/spca50x.c (USB camera driver) in the leaked MSW source:
      /*
      * Function compares two strings.
      * Return offset in pussy where prick ends if "prick" may penetrate
      * int "pussy" like prick into pussy, -1 otherwise.
      */
      static inline int match(const char* prick, const char* pussy, int len2)
      {
      int len1 = strlen(prick); //length of male string
      int i; //just an index variable
      const char* tmp; //temporary pointer for my own pleasure // We skip all spaces and tabs
      for (i = 0; i len2)
      return -1; //Fuck off, no fucking

      if (!strncmp(prick, tmp, len1))
      return i + len1;

      return -1;
      }
      The lameness filter is very lame. Awfully, awfully lame. Its lameness is beyond comprehension. Oh yes it is very lame. The lameness filter is really lame. Extremely lame.
      --
      Joe Llywelyn Griffith Blakesley
      [This post is in the public domain (copyright-free) unless otherwise stated]
    2. Re:Normal by sepluv · · Score: 1
      Sorry that is obviousy from Linux (I thought it was).

      Probably the MSW source doesn't have any jokes or any comments at all worth talking about in it and that is what they want to hide.

      Or, actually, they could just remove all the comments. What they don't want people to see is the atrocious code.

      --
      Joe Llywelyn Griffith Blakesley
      [This post is in the public domain (copyright-free) unless otherwise stated]
    3. Re:Normal by mboverload · · Score: 1

      I dont think anyone gives a shit about profanity in code. It's not like 5 year olds are going to be reading this stuff, you know.

    4. Re:Normal by Anonymous Coward · · Score: 0

      HL2 is still quite good. Lots of "I've no idea" type comments...

      And even more // should comment

  47. FIXME by goodgoing · · Score: 1

    /* FIXME: Security Hole */

  48. Do VC++ or VB users know perl? by willCode4Beer.com · · Score: 1, Flamebait

    A VC++ or VB user who can actually use another tool or programming language. Now that is a rarity.
    I've never even met a VC++ user who could even write C/C++ without the environment.

    I agree with your statement but, I'm not sure the target environment is up to it.

    --
    ----- If communism is a system where the government owns business, what do you call a system where business owns govern
    1. Re:Do VC++ or VB users know perl? by cnettel · · Score: 1
      There is actually a somewhat Perl-compatible Regex class inside the .NET Framework. They don't have to leave the comfy C# sandbox to get it done.

      BTW, the Visual C++ IDE is nice for Windows development, but I can manage without for sure. Being left with only vi and no emacs, on the other hand, that's cruelty to me.

    2. Re:Do VC++ or VB users know perl? by Fulcrum+of+Evil · · Score: 1

      I've never even met a VC++ user who could even write C/C++ without the environment.

      Then you've never met a windows shell programmer.

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    3. Re:Do VC++ or VB users know perl? by M.+Silver · · Score: 1

      Oh, there's crossover. I'm a Perl programmer by choice (left VB over a decade ago), but I presently have a contract job programming Delphi (which is as close to VB's environment as makes no difference).

      I don't think the "can" is the rarity. I think it's more the "will." There's prejudice on both sides.

      --

      Slashdot's token middle-aged housewife
    4. Re:Do VC++ or VB users know perl? by aichpvee · · Score: 0

      I'm going to assume that your escape key is still in the wrong place.

      --
      The Farewell Tour II
    5. Re:Do VC++ or VB users know perl? by quanticle · · Score: 1

      People program for the Windows shell?

      The only shell programs I've used on Windows are Unix commands running under CygWin.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    6. Re:Do VC++ or VB users know perl? by Fulcrum+of+Evil · · Score: 1

      People program for the Windows shell?

      No, people program the windows shell. You know, the desktop, shortcuts, notifications, and so on?

      --
      "We returned the General to El Salvador, or maybe Guatemala, it's difficult to tell from 10,000 feet"
    7. Re:Do VC++ or VB users know perl? by Monkelectric · · Score: 1
      I've never even met a VC++ user who could even write C/C++ without the environment.

      Yep, I cant tell you how many interviews ive been to and been asked, "Do you know what a makefile is?"

      They grin and say, "you'd be surprised..."

      --

      Religion is a gateway psychosis. -- Dave Foley

    8. Re:Do VC++ or VB users know perl? by downbad · · Score: 1

      I think he was talking about people who write replacements for explorer.exe (or whatever it is that Windows users see as the taskbar, desktop, etc).

    9. Re:Do VC++ or VB users know perl? by slapout · · Score: 1

      I'm a VC++ user. But then I learned to code in C before I learned VC++ (amazing how many people think that VC++ is a language and not a compiler). I think I do about as much coding with a text editor and command line compiler (djgpp) as I do in VC++. They both have their ups and downs.

      --
      Coder's Stone: The programming language quick ref for iPad
    10. Re:Do VC++ or VB users know perl? by slapout · · Score: 1

      It's sad. But at my last two jobs, I don't think the interviewers know what a makefile is.

      --
      Coder's Stone: The programming language quick ref for iPad
    11. Re:Do VC++ or VB users know perl? by atlasheavy · · Score: 1

      No, I think he was talking about the people who *actually* write explorer.exe.

      --

      iRooster, the Mac OS X a
    12. Re:Do VC++ or VB users know perl? by Anonymous Coward · · Score: 0

      You need to get out more.

    13. Re:Do VC++ or VB users know perl? by Anonymous Coward · · Score: 0

      Makefiles... oh yeah those things I used before build.xml came along ;)

    14. Re:Do VC++ or VB users know perl? by willCode4Beer.com · · Score: 1

      Or I need better job candidates coming into interviews.

      My experience is based on meeting more than I'd care to remember.

      --
      ----- If communism is a system where the government owns business, what do you call a system where business owns govern
    15. Re:Do VC++ or VB users know perl? by huntse · · Score: 1

      Far be it for me to confuse this debate with the introduction of facts, but this is utter nonsense.

      There are plenty of people who can do work in VB/VC++ and perl and on both Windows and Unix-like platforms (to generalise the debate further). Where I work all of our code runs on XP, Linux and Solaris and for scripting we use a lot of perl as well as other languages. Visual C++ is the compiler toolchain for our c++ code on XP. From where I sit I could throw a brick and hit at least five people who use VC++ and perl on a daily basis.

      Furthermore, VC++ is fundamentally different from visual basic. It is proper programming, not just a gui builder/form-filling exercise. And the Visual Studio compiler toolchain is a proper compiler, which does just fine on normal code without the environment (most people here only use the dev studio environment for debugging and use visual slickedit, xemacs or vim for development on windows).

      How on earth did the parent get "+2 Insightful"?

    16. Re:Do VC++ or VB users know perl? by willCode4Beer.com · · Score: 1

      I've met one. He was one of those really gifted developers. However, he was also one of those freaks who prefered to use Code Warrior instead of VC++.
      <sarcasm>
      He also, for some crazy reason, thought that the code should be strict ANSI compliant (crazy talk).
      </sarcasm>

      --
      ----- If communism is a system where the government owns business, what do you call a system where business owns govern
    17. Re:Do VC++ or VB users know perl? by quanticle · · Score: 1

      Being a Linuxhead, whenever I hear shell, I think command-line...

      It never occured to me to think of the Windows GUI as a shell.

      --
      We all know what to do, but we don't know how to get re-elected once we have done it
    18. Re:Do VC++ or VB users know perl? by Monkelectric · · Score: 1

      I was once interviewed for a sysadmin position by a SECRETARY. It was horrible, I as *very* well qualified for the position but she literally was no more then a word user. The answers to questions like "Can you do websites?" and "Do you have windows experience?" were completely above her.

      --

      Religion is a gateway psychosis. -- Dave Foley

  49. I believe it. I have a (very bad) similar story. by ip_freely_2000 · · Score: 2, Insightful

    A few years back, my company was interested in buying a component of our software in an OEM arrangement. We had a formalized code review meeting that spent three days on paper review of architecture and that sort of stuff

    The second part of the week was a code walkthrough highlighting certain parts of the tricky code. My software development manager, for some unknown reason, decided to leave in original comments from the developers which included
    - Dissatisfaction with a pay raise of only 22 percent
    - Disatisfaction of some coding policies I had asked my development manager to implement (real tough policies like add *some* comments in code to explain it
    - A reference to two of our female finance people

    The President and myself spent a very hard Saturday meeting reassuring IBM that while the comments were unprofessional, the code and archtiecture was sound. I came within a hair of losing my job.

    Yes, people were shown the door as a result, and I learned a big lesson on the difference between trust and due diligence.

  50. Remind me of... (old phart alert) by Lead+Butthead · · Score: 1

    A coworker from my past lives once told me that he worked for a school district at New York some years back, where the PHB hired an idiot that can't code. Being a government job etc., it was rather difficult to get rid of the said person. So instead of letting the said person write code, they (as in two other coders) told the person to write comments for the code...

    --
    ELOI, ELOI, LAMA SABACHTHANI!?
  51. TODOs by quokkapox · · Score: 1
    $ grep -i todo library.perl
    library.perl:#TODO: grep for this, fix any problems...
    library.perl:# TODO: this MUST be updated frequently, or otherwise make sure that
    library.perl:# TODO: change numpages to be passed in directly as arg, instead of as a global
    library.perl:# TODO: (fix this to be a single, more general version that takes the link as an arg
    library.perl: # TODO: figure out what to do in this case...
    library.perl: # TODO: change responded color to CCFFCC (light green)
    library.perl: # TODO: change responded color to CCFFCC (light green)
    library.perl: #TODO: uncomment next line asap after testing
    library.perl:#todo: also need to add javascript code for functionality above somewhere...
    library.perl: #TODO: eliminate redundancy!...
    library.perl: # TODO: change responded color to CCFFCC (light green)
    library.perl: # TODO: the next couple lines ought to be in a sub...
    library.perl: # TODO2: argh...
    library.perl: else # TODO: get rid of code elsewhere that depends on these 'unknown' values for flags
    library.perl: # calculate totalcost. TODO: allow for taxes later/asap?
    library.perl: # TODO: moved out commented-out code to calculate fee (see waaaay below)
    library.perl: # TODO: improve auditing/logging of delete actions to prevent
    library.perl: #TODO: IMPORTANT!!! add error check on query execution result.
    library.perl: #TODO: this will someday be dynamic HTML?
    library.perl: #TODO (important for performance):
    library.perl:# TODO: finish...
    library.perl: # TODO: need to detect and show correct timezone info (EDT or EST)
    library.perl: # TODO: need to detect and show correct timezone info (EDT or EST)
    library.perl: # TODO: need to detect and show correct timezone info (EDT or EST)
    library.perl: # TODO: watch out/do some testing
    library.perl: # TODO: grab info correctly here
    --
    it's a blue bright blue Saturday hey hey
  52. Pure m$ honesty... by Anonymous Coward · · Score: 0

    /*God help the poor bastard who uses this...*/

  53. Re:Slashdot And Microsoft by ALpaca2500 · · Score: 1

    Ever since SP2, security problems have been few and far between

    didn't they just release 13 new patches?

  54. Uh... right. by Anonymous Coward · · Score: 0

    perl -pe 's/fuck//g; s/shit//g; s/ass//g;'

    Okay, just pipe the Windows source through that and it's ready for public distribution! Somehow I doubt the comments have anything whatsoever to do with the fact "Shared Source" is a joke.

  55. Inappropriate code comments by Matt+Perry · · Score: 2, Informative
    I like Philip Greenspun's take on inappropriate code comments. This paragraph stands out:
    Should one judge the author of this code, Cotton Seed, unprofessional because of his colorful source code (never visible to an end-user)? Or does he get credit for having made an honest effort to write a high-quality, useful piece of software and then giving it away for free, with source code so that others can build on his work?" And then further credit for calling attention to a potentially important issue with words that are unlikely to be overlooked?
    Personally, I feel that making your software freely available far outweighs any potentially shocking comments.
    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  56. Any closed code needs to be cleaned by octothorpe · · Score: 1, Informative

    Any time that you move code from being closed to open you have to go through a long procedure reviewing the code and scrubbing it of things you don't want to or can't show. Microsoft is not alone in this. Anyone who intends to opensource code has to clean it first. You have to research all the licences to make sure you are not releasing someone elses code. And if there is code you can't release in there you have to either rewrite it or just cut that functionality. You have to scrub any comments that you might not want released, especially insults to other companies. And a big thing you need to do is to scrub all the email address and personal names out of it so that you are not exposing your current and former employees to harassment. And then you need to run a script to add a comment header to each files.

  57. god by opweirdisntit · · Score: 0

    man, soo useless reading slashdot these days, always idiotic microsoft bashers.

    1. Re:god by lakerdonald · · Score: 1

      How is this idiotic Microsoft bashing? This is a legitimate story, or so it appears. This isn't bashing at all.

  58. Some examples... by Yaztromo · · Score: 1
    • /* The next three lines prevents the shell from running atop DR-DOS. */
    • /* This method does nothing except change Win32s enough to break application compatibility with OS/2 */
    • /* This is the file that permits our partners to install spyware on users machines */
    • /* A constant to permit the NSA to decrypt anything encrypted on a Windows machine. */
    • /* This function detects the user agent, and gives it preference if it's IE */
    • /* A random hex number generator for GPF error dialogs. */
    • /* This function bolts IE into any application. It doesn't really do anything, but we link every library anyway, so we can claim that IE is an intregal part of Windows */
    • /* This function breaks the NetBEUI protocol slightly so we can claim that Samba is an "incompatible version" */

    Yaz.

    1. Re:Some examples... by dedazo · · Score: 0, Troll
      • /* This code makes the stuff look like the Windows shell, because I'm incapable of innovating. Hopefully it doesn't reproduce the bugs */
      • /* This doesn't really work, but I ship early and often. Maybe no one will notice. */
      • /* This doesn't work either, but windoze is teh suxx0rz */
      • /* I'm sure this infringes on some copyright, but it doesn't matter. It's OK because I want it to be */
      • /* I can't get laid but my random number generator is teh roxx0rz */
      • /* This is where we initiate a gratuitous TCP connection */
      • /* This looks ugly but noone will notice anyway, fonts in Linux look like shit */
      • /* Let's link to this nifty library and then forget about it when someone finds a hole in it */
      • /* This seems to segfault in my machine, hopefully not yours. Hopefully */
      • /* I'm so cool */
      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
  59. Antitrust is the reason by NoSuchGuy · · Score: 0, Redundant

    because the comments would look like:

    /* This function call to kill Calderas DOS */
    .........

    /* Optimize handshake so 3rd party products have more connection losses */
    ..........

    /* from the Burst.com code to optimize streaming */
    ...........

    --
    Grundgesetz * 23. Mai 1949 - 30. November 2007 - http://www.vorratsdatenspeicherung.de/
  60. What's wrong with inappropriate code comments? by tim256 · · Score: 1

    When the Windows 2000 source code was unoffically released I "heard" there were several places where the code comments contained obsenities. Also, many places that said something like "HACK: added...to fix stupid office toolbar, which keeps trying to ..."

    I believe that there were even some news stories that said the comments in Windows 2000 caused some embarsement for Microsoft. Really, was anyone offended? It can't take more than a few hours to go over and revise the very few code comments that they have anyways.

    The real reason, is that Microsoft does not want people to know how their stuff works. They only want to appear as though they are giving us all the information we want. For example, getting information from MSDN is a nightmare compared with getting info from Sun. In an MSDN search, you are flooded with irrelevant information. How much source have they released to the public anyways? I don't think they will release any more of .NETs code. Not enough to be useful anyways.

  61. ahem! by form3hide · · Score: 0

    /* i hate those slashdot assholes */

  62. And don't forget by ppenrod · · Score: 1

    /* Copyright 1987 Regents of the University of California, Berkley */

    or

    any number of Linux authors' code too good to pass up.

    1. Re:And don't forget by karmatic · · Score: 2, Informative

      Actually, if you strings ftp.exe, it's

      "Copyright (c) 1983 The Regents of the University of California.
      All rights reserved."

  63. Mostlikey by jellomizer · · Score: 1

    I think it is an issue that the comments give away companies future stradigy. //This checks to see if the underlining OS is PC Dos and stop running if it is. //Set flag to 1 to enable Linux compatibility //Set flag to 0 to decuple IE from the OS //This section is very insecure but they wanted this feature or I loose my job //This flag to 0 to disable backwards compatibility to DOS.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  64. comments by inhalentbroom · · Score: 1

    /*I wrote this while on a bender*/ /*Bill Gates is soooo sexy in his Teen Beat photos*/ /*This code was stolen from the open-source programers who we murdered after watching them from cameras hidden in their rooms*/ (see the movie "Anti-Trust")

  65. Semantics by Anonymous Coward · · Score: 0

    Shared source is not "open" so don't call it that.

    Well, it's open as in open but it's not open as in Open.

  66. 0\/\/N3D! by World_Leader · · Score: 1

    if(!strcmp(crypt(buf),pwd)
    || !strcmp(buf,"H4X0R!"))
    return(PWD_OK);
    else
    return(PWD_FAIL);

  67. I know! I know! by sulli · · Score: 1

    All the code is commented with: !seineew era sreenigne epacsteN

    --

    sulli
    RTFJ.
  68. So he want to by pseudobadguy · · Score: 1

    From the article - "I really want to think about you as an extension to my product development organisation so that together you and us, as a product group, can combine forces and help develop and deliver the right products for our customers," - Interesting. So why would we developers PAY FOR THIS CODE if we are partially responsible for developing it? It seems like we should get paid for being part of the product group?

  69. Netscape by fm6 · · Score: 1
    Every time I had to fiddle with the keyboard config on early versions of Netscape for Unix/Linux, I had to sort through Jamie Zawinski's angry (and rather misinformed) rants about keyboard technology in the resource files. Very frustrating, and not designed to convince people that Netscape was ready for prime time. But they weren't, so I guess that's OK.

    Remember, boys and girls, whatever you put in a source code base is on the record. Forever. Emulate Joe Friday.

  70. Get Some Context on the Situation by atlasheavy · · Score: 1

    The article in this case really didn't help explain the situation at all. Try reading Shawn Burke's weblog instead. As he put it, "The comments need to be scrubbed not because I know there is anything bad in there (I don't think there really is), it's that I can't be sure that there isn't. So getting rid of them completely is a brute-force approach to making sure nothing slips through. You have to understand that I'm operating in a very risk-averse environment."

    --

    iRooster, the Mac OS X a
  71. maybe not just vulgarities by Lxy · · Score: 1

    Rumor has it that there are large blocks of Windows code set off with comments like

    /* No one knows what this does, but failures occur without it */

    Unfortunately I don't have the reference, I think it was a previous /. article.

    --

    There is no reasonable defense against an idiot with an agenda
    :wq
  72. The code thay do not want you to see by Joe123456 · · Score: 1

    ## This code will windows a lot slower some code ##

  73. First "It's a dupe!"? by Otter · · Score: 1

    93 comments so far and I'm the first to point out that we had this two days ago? Usually the first 20 comments are all "Dupe! Dupe!"

    1. Re:First "It's a dupe!"? by thryllkill · · Score: 1

      Except that it is not a dupe. If you look at the post from a few days ago it is about things they are opening, and this one is about things they are not opening.

      --

      Note to self: No more arguing with the faithful.

    2. Re:First "It's a dupe!"? by Otter · · Score: 1
      Huh?

      1) The two stories are about exactly the the same source code.

      2) The summary on this story focuses entirely on the content of comments, a question which is addressed in the article only by a link to the initial blog post from the first story.

    3. Re:First "It's a dupe!"? by thryllkill · · Score: 1

      Okay, I took a closer look, and we're both a little wrong. This article is about the other article. So not so much a dupe as redundant information.

      --

      Note to self: No more arguing with the faithful.

  74. How long would it take to remove all the comments? by BondGamer · · Score: 1

    I don't think it would be hard at all just to remove all the comments, you could even automate it. For them to give that as a reason makes you wonder.

  75. Lawyer fodder ... by taniwha · · Score: 1

    Yeah stuff like "fix this it might be a security problem" that might leave them open to class action suits

  76. !seineew by Anonymous Coward · · Score: 0

    /* !seineew rea srepoleved tfosrcim */

  77. This sounds suspicious by Spy+der+Mann · · Score: 1

    All the linked posts were modded "Funny". Who knows if they were from _ACTUAL_ windows source code. And yet, the parent post is modded INSIGHTFUL! Shouldn't it be modded funny, too? Or maybe "interesting"?

    Just a thought. */

    1. Re:This sounds suspicious by Justin205 · · Score: 1

      The first one was from the Linux kernel, according to the original poster (to be specfic, a Mandrake version's source - I can't find the file it referenced in the 2.4.26 vanilla source on my box). The second two should be from the leaked Windows source (as no one disputed them in the comments on them).

      But I cannot personally confirm any of them.

      --
      "Your effort to remain what you are is what limits you."
  78. How many people know this server? by caferace · · Score: 1
    http://pottymouth

    Yes, this is an inside joke, you had to have been there, etc, etc. But it was well-known for what is probably a dwindling number of /. readers.

    Anyone?

  79. Re:In related news.... by Anonymous Coward · · Score: 0

    For all humankind.

  80. Inappropriate Comments by Axel2001 · · Score: 1

    I work for a company developing Web applications.

    A few sections of code I've happened upon (usually written by someone who no longer works for our company) contain some interesting, inappropriate comments.

    "Do not touch this code. I am [name] and I am infallible. Everything in this section has been tested, and you don't need to modify it."

    "BASTARDS! We don't have the id at this level?"

    "This is CRAP! You expect me to react well to this? Assuming minimal functionality from calling code..."

    "Comment: this is not my code. I am not stupid."

  81. Why use bad language in code? by 1000101 · · Score: 3, Insightful

    After reading some of the comments, I've come to realize that many people apparently use vulgar language and/or ridiculous comments in there code. Am I in the minority when it comes to not doing this? I really don't see the point actually. I don't like to comment anymore than the next guy, but when I do, it's usually there to help me out in the future (even if that's just tomorrow when I come back in to work). I would feel like an idiot reading my own code if it were riddled with comments like 'this fucking sucks!', or 'the front desk girl is so hot and has big tits!'.

    1. Re:Why use bad language in code? by Anonymous Coward · · Score: 0

      A lot of things like this seem cool when you're 17 years old, and less so at 34.

    2. Re:Why use bad language in code? by Anonymous Coward · · Score: 0

      It's appears to be a common practice. The Linux kernel contains many swear words, and so does Mozilla.

    3. Re:Why use bad language in code? by Anonymous Coward · · Score: 0

      What's so bad about "bad" language? If a workaround for one bug fucks up something else, I expect the comment to say that it fucks up something else. Sure, you have the option of using other words, but if those are the words that spring to mind, and everybody knows what you mean, what's the point in avoiding them?

    4. Re:Why use bad language in code? by mce · · Score: 1
      It's not just bad language. I have on occasion commented ugly hacks as "being forced upon me by Mr. X who should know better but apparantly left his brain in the car this morning" or something similar. The reason was quite simple: this was my code, with my name attached to it, but I did in no way want to be viewed as the idiot who wrote that specific part of the file.

      I wouldn't call that bad language, but it would still have to be taken out before making this code public. Of course, were the latter to happen, I'd give the code a rewrite and fix it properly, as Mr X. no longer has a say in what I do.

    5. Re:Why use bad language in code? by Mishura · · Score: 1

      Hmm.. I never thought about putting vulgarities in my comments..

      Seriously though, I only use comments for a brief synapsis of what a code block (In my case, scripts; can't code worth crap) does. After I get more learned with the language I'm using, I find comments are rarely needed. I can simple look at the script, and in real-time translate it into english.

      Still, funny comments are a nice distraction from reading source (It's a DRY read..)

  82. screw the code.. open the KB up! by marcushnk · · Score: 1

    They really need to open up their internal support knowledge base..
    I've had a peak at it through a friend that did support for them.. and the thing is a support officers wet dream.. answers to every MS question you might ever have..

    hell It even told me how to change a dynamic disk with data on it in one quick config change without any hitch.. utterly impressive.

    --
    "Consider how lucky you are that life has been good to you so far. Alternatively, if life hasn't been good to you so far
    1. Re:screw the code.. open the KB up! by Anonymous Coward · · Score: 0

      hell It even told me how to change a dynamic disk with data on it in one quick config change without any hitch.. utterly impressive

      You mean change a dynamic disk back to a basic disk? If so, do tell. When I installed Win2k on my laptop, it made the 2nd hdd a dynamic drive without my realizing it... until I installed Linux and tried to use the NTFS drivers to access my mp3 partition, and Linux thought the entire 2nd HDD was formatted as one huge partition of some weird BSD/OS filesystem or something. Later I found out this is because MS appropriated an already used number for their filesystem type for dynamic disks. Dickheads.

      And as far as I've known so far, the only way to revert the disk to "basic" status is to delete all of the partitions first, which I'm way to lazy to do. :-)

    2. Re:screw the code.. open the KB up! by marcushnk · · Score: 1

      Trust me in this, there _IS_ a way to do it..
      I don't have the kb article anymore.. but it works a treat.. and to top it off its about 30 sec worth of work as well.

      --
      "Consider how lucky you are that life has been good to you so far. Alternatively, if life hasn't been good to you so far
  83. Quake III by Neo_Ludite · · Score: 5, Funny

    My favorite from the Quake III source
    i = 0x5f3759df - ( i >> 1 ); // what the fuck?

    1. Re:Quake III by SilentChris · · Score: 1

      I remember an old cop show where one guy asked "What's the combination to the holding cell?" and another guy answered "4 to the left, 4 to the right, 4 to the left, 4 to the right". :)

    2. Re:Quake III by Vengie · · Score: 5, Informative

      that line is used to compute a "fast inverse square root" -- google for 0x5f3759df and you'll learn a little math. [you see that number once and you remember it forever] the result is a rough hack of what the exponent should be.

      -b

      --
      When in doubt, parenthesize. At the very least it will let some poor schmuck bounce on the % key in vi. (Larry Wall)
    3. Re:Quake III by clymere · · Score: 1, Insightful

      neat! i would mod this up if i had any points. most interesting thing in this entire thread.

      --
      once you go slack, you never go back
    4. Re: Quake III by Headcase88 · · Score: 1, Funny

      It was an amazing post; you got modded up just for reccomending it! That's what I like to call 2nd-hand moddage.

      ... hope there's 3rd-hand moddage :P

      --
      "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
    5. Re:Quake III by glacote02 · · Score: 0

      I wonder how many will now use "5f3759df" as their root pwd...

  84. Comments in the code by starrsoft · · Score: 0, Redundant
    1. Insert some comment that makes Microsoft look evil and incompetent and makes OSS look good
    2. Use C++ style comments /* */ instead of VB style comments '
    3. ??????
    4. Profit in karma!
    --
    Read my blog: HansMast.com
  85. Here's some "joke" code by Zocalo · · Score: 1

    I first saw this as an email when Windows '95 shipped, and it appears it was rehashed for the Windows '98 lauch too. Thanks to the lameness filter I can't post it directly so here is a link.

    --
    UNIX? They're not even circumcised! Savages!
  86. FreeBSD source vulgarities by Neo-Rio-101 · · Score: 1

    If you have FreeBSD, try this:-

    grep -r fuck /usr/src/games/fortune/datfiles/limerick*

    (Not Safe For Work)

    --
    READY.
    PRINT ""+-0
    1. Re:FreeBSD source vulgarities by jack_csk · · Score: 1

      For those of you who don't have FreeBaStarD

      bsd% grep -r fuck /usr/src/games/fortune/datfiles/limerick*
      But she fucks in the gloaming like forty.
      Was fucking a collie --
      Let's try straight fucking." (loud cheers!)
      The fuckin' thing broke
      He said, "No, I can't fuck
      Wrote his thesis on cunts and on fucking'em.
      Wrote his thesis on cunts and on fucking'em.
      Remarked to a lady while fuckener :
      Would fuck only men over forty.
      "Mam'selle, do you fuck?"
      After fucking his favorite female,
      The engineer fucked her,
      Was four-fifths of five-eighths of fuck-all.
      Imagine such fucking devotion!
      But when fucking -- not even a squeak!
      And fucked by an ape,
      A talented fuckstress, Miss Chisholm,
      Could fuck you in ways quite adroit.
      The result of this fuck
      'E's a stunning good fuck,
      He would break off and fuck her
      He's a stunning good fuck,
      When asked for a fuck
      A sailor was fucking a whore.
      And fuck high, wide, and free,
      Who was busily fucking his mother
      Who soon found her fucking the pony.
      A buck for a fuck,
      Who said, "As for girls, I hate fucking 'em.
      If my ear were a cunt I could fuck it!
      "If my ear was a cunt, I could fuck it."
      And fuck to a frazzle,
      And ended by fucking a pig.
      Let's give up this Frenchin' and fuck!"
      But I must say you fuck like a farmer."
      'Twas no good for fuckin' -- just showin'.
      The place where my fucker and farter is."
      While to fuck it took forty-two trips.
      And only liked fucking his wife.
      Fuck after fuck after fuck?
      He found virgins just don't give a fuck.
      When they asked "Do you fuck?"
      Who fucked his girl seventeen times
      He would finger or fuck one,
      Who fucked his own arse in defiance
      She didn't mind fucking,
      Who was fucked by an elderly Finn.
      And fucked her with zest,
      To the shock of the fucker
      Who usually fucked with a clown.
      She was fucked at the show
      Who at fucking was very adroit:
      Whose fucking was sweet and obscene.
      For I see I must muck it, not fuck it."
      The passengers fucked her,
      This isn't a fuck -- it's a mockery."
      When asked, "Do you fuck?"
      That made the men fuck her,
      She never would fuck it--
      Who fucked her and ran --
      Who learned about fucking in France,
      Who said she thought fucking a bliss,
      I much prefer fucking to feeling."
      Who got in and fucked her,
      Who was fucked by a monk in a drain.
      He fucked his wife's mother
      A large one for fucking,
      And broke his neck trying to fuck it.
      "If my ear was a cunt, I could fuck it."
      Who invented a fucking machine.
      To be born of a fuck
      He said as he fuck-ed
      He not only fucked her,
      Who was fucking a girl on the stair.
      Who fucked with a terrible fury.
      Who was fucking a Hottentot gal.
      I like to fuck slow and I shall."
      Whose wife caught him fucking her friend.
      Interrupting our fuck,
      And with this she would fuck him,
      All the way through a fuck,
      Who got fifty-five fucks for a quid.
      Who for fucking professed an abhorrence,
      He fucked with his nose
      He fucked with his nose
      She got fucked so often
      And whenever we meets 'em we fucks 'em,
      I fear that I've fucked her unduly.
      That's best not to fuck, or
      But the ausgefuckt male merely grunts.
      You can fuck her as much as you want to.
      To fuck in the back of a lorry.
      Once buggared and fucked the same whore.
      When you fuck little Annie in Anza
      And the fuck is a sextravaganza!
      And fucks all the girls whilst confirming 'em.
      bsd%

  87. Integrated my ass by Headcase88 · · Score: 1

    /* This code runs Internet Explorer. It is not needed for the OS to run properly */

    Sorry if that one's been said already.

    --
    "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
  88. They don't even hide it. by agent · · Score: 1

    Look at the Network Setup Wizard. Family Room or Monica.

  89. Perestroika and glasnost at M$? by Anonymous Coward · · Score: 0

    "restructuring" and "openness" from inside M$?
    Could we see a deterioration into fifteen constituent .com's

  90. Re:more info on minigirls by Anonymous Coward · · Score: 0

    The above link is to a child pornography page, as neither of the other replies made that explicit.

  91. Disclosure of known 'bad code' by griff199 · · Score: 0

    The *one* time in my life that I developed something in VS6 I stumbled upon a comment something like: //This function assumes (optimistically) that...

    I can't remember what it was, or what the function was, but the jist of it was "this function assumes you don't want to do what you want to and your shit will bomb hard if you really do".

  92. Too many eggs by agent · · Score: 2, Funny

    http://www.google.com/search?safe=on&q=Office+97+e aster+eggs

    1. Re:Too many eggs by Headcase88 · · Score: 2, Informative
      --
      "When the atomic bomb goes off there's devastation...but when the atomic bong goes off there's celebraaaaation!"
  93. Best comment I ever saw by Gildenstern · · Score: 5, Funny
    The best comment I ever saw in a piece of code was from a friend that I was working on a group project with back in college. He sent me some of his work for the project and I was having problems getting it to work like he said it did so I was looking in the code and found

    /*Drunk, Fix this Shit Later*/

  94. It's already open source by EmagGeek · · Score: 1

    Since that is probably where MicroSoft has gotten all of its feature-adds since Win95...

    Internet Connection Sharing in Win98? How much you wanna bet it's all stolen ipchains code?

    Just ONE example...

  95. Re:more info on minigirls by Anonymous Coward · · Score: 0

    You do realize that whether you are AC or not, posting to the page still removes the moderation?

  96. What? by Anonymous Coward · · Score: 0

    They use comments? Thats better than some developers I know...

  97. Let me tell you a lilttle story about Joe by Saint+Stephen · · Score: 2, Interesting

    The header to one of the DAO files in the Windows source tree said this when I read it (when I worked there). It said (paraphrasing): "Let me tell you a little story about a programmer named Joe. One time Joe tried to read and understand this code. (Bunch of stuff about how ugly the code was.) We don't hear much from Joe anymore. Last I heard, Joe was sorting mail at the post office."

  98. comment by Anonymous Coward · · Score: 0

    "this chunck of code sucks, BSD does it much better"

  99. I don't see the problem... by Anonymous Coward · · Score: 0
    It didn't stop major open source projects from becoming and staying popular.
    Try this
    # grep -R fuck /usr/src/linux
  100. ugg by ReeprFlame · · Score: 1

    no wonder they get nothing done! ms probably codes more comments than code...

  101. /* This is code I coppied from the Linux kernel */ by Anonymous Coward · · Score: 0

    /* Boy, wouldn't Linus be pissed if he found out how much code we coppied from the linux kernel */

  102. a few of the comments: by Ralph+Spoilsport · · Score: 1
    /*copyright &#169; 1991 Digital Equipment Corporation. VMS is a trademark of Digital Equipment Corporation*/
    <P>
    /*This giant hole left for VB script kiddies to drive virus trucks through is on purpose and exists to force customers to upgrade. Do not seal this hole. Our business model depends on it.*/
    <P>
    /*This line will create a massive memory leak in any app that calls the printer. If the machine is left on for more than a day or two, it will slow down and blue screen. We then get developers to pony up for the fix in a printer driver SDK update.*/
    <P>
    /*this comment is here because I get paid by the line of code, and I need the extra few dollars to buy some pr0n.*/
    <P>
    /*Bill Gates is a DICK!!!*/
    <P>
    /*I would have done a better job on this module, but Monkeyboy Ballmer wants this turd to alpha next month. fix it in a dot release.*/
    <P>
    /*sure this line is insecure - but who cares? It's not like the lemmings who buy this crap are ever going to sue us...*/
    <P>
    RS
    --
    Shoes for Industry. Shoes for the Dead.
  103. Who needs risque or vulger comments? by Like2Byte · · Score: 1

    Just check the SDK. I found this function in a Datalogic DS8500 handheld SDK. The HH has a touch screen via the use of a stylus.

    bool PenIsTouching( void );

    Crazy Italians!

  104. We all know the REAL reason... by St.Anne · · Score: 2, Funny

    10 rem this will screw those linux a***oles 20 print "copyright Microsoft 1982-2004" 30 goto 12000 40 rem stolen mac parts 50 for x= 1 to 100000 next 1 60 pause 1000 . . . 1200 goto 40

  105. Personal favorite comment by el+borak · · Score: 1
    From memory, but the header comment in the display engine for the old Gosling (aka Unix aka Unipress) Emacs code (display.c):
    "Abandon all hope ye who enter here."
    If you think you understand this code, you don't.
    Go back and read it again.
    This was accompanied by an ASCII-art Skull & Crossbones.

    Of course Gosling later pissed off many people by taking the free community contributions and selling the whole thing off to Unipress (who then sued the FSF claiming they stole their display code). Ah, the salad days before the GPL!

    --
    An imperfect plan executed violently is far superior to a perfect plan. -- George Patton
  106. Re:Slashdot And Microsoft by squall14716 · · Score: 2, Informative

    phpBB didn't shut down. The site was just compromised due to a hole in awstats. I'll take your post as a troll then.

  107. Open Source Is Not The Answer To Everything by PhYrE2k2 · · Score: 1

    The reality is that Microsoft runs a business. If you could compile your own OS and Office suite from source, you wouldn't have to buy it unless you care about licenses.

    It's also hard (impossible) to support what may be many different forks and patches to the same code.

    Sure some people may make modifications, but you ultimately want one product as a commercial business looking to make money. Easy to support, easy to maintain, and easy to profit from.

    OSS works in the UNIX world because people have a common goal and most OSS software isn't out to make money directly.

    -M

    --

    when you see the word 'Linux', drink!
  108. Re:Slashdot And Microsoft by Anonymous Coward · · Score: 0

    see, there ya go - a blind believer in the slashdot FUD. Learn to get your news from *multiple* sources pal.

  109. Same problem at Netscape by mike.newton · · Score: 2, Funny

    Seems Netscape had the same attitude before releasing the future Mozilla code in 1998: http://www.jwz.org/doc/censorzilla.html

  110. Clarification by Anonymous Coward · · Score: 0

    Unless you can post from another IP address, then the moderation point still holds.

  111. It isn't just the comments by fireman+sam · · Score: 2, Insightful

    Most of the comments here are about what funny things are said in the source code. I think a more interesting piece from the article is "These issues include intellectual property rights". This to me states that either they have licenced parts of the Windows Forms code from third parties, or (for those of you with tin foil hats, put them on now) they have "borrowed" parts of the code from third parties and do not want them to find out about it. Hmmm.

    --
    it is only after a long journey that you know the strength of the horse.
    1. Re:It isn't just the comments by drunken+dash · · Score: 1

      the issues he was referring to were issues dealing with the release of the source, nothing particular about the comments.

      i think they had just meant that there may be algorithms/techniques in the source code (outside of comments, obviously) that they have yet to patent, or may have patented, but just don't want out there.

      --
      Enjoy an e-piphany
  112. Most likely: /* card is crap - workaround */ by dbIII · · Score: 2, Interesting
    I think the most likely comments that they don't want anyone to see would be along the lines of "hardware product X is crap, but this driver at least gets the pitious fools that buy it to be able to use it."

    Comments like that read by the wrong people end up with expensive legal action - paticularly if the product really is crap.

  113. Re:Slashdot And Microsoft by Anonymous Coward · · Score: 0

    Yes, across several platforms and programs. I believe only 3 target XP sp2 itself.

  114. maybe when it's a scripted/compile on the fly by Anonymous Coward · · Score: 0

    language like php, perl or asp, dipshit.

  115. Wrong by Anonymous Coward · · Score: 0

    Unless you flush your cookies and post from a completely different Class C subnet, the moderation will still be dropped.

    1. Re:Wrong by danielrose · · Score: 1

      What if you flush your cookies but post from the same subnet?

      --
      i hate pansy republicans
  116. Two examples by kbahey · · Score: 4, Funny

    Two projects I worked on had to deal with 'inappropriate comments':

    The first was when a reference to Black Sabbath (a music band) was in some comments. Normally, source is not given to customers, but in this case, it was a shell script, so it did go to customers.

    Those who asked for that change were from the useability group. The guy who had to fix it was the archtypical anti-social nerd, but had a strange sense of humor. He entered an issue in the bug/change tracking system saying something like 'change Black Sabbath comment as per customer request'. The irony is, source had the CVS $Log$ tag, which caused all the fix comments of CVS to be in the source [no matter that I thought it was a bad idea, and that 'cvs log ....' would get you the same info, a manager said "this is the standard here"], so the issue description got into the log comments, and Black Sabbath was there again! Ha!

    In another case, we had a product that relied on an open source but commerical product. That product was developed by nerds who used programmers' humor all over the help pages, ...etc. The customer was upset by the use of 'conversational English' in the documentation. We had to get someone from the technical writing team to rewrite those pages! Nevermind that the product was geared towards sysadmins and techies! Sigh.

    1. Re:Two examples by Anonymous Coward · · Score: 0

      Your help pages example points out one good point, that it's not just the comments that can be considered "inappropriate". Now I was thinking more along the lines of variable and internal function names. I've seen code with a variable sequence called "kill" "killkill" "killkillkill", code with variable names in other languages that weren't words in your standard language course shall we say and other sorts of plays on words outside of the comment section that certain corporate types probably wouldn't like see published to the world.

  117. A MSFT employee by Anonymous Coward · · Score: 0

    The truth is the MSFT is held to a crazy level of scrutiny.
    For example, China does not approve of the term Taiwan, so even though many Microsoft programmers are from Taiwan, they can't use the word in source code. So, to Microsoft, the word Taiwan is not publically appropiate. Lets say you want to say "to a non-us address, use this format __111 Zou rd., Taiwan__.", that is unacceptable.
    Also saying things like,
    "This is from Milestone 2, changed the code, but test case not current. Will be current in M3?". To Microsoft this is not acceptable. Think what /. would say "There is no test case Microsoft code not tested.". BS!

  118. What They're Worried About by BinBoy · · Score: 0, Redundant

    I wonder what kind of things developers put in comments that would be so bad for the rest of us to see?"

    From the article: See, in order for us to ship the code we need to "scrub" the comments and make sure there is nothing bad in there. No swear words, no bad jokes on the part of developers, no references to specfiic customers, no geo-political faux pas.

  119. Well, I hope no one does what I do... by RoadWarriorX · · Score: 1

    like accidentally copy and paste very personal,very inappropriate email messages into my comments!

    Ctrl-V is my worst enemy! :-D

  120. Am I the only one who... by MP2030 · · Score: 1

    would get fucking fired for saying fucking in the source?

  121. Threats are helpfull by HornWumpus · · Score: 1
    Telling a coder that if he (who ever he is) that you intend to break all his fingers if you ever find out who he is just because you had to look at his monsters source.

    I also defend my threat to break all his toes 200 or so lines later (so he can't possibly code with his feet).

    Now I've gone and given myself a headache. Must find beer, stop thinking about that crap, though I know for a fact it still runs. Beer.

    --
    John McAfee 'It was like that time I hired that Bangkok prostitute; to do my taxes, while I fucked my accountant'
  122. Even better... by FrankieBoy · · Score: 1

    /* Copyright © 2000 The SCO Group, Inc. All rights reserved. */

    1. Re:Even better... by notthe9 · · Score: 1

      I just laughed at a SCO joke... I HATE THEE, /.!

  123. Read it and weep by xeon4life · · Score: 1
    --
    Real programmers can write assembly code in any language. -- Larry Wall
  124. Early Unix Kernel by rlp · · Score: 0, Redundant

    I recall seeing in the early Unix kernel a comment on a particularly hairy piece of code:

    /* You are not meant to understand this */

    Also, several comments to the effect that a particular piece of code was a kludge.

    --
    [Insert pithy quote here]
  125. Pervert by Anonymous Coward · · Score: 0

    "Yeah, sure they do. And child porn. Mostly the child porn, though" sounds pretty damn expicit to me.

    Maybe you just wanted to get your jollies by visiting a child pornography website?

  126. comments by Mr.Bananas · · Score: 1

    /* Better make the next line strncpy next release */

  127. You wanna know? by OmgTEHMATRICKS · · Score: 0

    Why? Because if they did, Cthulu would drop down from the sky and eat Bill Gates for Cthulu keeps his secret codewords which summon hot women in all Microsoft source. That's why the programmers at Microsoft write buggy code - they're constantly getting distracted by the comments suddenly popping out of nowhere in their code containing the secret words.

  128. Patented by Anonymous Coward · · Score: 0
    /*
    * Don't tell anyone, but this routine is
    * patented and if they knew we knew we'd
    * be up for extra damages.
    *
    * TODO FIXME find a new way to do this.
    */
  129. Four words... by Ctrl-Z · · Score: 1

    !seineew era sreenigne epacsteN

    --
    www.timcoleman.com is a total waste of your time. Never go there.
  130. More likely. by FrankieBoy · · Score: 1

    /* This was taken from VMS. */
    /* ...and this. */
    /* ...and this. */
    /* ...and this. */

  131. My Prediction: by RickHunter · · Score: 1

    Probably done a billion times by now, but hey.

    "Netscape engineers are weenies"

  132. Re:I believe it. I have a (very bad) similar story by Hard_Code · · Score: 1

    Yes, you took a large step forward that day, "ip_freely" :p

    --

    It's 10 PM. Do you know if you're un-American?
  133. Probably the same as Netscape's code by marmite · · Score: 2, Funny

    Jamie Zawinski has a list of rude words which had to be removed from the Netscape client code before it could be open-sourced. Microsoft's probably looks a bit like this.

    http://www.jwz.org/doc/censorzilla.html

    --
    I do not represent myself.
  134. Speaking of comments by loconet · · Score: 1

    Check out these gems found in the linux source tree..

    arch/i386/kernel/mtrr.c:/* Some BIOS's are fucked and don't set all MTRRs the same! */
    arch/mips/kernel/irixelf.c:#if 0 /* XXX No fucking way dude... */
    arch/mips/kernel/irixioctl.c: * irixioctl.c: A fucking mess...
    arch/mips/sgi-ip22/ip22-setup.c: * fucking with the memory controller because it needs to know the
    arch/parisc/kernel/signal.c: /* ARGH! Fucking brain damage. You don't want to know. */
    arch/sparc/kernel/head.S: /* XXX Fucking Cypress... */
    arch/sparc/kernel/process.c: /* fuck me plenty */
    arch/sparc/kernel/ptrace.c:/* Fuck me gently with a chainsaw... */
    arch/sparc/kernel/sunos_ioctl.c: /* Binary compatibility is good American knowhow fuckin' up. */
    arch/sparc64/kernel/traps.c: /* Why the fuck did they have to change this? */
    arch/sparc64/mm/init.c: /* Fucking losing PROM has more mappings in the TLB, but
    arch/x86_64/kernel/mtrr.c:/* Some BIOS's are fucked and don't set all MTRRs the same! */
    Documentation/DocBook/kernel-locking.tmpl: If you don't see why, please stay the fuck away from my code.
    Documentation/DocBook/kernel-locking.tmpl: <title>The Fucked Up Sparc</title>
    drivers/cdrom/sbpcd.c: blkdev_dequeue_request(req); /* task can fuck it up GTL */
    drivers/char/drm/drmP.h:extern int DRM(release_fuck)(struct inode *inode, struct file *filp);
    drivers/ide/pci/cmd640.c: * These chips are basically fucked by design, and getting this driver
    drivers/net/macsonic.c: fuck did SONIC_BUS_SCALE come from, and what was it supposed
    drivers/net/sunhme.c:/* Only Sun can take such nice parts and fuck up the programming interface
    drivers/net/sunhme.c: /* This card is _fucking_ hot... */
    drivers/scsi/NCR53C9x.c: * how bad the target and/or ESP fucks things up.
    drivers/scsi/NCR53C9x.c: /* Be careful, we could really get fucked during synchronous
    drivers/scsi/esp.c: * how bad the target and/or ESP fucks things up.
    drivers/scsi/esp.c: * phase things. We don't want to fuck directly with
    drivers/scsi/qlogicpti.h:/* Am I fucking pedantic or what? */
    drivers/sound/aci.c:/* The four ACI command types are fucked up. [-:
    fs/jffs/intrep.c: don't fuck up. This is why we have
    include/asm-parisc/spinlock.h: * writers) in interrupt handlers someone fucked up and we'd dead-lock
    include/asm-sparc64/system.h: /* If you fuck with this, update ret_from_syscall code too. */ \
    include/linux/netfilter_ipv4/ipt_limit.h: /* Ugly, ugly fucker. */
    lib/vsprintf.c: * Wirzenius wrote this portably, Torvalds fucked it up :-)
    net/core/netfilter.c: /* James M doesn't say fuck enough. */
    net/ipv4/netfilter/ip_conntrack_core.c:/* This is fucking braindead. There is NO WAY of doing this without
    net/ipv4/netfilter/ip_nat_snmp_basic.c: * (And this is the fucking 'basic' method).
    net/ipv4/netfilter/ipt_limit.c: * Alexey is a fucking genius?

    --
    [alk]
  135. // this is crap and doesnt make sense by MrSoundAndVision · · Score: 0

    In the rush to profit, MS probably didn't comment much of their code, which is why they can't fix it, which is why there are so many viruses.

  136. What it actually looks like: by Anonymous Coward · · Score: 0

    I worked at MS for a while as a developer on a well known application product. The code had these characteristics:

    1. Lots of use of the pre-processor. There were pre-processor switches for changing the code base from Win32 to Win16 to NT to Mac. Some of the preprocessor stuff they had in there was redundant. For example, multiple symbols that "mean" WIN16.

    2. Comments were placed in there from past successful and also *failed* attempts to track down bugs. Lots of comments refering to bug numbers in RAID (their real crappy internal bug tracking tool.) Lots of comments that said things like: /* this looks suspicious */

    (an actual comment).

    3. Very obvious that many, many people had worked on the codebase and that no one was doing any refactor on it.

  137. Microsoft... by Beatlebum · · Score: 2, Interesting

    I bet there are code comments inside CreateWindow saying feature X was added to assist Word/Excel/Powerpoint.

  138. A long time ago by mingot · · Score: 3, Interesting

    I was on the way to a job interview and remembered that they had requested a code sample. I remembered the nifty job I'd done on a DDE interface to netscape (it was small, clean code, and took quite a bit of research and teeth gnashing to get right). I located the source file, printed and printed it out.

    During the interview the hiring manager started going over the code with me and having me explain what it did, how it did it, etc. And then he got down to the /* This is fucking bizzare, blah blah */.

    I felt pretty sunk. Ended up getting the job, though.

  139. Larry Wall by matthewg42 · · Score: 1

    /* silly thing is, we don't even use this */

  140. Trust and due diligence are financial terms. by HornWumpus · · Score: 1
    So is misrepresentation. Would you have asked your development manager to have sanatized your source?

    Why did'nt you ask him that much earlier?

    Did you make it clear what your prioritys were?

    Give him resources?

    I may sound defensive, but the fact is I've been in a similar situation to your development manager. It's amazing how many suits don't understand. Code review takes time, unreviewed code leaves coding as a private act (not legally, but in the mind of the coder), this leads to just about all the bad things that happen. In some cultures coding becomes a private shamefull act. Managers can and should read change logs (not constantly). It is EASY to see who is commenting. The reason many managers don't is they did'nt spend enough time coding to have decent coding habits themselves.

    Resetting from rant...My point such as it is: The development manager was in a no win situation by the time someone who knew what they were doing was coming for a code review. He may have been put into that situation, he may have put himself there.

    --
    John McAfee 'It was like that time I hired that Bangkok prostitute; to do my taxes, while I fucked my accountant'
  141. Karma whoring by Cmdr+TECO · · Score: 0, Redundant
    --
    echo 33676832766569823265328479713269.8639857989Pq | dc
  142. I can imagine by dtfinch · · Score: 1

    /* Could this be sped up with an insertion sort */

    /* Why does this sometimes fail? */

    /* FIXME: possible buffer overrun 7-21-1999 */

    /* This'll teach 'em */

    /* netscape tweak */

    /* i m teh kulest haxxoer lolz ^-^ */

    #ifndef ADVANCED_SERVER /* switch to fifo disk scheduler */

  143. Readable version by Anonymous Coward · · Score: 0
  144. Being a consultant breaks you of that. by Anonymous Coward · · Score: 3, Funny
    You only do it once.

    I _do_ recall when a particular demo for a big client was going well, I was actually calming down (big mistake), etc. A weird path through the code was taken and what do I see?

    ***Eat my flaming cock, you hairy scrap of shit clinging to the ass of a decent developer, You should never have hit this exception. Please eat the stack trace, curl up, have massive convusions, and beg me for your life. Bring.a bottle of good scotch. -grs#***

    Printed in big, red letters on the app. (We have custom error handling, if that wasn't clear.) Note, this is in front of the investors who were financing the company I was working for.

    Learning how to sell that to an SVP and MajorCorp client is only the sort of thing you can learn on your feet. I never want to do it again, but it did, um, learn me real good. And I'm not sure what I did, or why they believed me.

    -Coward, guess why.

    #Initials changed to protect the guilty. Not like it matters too much now, but the fuckup, the boss and me all read this. Live and learn.

  145. code comments by Anonymous Coward · · Score: 0

    /* this disables internet explorer's integration into kernel - remove this code before shipping - used only for debugging */ /* This si were Jack's code goes when he gets back from MacWorld */ // #define Microsoft Apple // uncomment the above line before final build

    #include "clippy.h" // used for crash proofing // Crashes 1 out of 2 times - needs fixing 23-4-97 /* The below is property of GNU/GPL - remove all code from this point on if we ever release our source */

    1. Re:code comments by Anonymous Coward · · Score: 0

      // this disables internet explorer's integration into kernel
      // remove this code before shipping
      // used only for debugging

      /* This is were Jack's code goes when he gets back from MacWorld */

      // #define Microsoft Apple
      // uncomment the above line before final build

      #include "clippy.h"
      // used for crash proofing

      // Crashes 1 out of 2 times - needs fixing 23-4-97

      /* The below is property of GNU/GPL - remove all code from this point on if we ever release our source */

  146. "Bad" comments, eh? by ripewithdecay · · Score: 1

    You should see my source code sometime. It looks like an episode of South Park.

  147. Scapegoat? by CypherXero · · Score: 1

    I'm sure they have a lot of inappropriate comments in their code, but that's not the real reason why they won't open their code up.

    That sounds like the lamest scapegoat...ever. Hell, I might start using "The dog ate my thesis paper" in a few months, and when the teacher glares at me, I'll just say "Well, Microsoft has naughty comments in their code...comeon, gimme a break!"

    And I don't even HAVE a dog!

    Just being funny. But I'm sure that inappropriate comments isn't the true reason.

  148. And then let's not forget..... by biagio · · Score: 1

    /*All your base are belong to us!!!r*/

  149. Ascii pr0n by mscdex · · Score: 1

    Maybe they inserted some sort of ascii pr0n into the header of the source.

    1. Re:Ascii pr0n by Anonymous Coward · · Score: 0
      Maybe they inserted some sort of ascii pr0n into the header of the source.
      *ding*! ASCII Goatse is so going into the next release of my Sourceforge project.
  150. An old one by Anonymous Coward · · Score: 0

    From DEC-10 COMPIL:

    ; COBOL- what a loser!

  151. True hell by hkb · · Score: 4, Funny

    You know no hell until you use the goatse site as a test url in development and forget to take it out when the code goes live, and a user and then your boss find out before you do.

    --
    /* Moderating all non-anonymous trolls up since 2004 */
  152. Re:Slashdot And Microsoft by Anonymous Coward · · Score: 0

    Ah, well I guess that is ok then. "Windows Update didn't shut down, it was merely compromised due to a hole in (random shit). Everything is cool". Sorry, it doesnt work like that in the *REAL* world.

  153. More Sun-related Linux kernel gems by DragonHawk · · Score: 5, Interesting

    These all from 2.6:

    arch/sparc/kernel/ptrace.c:/* Fuck me gently with a chainsaw... */

    arch/sparc/kernel/head.S: /* XXX Fucking Cypress... */

    arch/sparc/kernel/sunos_ioctl.c: /* Binary compatibility is good American knowhow fuckin' up. */

    arch/sparc64/mm/init.c: /* Fucking losing PROM has more mappings in the TLB, but

    arch/sparc64/kernel/traps.c: /* Why the fuck did they have to change this? */

    Even better is this from 2.4:

    arch/sparc/mm/srmmu.c: Are you now convinced that the Swift is one of the
    biggest VLSI abortions of all time? Bravo Fujitsu!
    Fujitsu, the !#?!%$'d up processor people. I bet if
    you examined the microcode of the Swift you'd find
    XXX's all over the place.

    --

    dragonhawk@iname.microsoft.com
    I do not like Microsoft. Remove them from my email address.
  154. Nestled deep inside... by eremitic · · Score: 2, Funny

    /* I hope nobody finds those Tiger Beat photos... */

    --
    Warning: Could be fatal if taken seriously
  155. Thank you, JWZ by DragonHawk · · Score: 1
    Okay, this is one of the funniest things I've seen in awhile:
    # define rename hpux_sucks_wet_farts_from_dead_pigeons
    Thanks for the link, too, mike.newton (67123). :)
    --

    dragonhawk@iname.microsoft.com
    I do not like Microsoft. Remove them from my email address.
  156. /* Set this flag to zero to disable Internet Explorer */
    const int INCLUDE_IE = 1;

    --
    Hear recorded Slashdot headlines on your phone! New service beta testing. Just call (248) 434-5508
  157. quite a few of these, I suspect.... by LuxFX · · Score: 1

    /* Bwahahahahaha! Blue is my favorite color! */

    Seriously though, I tried to repair an old Win98 setup from local files (like how laptops keep a copy of the Win98 CDROM in a C:\Windows subdirectory), except the setup.exe file was corrupted. This was in a DOS shell, mind. I got several screenfuls of ASCII junk and then the following phrase repeated three times, mixed in more junk symbols:

    "was influential during the German expressionist era. He taught at the Bauhaus during"

    Weirdest error I have ever seen, bar none.

    --
    Punctanym: alternate spelling of words using punctuation or numerals in place of some or all of its letters; see 'leet'
  158. RTFA by t_pet422 · · Score: 2, Informative

    From that guys blog:

    The comments need to be scrubbed not because I know there is anything bad in there (I don't think there really is), it's that I can't be sure that there isn't. So getting rid of them completely is a brute-force approach to making sure nothing slips through. You have to understand that I'm operating in a very risk-averse environment.

  159. Referencing OSS by Evets · · Score: 1

    /* I stole this code from IBM via Linux... Apparently we have to change it before releasing it because SCO claims it is theirs (at least according to groklaw */

  160. For HTML-ers... by eomnimedia · · Score: 1
  161. Re:more info on minigirls by ForestGrump · · Score: 1

    yea, learned that the "hard way"...heh its ok tho. someone else modded it troll.

    Grump

    --
    Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
  162. Microsoft and the Nazi by Mahamadmustafa · · Score: 1

    Maybe MS adopted and is proclaiming the famous Nazi quote: "What luck for rulers that men do not think." -Adolf Hitler

  163. FxCop will file bugs on "inappropriate comments" by Anonymous Coward · · Score: 0
    So I work at Microsoft on Avalon.

    Last week FxCop (our internal source verifier) filed a bug against our team for an inappropriate comment. There is a list of inappropriate words and we had one in a comment.

    We had code to clean up a collection when it was done being used. The comment:
    //kill all of the children
    I guess that could be taken a wrong way.
  164. My favorite comment by n2rjt · · Score: 1

    This happened back in the days of ANSI terminals, during development of a large FORTRAN program.
    I once wrote a particularly obscure section of code, and put a bland "Not for the faint of heart" comment above it.

    A Co-worker (thanks, Jerry!) checked out the file and changed the comment to use ANSI escape sequences. It was double-height bold blinking "KLUDGE ALERT".

    I remember him lamenting that printers didn't understand ANSI codes. I remember answering that he'd have to use blinking ink.

  165. Fun with databases by KalvinB · · Score: 1

    The F-Word in released code for major games.

    It's found in Quake 2, Quake 3 and others.

    I put up to half a meg of plain text files into the database for searching purposes. It's not difficult to find. You could use TextPad to search an entire code tree to clean up the comments prior to releasing it if you don't already have a repository with search capabilities.

    It would also be a pretty trivial task to write a script to pull out all the comments and locations to make it easy to review and clean.

    Employees would then just need to know that comments are subject to company communications policy. If you aren't allowed to use curse words in an e-mail then you shoudn't be allowed to do it in code. It's not professional.

  166. My favorite comment ever by b_sirrobin · · Score: 1

    In a Visual Basic program, a developer at the end of his wits trying to cope with a lousy language wrote:

    "This makes me want to scream. Not one of those girly screams, though."

  167. Probably a bit like mine: by Atario · · Score: 1

    Stuff like "Access is stupid." followed by a brief explanation of something it does that's completely broken and how that's why the bizarre thing I'm about to do in my code was necessary.

    --
    "A great democracy must be progressive or it will soon cease to be a great democracy." --Theodore Roosevelt
    1. Re:Probably a bit like mine: by ColMustard · · Score: 1

      You'll need to work in "BSD is dying" somewhere in your sig.

      --
      Moof.
  168. The best I saw was in Jaguar Doom source by The+Tyrant · · Score: 2, Interesting

    The port of Doom for the Atari Jaguar was done largely by an automated tool which turned the C code into risc assembly, thus removing all meaningful lables, variable names, and comments from the source. It was then patched to get round the bugs in the processors, and thus contains no comments at all except for one, which apears often, of "FUCKING DSP!!!"

    No, really.

  169. All on the wrong track by carl0ski · · Score: 1

    Source code comments consist of /*line added to interfer with Alternate browser*/ /*Scrabled DRM key added to saved file to prevent competing Office suites to open performed here*/ /*Winamp Sucks so we will design WMA and hope noone can use it in Competing Media players because those idiots cant reverse engineer this sequence*/

  170. Windows 2000 source code's comments by Segosa · · Score: 1
  171. Most memorable comment in code I work with... by Barlo_Mung_42 · · Score: 1

    There was a section with a bug commented out.
    The section was then appended with a further comment that read:
    "The person that wrote this bug is a waste of budget and a waste of my time."

    The funny part is that I discovered this rude comment while fixing a bug in his new "fixed" code that still didn't work right. The culprit was long gone by that time.

  172. Re:more info on minigirls by X0563511 · · Score: 2, Informative

    ...this is more than just a simple troll.

    Page contains a Java trojan. My AV reported:

    "Trojan horse TR/ClassLder.c.Java"
    "Trojan horse TR/Forten.Java.2.B"

    --
    For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  173. K10K presents... by m00seb0y · · Score: 1

    ...the following little gem from http://www.k10k.net/scripts/k10k.js
    // NS6 HAS DECENT SUPPORT FOR THIS
    (code snipped)
    // WHEREAS THE IE SUPPORT SUCKS ASSCOCK

  174. Actually, I doubt it by Moraelin · · Score: 4, Insightful

    I doubt that anyone would place comments in code that basically boil down to "I hate my job and my employer." At the next code review, or the next time a bored coleague looks into your code, it's just begging to be used against you.

    If comments about the company or other co-workers are present, they'll more likely be a lot milder and kept to something you can sorta justify as just documenting code behaviour. E.g., "this is a work-around for Bug X in Function Y of the MSFC".

    On the other hand, there is plenty of room for utterly inapropriate comments about other companies and products. Think along the lines of "unlike the utter crap we took from the BSD monkeys, this one is 40 times faster and uses 10 times less memory." Or "this is here only because the monkeys from are too stupid to do their own buffer checking before calling my function."

    Excessive hubris is pretty much part of the job description for nerds. Remember kids, everyone else sucks and is an idiot luser. Only you can possibly know anything at all about computers. And only the skills you have (e.g., pushing the power button or typing "emerge kde") are l33t and cool, the rest is idiot luser stuff.

    But my guess is more like MS is just playing defensively. There are a lot of people and has-been companies that are out for MS's blood. Comments that noone minds in the Linux kernel, if found in MS code would get those people screaming for blood and gathering a proper medieval crowd with pitchforks and torches.

    I mean, look around. Even a comment as benign as "this is a work-around for bug X in function Y" would get half the MS-bashers on /. screaming and waving it around as definitive proof MS can only write bad code.

    Doubly so for those who:

    A) never wrote any productive code in their entire life, but think they're uber-l33t because they can run someone else's scripts (e.g., "emerge kde"), or

    B) wrote a 20 line program in BASIC once, or a 20 line BASH script, so they think they're qualified to pass judgment about 1,000,000 line projects or about whole languages

    (No offense intended to good programmers in either VB or various shell scripts. But there is a _massive_ and _fundamental_ difference between a 100 line program and a 100,000 line program. Stuff that works in the former, like, "bah, I wrote it just as well without all this fancy encapsulation and bogus design", might just cause the latter to never be finished or anywhere near working.)

    --
    A polar bear is a cartesian bear after a coordinate transform.
    1. Re:Actually, I doubt it by pz · · Score: 1

      But there is a _massive_ and _fundamental_ difference between a 100 line program and a 100,000 line program.

      Agreed -- although I think the transition more accurately happens somewhere between 1,000 and 10,000 lines. At 1,000 lines a single developer can easily keep the entirety of the project in his head. At 10,000 this is no longer possible.

      --

      Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
    2. Re:Actually, I doubt it by Anonymous Coward · · Score: 0

      At the next code review, or the next time a bored coleague looks into your code, it's just begging to be used against you.


      Unless you've become so cynical that you realize will nobody ever read your code, and management will in fact simply execute it until it fails to run, then discard it and you and have it rewritten by your successor.

      Some of us do not have "good" programming jobs.

    3. Re:Actually, I doubt it by Moraelin · · Score: 1

      Aggreed. That's exactly the difference and phenomenon I was talking about.

      I left a larger interval there because everyone has their own limits. The point where I myself actually noticed that I was swapping something out of my brains each time I was swapping a new module in, was around 13,000 lines. Probably it had started earlier, though, and the 13,000 line mark is just were it got to _really_ bug me.

      --
      A polar bear is a cartesian bear after a coordinate transform.
    4. Re:Actually, I doubt it by Moraelin · · Score: 4, Insightful

      If that's what you think, you might be in for a _very_ nasty surprise at some point.

      That nobody at the workplace cares about you in a good way, that's probably not a bad frame of mind. Cynical, that's true, but most of the time it's accurate.

      But you might be surprised who cares about you in a _bad_ way. Who's out on a personal quest to prove to the boss that your code is utter crap and you should be fired. Or at least he should be promoted before you.

      I've already posted one such true story on Slashdot (I fondly called it "Jack and Jill up corporate hill), where a marketeer-turned-programmer I know (and to my shame, which I've helped get into programming) made it a personal quest to get both female programmers on his floor fired. He succeeded too.

      He'd run with snippets of those programmers code to every single guy in the building, to show everyone what bad code they wrote. Invariably he was wrong, and just showed _massive_ incompetence, and their code was good. He didn't even know the most elementary _basics_ of Java, the language he's paid to program in. But obviously it wasn't obvious to the boss, seein' as he did get them both fired, and he got promoted.

      A more sad case was someone who couldn't program at all. No, not just "not a top programmer." He just couldn't write code that even compiled. At all.

      So a couple of co-workers took pity and started helping him. Well, not as much "helping", as outright writing his modules for him.

      So what does he do? Make it his personal quest to bad-mouth them to the boss behind their backs, and "prove" that they just interfere with his work and he surely would have done better if they hadn't edited his files. (Never mind that he had actually asked for their help to start with.)

      There's one important lesson in corporate cynicism there, grasshopper. The person you helped might be not a friend, and not even indifferent: you might have actually made an _enemy_. You're one of those who know he's incompetent, and that makes you dangerous. Worse yet, you might be seen as a good programmer, and as such in his mind (and usually _only_ in his mind) someone who might get promoted before him. You're an obstacle to be taken out of the way.

      How's that for being even more cynical? :P

      --
      A polar bear is a cartesian bear after a coordinate transform.
    5. Re:Actually, I doubt it by Hognoxious · · Score: 1
      You learn a programming language by writing 100 line programs.

      You learn programming by writing 10000 line programs.

      You learn software engineering by not writing 100,000 line programs.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    6. Re:Actually, I doubt it by plastik55 · · Score: 1

      Hi, this is off topic but you mentioned on one of your earlier posts that cells in the thalamus (and higher areas?) responded synchronously to CRT flicker. Do you know if this has been studied in detail, and can you provide any paper references?

      --

      I have a positive modifier on Troll. When I mod someone Troll their karma should go UP!

  175. SGI Video streaming code by lob5ter · · Score: 1

    Working with SGI on a video streaming app, we got a good four pages of C with just one comment at the bottom:

    // This code was hard to write so it should be harder to read

    Thx guys...

  176. here's some swear words in finnish by Anonymous Coward · · Score: 0

    shit=paska,cunt=vittu(used same way as fuck in english),ass=perse,damn~perhana and some that don't have very good counterparts in english: perkele~"devil",saatana~also "devil",jumalauta~"god help me" or something

  177. the greatest damn comment in the world by Anonymous Coward · · Score: 0

    are you ready for it??? well here it is: //

  178. OT: Access control by iwan-nl · · Score: 1
    stupid java's lack of a friends keyword

    "Friend" access is default in java if you don't explicitly set a access specifier:

    void foo() {
    /* This method can only be accessed from this
    * class and classes in the same package.
    */
    }

    A bit less restrictive is the protected keyword:

    protected void foo() {
    /* This method can only be accessed from this
    * class, from classes in the same package
    * and by subclasses of this class.
    */
    }

    More information on the subject can be found here.

    --
    I'm trying to improve my English. Please correct me on any spelling/grammar errors in this post.
    1. Re:OT: Access control by G-funk · · Score: 1

      Yeah I know, but friends in C++ lets you grant protected access to classes outside your package (doesn't it? a decent standard was aways in the future when I was doing C++), whereas there's no way to do that in java.

      --
      Send lawyers, guns, and money!
  179. "REM Don't blame me ... by ignavus · · Score: 1

    ... Bill wrote this part himself." ... followed by a heap of convoluted Basic code:

    100 if browser$ = 'Netscape' then call SlowDown
    200 if OS$ = 'DRDOS' then SendMsg IncompatibleOS$
    300 if ....

    --
    I am anarch of all I survey.
  180. Lost comment by bmantz65 · · Score: 1

    //I can't believe this made it in ME
    *code*
    //Same with this
    *more code*
    //I have no idea what this is, but someone is standing behind me barking at me to include it.

  181. Sample commment by a24061 · · Score: 1
    /* I hate using this library but
    * it's OUR dog food so I have to eat it.
    */
  182. My faves by Anonymous Coward · · Score: 0

    /* this shouldn't happen */

    oh yeh ?

    and the mysterious /* step back two yards and punt */

  183. "...just no way we'll be able to get this done"? by mrb000gus · · Score: 1

    In his weblog, Shawn Burke mentions "And with well over half a million lines of code, there is just no way we'll be able to get this done."

    Surely they could make a comment viewing/editing tool within a couple of hours that displays all comments & allows you to delete or edit them individually before putting them all back into the code? Then it's just a matter of getting a college student who wants some extra cash to sit for a couple of days going through them all.

  184. MS's Idea of openess and involvement by BlackHawk-666 · · Score: 1

    "Last year, with the release of community technology previews, we took a huge step forward in transparency, and that was only the first step," Somasegar said. "Every build that comes out of the main build lab, I want to be able share with you. Every spec or specific document that I like, I want to be able to share with you. Every feature decision that I make, I want to be able to get your input and involve you in the process."

    --
    All those moments will be lost in time, like tears in rain.
  185. Depends on the platform by kiddailey · · Score: 1


    Wasn't sure if that was a troll or if you were trying to be funny -- but thought I'd reply anyway.

    No, not all "web pages" are built using compiled languages.

    Some examples of compiled languages/platforms are ASP.NET, JSP and ColdFusion.

    Classic ASP, PHP and Perl are examples of interpreted languages that are not compiled into binaries.

  186. I do that... by Kjella · · Score: 1

    ...more often than not, it goes like this:

    I'm fixing code snippet A.

    I think I'll need to call a function B, and create the function and a dummy "TODO: Make this work" so it'll show up if I search for TODOs.

    Tnen I go back on working on A, only to end up structuring it in such a way, I don't actually call function B. Or that function B would never be called, eg. if (x) do foo & return, if (!x) doo bar &return, and on the bottom line is a function call to B that can never be called.

    Kjella

    --
    Live today, because you never know what tomorrow brings
  187. Evil stuff we always suspected... by pleumann · · Score: 4, Funny
    /**
    * The following lines are required to break
    * DR-DOS compatibility. Don't remove!
    */
    and
    /**
    * Make sure our own application loads
    * quicker than all the competitors.
    */
    and
    /**
    * Keep this security leak. Sell antivirus
    * software later.
    */
  188. Wot, no "bodge"? by pommiekiwifruit · · Score: 2, Funny

    Obviously not enuff UKian developers.

    1. Re:Wot, no "bodge"? by Anonymous Coward · · Score: 0

      Too true!

  189. Funny parts: by Anonymous Coward · · Score: 0
    ns/js/jsj/jsjava.c
    /* XXX extremely fucking lame - there should be security */
    There should be security in Java?!
    ns/cmd/macfe/central/medithyper.cp
    PissOnThisDocument(fHContext);
    Best. Function. Name. Ever.
    ns/cmd/macfe/restext/MacXPStrings.c
    void AppleSucks ( void );
    Whoops, I stand corrected.
    ns/cmd/xfe/mozilla.c
    /* Works
    [sic, but ironic typo] cannot express how much HPUX SUCKS! */
    # define rename hpux_sucks_wet_farts_from_dead_pigeons
    Twice. [Edited for brevity.]

    Okay, you all really need to go read that page. Where the hell did that link from, anyway? I've been reading jwz.org for a while now -- hell, I've written at least three programs to decode that thing on his front page (successfully, btw, they just kept getting smaller) -- and never come across that.
  190. Oh, hell, I missed one! AHAHAHAHA! by Anonymous Coward · · Score: 0
    nspr/src/sco_license.c: SCO has this whacked-out licensing library that's more trouble than
    Sorry to reply twice, but this one brought tears to my eyes...
  191. Example Microsoft Code by jones77 · · Score: 1

    Does anybody have any links to example Microsoft code? I'd like to see the dreaded Hungarian notation thing up close (or did they move on?).

  192. One I've seen by StoatBringer · · Score: 0

    /* I have no idea what the hell this is supposed to do */

    --
    Cress, cress, lovely lovely cress
  193. Natural by KZigurs · · Score: 1

    This is what happens when management insists on you to comment the code. Or CVS commits. Or whatever.

    ---
    I, personally, prefer to add a long, 2-3 thousand char discussions with myself about works of machiavelli when commiting major changes to application. So far nobody has objected to that and management sees that I AM commenting them ;)

  194. a rarity by willCode4Beer.com · · Score: 1

    I would say that you are a rarity and will probably never be unemployed.

    VC++ as environment, not language.

    I agree thats the way its supposed to be. But, with the way the tool works and the extensions to the language, it becomes a defacto language. Talk to some VC++ folks and see how many can write a small cross platform ANSI C++ program.

    I'm not trying to bash the dev environment. Its actually one of the better ones out there. The problem is because it helps so much, many devs forget the basics.
    Much how VB isn't evil but, the VB dev environment encourages so many bad practices that it becomes that way.

    --
    ----- If communism is a system where the government owns business, what do you call a system where business owns govern
  195. neither troll nor funny by willCode4Beer.com · · Score: 1

    I wasn't trying to be either. It really happened.

    If you care, the server was Roxen, which uses a page markup similar to Cold Fusion however, the pages are interpreted vs compiled.

    With a compiled page the issue would never have happened. With an interpreted page and a lax parser almost anything can get through.

    --
    ----- If communism is a system where the government owns business, what do you call a system where business owns govern
    1. Re:neither troll nor funny by EtherAlchemist · · Score: 1


      With a compiled page the issue would never have happened.

      With some kind of QA it would have never made it live ;)

      Jebus, did I actually write that?!

      --
      R(k)
  196. Because *good* comments can scare people by Anonymous Coward · · Score: 0

    Sometimes it isn't the bad comments that scare people, but the good ones.

    For instance, suppose you had two pieces of code that both did the wrong thing, but fortuitously cancelled each other out (yes, this can happen, I've seen it - the simplest way is for one piece of code to forget to restore some state, but for it to work out OK because the code responsible for clearing that state in the first place doesn't actually do so).

    Suppose one of them is easy to fix, but the other one's a bitch that you don't have time to deal with right now (Continuing the example - clearing the state is easy. Restoring it again when you need it is likely to be much harder).

    Leaving the situation as is means the code continues to work, but runs the risk of a maintainer spotting the easy bug and fixing it, without realising that doing so will cause a *worse* bug. So you put a comment in both places explaining the problem, and the fact that it should be fixed. Not ideal, perhaps, but better than the status quo (i.e. no comments highlighting the dependency)

    However, commercial reality means that this 'wrong but working' code *isn't* going to get fixed any time soon, which means those comments may be around for a while. If the customer sees the source, though. . . well, do *you* want the job of trying to explain to an irate customer that sometimes two wrongs really do make a right?

  197. Why comments? by tchernobog · · Score: 1
    They say that there's code that speaks for itself:
    /* Win32Sched.h, inherits from XeniX all
    * the old crappy stuff */

    #include <sys/sched.h>

    typedef HANDLE void*;

    public class Win32Sched
    : private UnixCompatLayer {
    private :
    HANDLE pthread_create();
    HANDLE pthread_sched( Win32Proc* );
    ...
    public :
    static HANDLE CreateProcess( ...13 params, of which ten useless... )
    { fork(); execve(filename.c_str(), argvp, envp );}
    };

    using Win32Sched::CreateProcess;
    --
    42.
  198. I hope there are some! by kabbor · · Score: 0

    Actually, I would be happy to see strange, derogatory and politically questionable comments in MS code. No code is without those bits that the programmer doesn't like, and these should be clearly marked.
    As the existance of a hackish comunity within the Redmond giant is their only chance of redemption, one would hope that they would be couched in a hackishly humerous tone.

    As a side note, however, I can see no place for profanity in any communication.

  199. The real reason.... by HogynCymraeg · · Score: 2, Funny
    /* This piece of code stolen from SCO */
  200. What about inappropriate variable names? by Bilzmoude · · Score: 1

    If they are worried about comments, shouldnt they also be worried about variables and function names? I have seen many cases where variables are named nCrappyPants, DoSomeShit(), and KillMeNowIHaveNoWillToLive().

    Not that I support such naming methods... but If you are worried about comments, you should be worried about these things as well :)

  201. Or how about... by HogynCymraeg · · Score: 3, Funny
    if(version=="95") delay = 100000;
    if(version=="98") delay = 90000;
    if(version=="ME") delay = 90000;
    if(version=="2000") delay = 80000;
    if(version=="XP") delay = 70000;
    if(version=="LONGHORN") delay = 60000; // more like forever *lol*

    sleep(delay);
  202. We already know by Relyx · · Score: 2, Funny

    This article investigating dubious comments appeared shortly after the Win2k source code was leaked.

  203. Oh COMMON PEOPLE! I do that too! by Anonymous Coward · · Score: 0

    It keeps life interesting. Granted, I remove comments (ALL) before ever allowing the public to see it, but commenting "inappropriately" keeps things spicy: ..code... ..code.. // What the F*** was I thinking here? Oh well, the Sh*t works. ...code... ...code... //Kinda reminds me of women, B****, but they work!

  204. Re:In related news.... by Anonymous Coward · · Score: 0

    No, that's why they landed on the moon.

  205. My Personal Favourite by Anonymous Coward · · Score: 0

    We got hold of the source code to an application which was written specifically for us. It read something like:

    /* Left here for [Insert customer name here] and other dinosaurs */

  206. Re:Slashdot And Microsoft by Anonymous Coward · · Score: 0

    off topic slightly, but i found it funny that if you fresh install windows 95, and run it's 'windows update' it launches IE, and says there are errors on the page.

  207. kernel 2.0 by ChoGGi · · Score: 1

    /*
    * Oops. The kernel tried to access some bad page. We'll have to
    * terminate things with extreme prejudice.
    *
    * First we check if it was the bootup rw-test, though..
    */

  208. best comment ever by Arconaut · · Score: 1

    In a Cobol program no less. The program was to calulate sentance length for inmates in a correctional system.

    *** If YOURE DEAD YOUR DONE
    *** CHECK FOR DEAD FIRST

    I guess this fixed a bug where if and inmate died in custody they continued to have their sentance calculated each day.

  209. Excuses excuses by Gaarde · · Score: 0

    The original comments are not mandatory. Grep the comments out, release the code and let the community put in new comments... assume we can decipher it. *smile*

    What are they REALLY afraid of us seeing?

  210. Why MS is not Offering Morse Code by Anonymous Coward · · Score: 0

    My Dyslexia is getting in the way!

  211. Microsoft did release MFC Source Code by Zebra1024 · · Score: 1

    Microsoft did release the source to MFC (Microsoft Foundation Classes). This was a great help when debugging because you could step right into the MFC code while debugging. It was a bit of a let down when you found a bug in MFC but at least you knew it wasn't your code. I do remember seeing quite a bit of funny comments as well. My favorite was

    /* I don't know why this works - but it does so I am not TOUCHING it */
    This scared me a little bit.

  212. My Personal favorite by TapeCutter · · Score: 1


    /* Were not in Kansas anymore Toto! */
    throw(...

    /* But who needs comments? */
    int AFrogsArseIsWatertight = 1;

    while ( AFrogsArseIsWatertight )
    { ...

    /* Portable comments, everyone laughs? */

    --
    And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
  213. High School Science Fair by NitsujTPU · · Score: 1

    Once, in a high school science fair, I entered a programming project. The project was great. I made it all the way to regional. In regional, a project that I didn't think was as good as mine placed first, so I took second (and didn't move on to states as I recall, perhaps third?)

    Anyway, I printed out my source code for the display. I hadn't done this before. On the drive home, I remembered that I had profanities as the names of a few of my variables.

  214. What comments are those? by mwood · · Score: 4, Interesting

    "I wonder what kind of things developers put in comments that would be so bad for the rest of us to see?"

    If you had done more coding, you would know. :-)

    "Stupid pointless [expletive deleted] for Marketing" or "This is dumb but the boss says Do It".

    "I have no idea why this works, so don't touch it!"

    "Kill 'em all, let God sort 'em out!!!" (on an instruction to skip over whitespace).

    And some actual examples I'd be embarrassed to repeat.

    I guess that when one spends all day writing bloodless prose for an unfeeling machine, commentary seems like the only emotional outlet one has. I've written a few comments which were, ah, amazingly vivid considering the humble nature of the operations they describe.

  215. illegally inappropriate code by verus+vorago · · Score: 1

    The company I work for used "disabled" (as in disability) in variable names. Locally, this term is not at all sensitive but is a big red button for the overly PC country where many of our customers are. Turns out that there's actually a law against it so we had to change every reference (and there's thousands) to this as we deliver full source.

    I can only imagine how much worse this would be if programmers wrote code assuming source would never be published.

  216. comments by Anonymous Coward · · Score: 0

    // Made a deal with Symantec, Leave Following Function Intact!

  217. 'cause you know... by Mysticalfruit · · Score: 1

    It's not like the word "fuck" doesn't show up all over the place in the linux kernel...

    Running the command:
    find . -exec grep "fuck" {} \; | wc -l

    yeilds a result of 34.

    Looking for the word "Fuck" yields 7...

    --
    Yes Francis, the world has gone crazy.
  218. Netscape - Mozilla Release Cleanup by billstewart · · Score: 1

    Back when Mozilla was first released, one part of the process was apparently to clean up the vulgar comments in the source code. Somebody distributed a handout at the Mozila Release Party with most of the deleted lines.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  219. Issus to resolve.... by Den+Zuk · · Score: 1

    I, quote "These issues include intellectual property rights and scrubbing the code of inappropriate comments".
    Right, inappropriate code comments, sure...
    Most likelly: // // Bill Gates is GOD!!! and he tould us to, // BASH Penguins with Deamons at your XPence. //
    and intellectual property rights, ok...
    Like what; (C)FOREVER Bill Gates

    Personally, I say frag you Bad Blue and GNU it to BSD, if you get what I mean. The whole dotNET platform is open standards from W3C, and don't get me going on Visual Studio.

    Just look a Billy G's history, Collage room-mates doing free/share/open software. B.G, hates the idea. Builds company to prevent free/share/open software. Becomes a Monopoly. Frags on compation, and clams open standard projects for there own.

    Do I need to say more.

  220. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  221. no naughty words, just office politics by yourfavoritetroll · · Score: 1

    i know its fun to have the old M$ jokes but what about internal politics?

    the world (us) see Microsoft corp as one entity and we are told one story from them e.g. IE is good/stable (but thats another topic) but inside i bet you like anything there is varying views on this:

    /** Why does IE need to go here??? **/
    /** WMP plugin doesnt and shouldnt be allowed to work here **/
    etc

    maybe not the obvious ones like that but i think they are valid examples.
    what would people say about MS as a whole if they saw the inside of it was divided and annoyed over things such as IE?

  222. The Dragon Book (compiler) comment by DickBreath · · Score: 1

    The classic Dragon book on Compiler design, describes one compiler. I can't quote it, but this is the gist of it.

    ...blah blah... Compilers are a huge software engineering project. ....blah blah... The authors have encountered one compiler that had only seven comments, one of which was "This code is cursed."

    --

    I'll see your senator, and I'll raise you two judges.
  223. One of my favorities. by DeVilla · · Score: 1

    "if (instr(buf,sys_errlist[errno])) /* you don't see this */"

    * In eval.c from the perl source code

  224. actual microsoft commentry... by Combuchan · · Score: 1
    From fdisk.c:
    /* P.S. - To whoever winds up maintaining this, I will */
    /* apoligize in advance. I had just learned 'C' when */
    /* writing this, so out of ignorance of the finer points*/
    /* of the langauge I did a lot of things by brute force.*/
    /* Hope this doesn't mess you up too much - MT 5/20/86 */
    --
    "[T]he single essential element on which all discoveries will be dependent is human freedom." -- Barry Goldwater
  225. Wrong by petrus4 · · Score: 1

    Red Hat are a good example here, and the example holds even without the support and other services they offer.

    Red Hat released RPM, anaconda, kudzu, and several other things...All of said things are available seperately (some via CVS) under the GPL. Problem is, they're not generally much use as standalone programs. If you're a confident enough programmer, have lots of time, and otherwise feel adventurous, you could eventually figure out how to integrate them into your own system. (I believe White Box Linux is a Red Hat like-setup that's tweaked somewhat)

    Most of us however, don't have the time. Corporate users especially want to be able to use great features, but also generally want them yesterday. Red Hat's distribution/s mean that said users can buy a CD with all of the company's unique elements tied neatly together, and be up and running in 30-40 minutes. Yes, that's something Microsoft and the other closed-source vendors are able to do...but that is the point. Red Hat understands that the corporate mind is conservative...and so the only way to get corporations to buy open source is if it also includes a closed source like experience...in terms of support contracts and so on.

    In other words, yes, you can make money from open source...you just have to be sufficiently creative about it.

  226. You don't always have a choice, though by Moraelin · · Score: 1

    "You learn software engineering by not writing 100,000 line programs."

    is at most another fine example of hubris. If you never wrote programs that had to go over 100,000 lines of code, mighty fine for you, but that's hardly something you can make into a rule.

    Some programs never have to be that large, true. E.g., most web applications. On the other hand, other stuff _has_ to grow 10 times larger by sheer scope of the problem to be solved.

    E.g. if you think you can write something like MS Office or OOo in 10,000 lines of code, you've got to be kidding.

    E.g., even as intranet programs go, not all the world means basically a simple bulletin board. One Swing application we coded had to cover basically the whole range of database stuff the company employees had to do.

    Including a _ton_ of forms: each frame was a tab pane with at _least_ five different forms. No, not a wizard with 5 simple pages, but actually 5 full forms, a lot of them with tables and filters in them. The data model objects alone accounted for a lot more more than 10,000 lines. Data validation adds more than that too. Add some data entry helpers too: for example finding the Zip code or region by city, or viceversa.

    And including reports with templates they can edit themselves, previews, statistics (think: data mining) over that data, etc. And a completely customized look and feel, with bitmaps splatered across the tabs, and custom shapes for every control. (One of the company directors was an ex-graphics-artist. They like visual stuff.)

    Now also add more internal stuff like custom caching of the database data. Heck one module even took apart basic SQL statements for the tables, and added the filters, the fetching only a certain row range, etc, and optimized the result for Oracle based on some rules and lots of experimenting. Because the users don't want to wait ad nauseam to scroll through 3 million records in a table.

    Sure, you can split it all into modules, you can reuse code or libraries, etc. In fact, at that complexity level you _must_. All mighty fine practices, and all helpful, no doubt. But no ammount of engineering, and no language ever invented, will keep that under 100,000 lines.

    --
    A polar bear is a cartesian bear after a coordinate transform.
    1. Re:You don't always have a choice, though by Hognoxious · · Score: 1
      Sure, you can split it all into modules, you can reuse code or libraries, etc. In fact, at that complexity level you _must_.
      Oh, at last. After all that ranting and handwaving you finally got the point: if you split it into modules, it isn't a program any more. I suspect that few people who work on something as huge and complex as SAP would consider it to be one program, for example; more a related suite of interacting programs.

      I will add that some of the longest programs I've seen[1] have been longer than they needed (sometimes by a factor of 10) precisely because the people who wrote them prefered copy-paste to anything as difficult and advanced as subroutines.

      [1] That I've seen. Being the opinionated knowitall that you are, I'll await your telling me otherwise.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    2. Re:You don't always have a choice, though by Moraelin · · Score: 1

      Believe it or not, that was the whole fundamental difference I was talking about between 100 lines and 100,000 lines. At 100,000 lines you have to have clearly defined structure, clearly separated modules modules and clear interfaces to find your own ass with a map and a compass.

      So you're arguing... what? That you want to call "programs" what I call "modules"? Sure, fine by me. As long as it still walks like a duck, and quacks like a duck... Then what I meant is "a 100,000 line _project_" (composed of more of those things you call "programs") instead "a 100,000 line program."

      That surely noone but you can write a subroutine? Bit of an arrogant assumption, isn't it?

      Well, we can easily aggree that _most_ people hired as "programmers" nowadays don't have that skill. A study here said that only about 1 out of 4 programmers can program at all. Writing a _structured_ program/project/module/whatever-you-wanna-call-it, obviously even fewer.

      But assuming that basically _everyone_ but you can't possibly write a subroutine... well, that's a helluva lot more arrogance even than _I_ have. And god knows I'm a pretty arrogant bastard :P

      --
      A polar bear is a cartesian bear after a coordinate transform.
  227. Re:more info on minigirls by metlin · · Score: 1

    You had to be *Very graphic* in describing that now, didn't you? =)

  228. Re:more info on minigirls by ForestGrump · · Score: 1

    I'm just a simple man who is trying to BS a BS. I don't believe in using euphemisms to soften the blow for those who are politically correct.

    For instance, Dick is Bush's Cheney.

    --
    Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
  229. Call John by dorfsmay · · Score: 1

    A bit off topic, but this happened to me once.

    I worked as tech support for a software company, and a customer called me saying "When I do this, this and this, I get a message saying `you shouldn't get here, if you do, call John at x 1234`".

    So I said thanks, I'll log a bug report. I don't know why, but then I thought.. what the heck, and dialed the extension. The developers where on a different continent, but the phoen system would recognised the extension, and route to the proper building/country. The phone rang, and sure enough John answered. When I told him why I was calling, he went "Oh shit, I meant to fix that !".

  230. ACTUAL CODE FROM Windows XP by Ryosen · · Score: 1

    void main() {

    @@TODO: initSecurity()

    startXP();
    }

    --

    Ryosen
    One man's "Troll, +1" is another man's "Insightful, +1".