Slashdot Mirror


Satan, Britney Spears Top Paris Hilton In OSS References

An anonymous reader writes "Krugle, a software search company, had some time on its hands — it compared frequency of mentions in open source code of presidential candidates, Beelzebub and yes, Britney Spears." I wish they'd link to a nice long list of the other terms this revealed — there are probably a lot of subtler funny references and asides.

16 of 182 comments (clear)

  1. Abbreviation: by Stanistani · · Score: 5, Insightful

    Would 'BS' count as a reference to Ms. Spears? Just asking.

  2. Am I missing something here? by JCSoRocks · · Score: 5, Interesting

    I've never included random crap like that in my code... even in college when I was pulling all nighters. Why on earth would I want to have to reference the ParisHilton class? and how would that be helpful to other developers? This is silliness.

    --
    You are using English. Please learn the difference between loose and lose; they're, there, and their; your and you're.
    1. Re:Am I missing something here? by antifoidulus · · Score: 5, Funny

      That class will show its privates to just about anyone who asks!

    2. Re:Am I missing something here? by gstoddart · · Score: 5, Interesting

      I've never included random crap like that in my code... even in college when I was pulling all nighters. Why on earth would I want to have to reference the ParisHilton class? and how would that be helpful to other developers? This is silliness.

      I was thinking the same thing.

      But, I guess when some people are coding they like to inject a little bit of silliness or vent their anger.

      I once worked on a project where we were explicitly told our comments couldn't have profanity or other non-PC things in them. Apparently, one time during a customer-required code walkthrough, the developer had littered their code with all sorts of insulting things about the customers and their requirements out of frustration with tight timelines and bad specs. It caused quite a stir. Thereafter, they made sure all developers understood that such things would not be tolerated.

      Me, I just couldn't fathom why I'd want to waste time putting vitriol into my code and comments. I need the comments to explain to me what I'm doing and why so that 2 months from now I know what I'd been trying to do.

      However, having maintained a few legacy code-bases in my day, you'd be astonished what people actually do put into comments. I've seen some downright bizarre things, ranging from slagging the product to slagging people. Heck, I saw a haiku once, and it actually explained the function quite well.

      I suspect a lot of OSS coders have a different view about what to put into their code and have lots of time on their hands to do it in.

      Cheers
      --
      Lost at C:>. Found at C.
    3. Re:Am I missing something here? by Cornflake917 · · Score: 5, Funny

      The problem is that the class has to use its inheritance to get what it wants.

    4. Re:Am I missing something here? by vertinox · · Score: 5, Insightful
      Why on earth would I want to have to reference the ParisHilton class? and how would that be helpful to other developers? This is silliness.

      I think the reason why so many open source projects have odd comments or funny comments is that its being made by people who aren't being paid and don't have a manager breathing down their necks so they'll use whatever they'd like at the time. Personally I think comments are the best part of open source code.

      My fav so far:

      /* DRUNK. FIX LATER */


      Source and some more amusing comments.

      --
      "I am the king of the Romans, and am superior to rules of grammar!"
      -Sigismund, Holy Roman Emperor (1368-1437)
    5. Re:Am I missing something here? by ari_j · · Score: 5, Funny

      Often, such things come from frustration or from humor starvation. One time, in a programming competition during college, we were required to do our work in Visual Studio. We implemented a sort routine and knew not to call it sort(), so we called it mysort(), which also turned out to be taken by MS. Out of frustration with the clock counting down, I gave it a name that I knew would not have any conflicts: myfuckingsort().

      I figured I was in the clear, because the competition administrators and judges had told us that they do not read the code, they just run the program and check for correct output. However, they did quietly talk to us after we received our prize for winning the competition. Apparently, while they don't read the code as part of the competition, they do skim it out of curiosity sometimes.

      For the remainder of my C.S. career, I was notorious for having invented the by-then-shortened "fucksort" routine. It still comes up in conversation from time to time.

    6. Re:Am I missing something here? by somersault · · Score: 5, Funny

      $this = "madness";

      if ($this eq "madness")
      {
                $this = "sparta!!!! >(";
      }

      --
      which is totally what she said
    7. Re:Am I missing something here? by techpawn · · Score: 5, Interesting

      In one of my early programming classes my professor had a minimum length for hard copy code to be turned in. Let's just say my code worked, but my hard copy was too short. Rather than muck my code with unneeded calls and the like I did a lengthy comment about how I believed CS finding the most direct solution to problems even at the risk of upsetting the client.

      The code got an A with the added comment from the Prof that the minimum hard copy length requirement for first years would be going away after this.

      --
      Ask not what you can do for your country. Ask what your country did to you
    8. Re:Am I missing something here? by spikedvodka · · Score: 5, Funny

      honestly though... I'm a big fan of "//Magic happens here"

      --
      I will not give in to the terrorists. I will not become fearful.
    9. Re:Am I missing something here? by RiotingPacifist · · Score: 5, Informative

      Might give that a shot, heres what had to be removed from mozilla before they opened the source
      http://www.jwz.org/doc/censorzilla.html

      --
      IranAir Flight 655 never forget!
  3. *snicker* by krinderlin · · Score: 5, Funny

    A friend of mine got a call a few days ago from an old job of his doing some Access application development (*pukes*). Apparently they didn't appreciate the fact that the code was littered with references to the Spanish Inquisition, Spam, Grail Shaped Beacons, and so on.

    1. Re:*snicker* by njfuzzy · · Score: 5, Insightful

      What did they expect to accomplish by calling to scold a former employee?

      --
      My Photography - http://ian-x.com
      The Deathlings (comic) - http://thedeathlings.com
    2. Re:*snicker* by SanityInAnarchy · · Score: 5, Funny

      Buy him a bumper sticker: "I wish I was coding Python."

      --
      Don't thank God, thank a doctor!
  4. Meaningful Comments by Anonymous Coward · · Score: 5, Funny

    My Favorite comment came from the DEC PDP-11 Fortran compiler. After searching extensively for a bug in our code, we managed to get the compiler source, and at the location where our code imploded, the compiler author had inserted the comment,

    "How many angels can dance on the head of a pin?"

    1. Re:Meaningful Comments by ddrichardson · · Score: 5, Funny

      I rather like this one that I saw at the weekend. Sounds like an unpleasant way to go.

      --
      A thistle is a fat salad for an ass's mouth...