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.

46 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 AKAImBatman · · Score: 4, Informative

      If you do a search on Krugle, you'll find that most of the references are in database files, not code. e.g. Public figures tend to show up in example data files. There were quite a few Clinton jokes back in the day, so Hillary shows up in a number of files. Paris Hilton is a common "adult" keyword, so you'll notice .htaccess files restricting it.

      Here are a few examples:

      http://www.krugle.org/kse/files?query=Hillary%20Clinton
      http://www.krugle.org/kse/files?query=Paris%20Hilton
      http://www.krugle.org/kse/files?query=Barack%20Obama
      http://www.krugle.org/kse/files?query=Tooth%20fairy

      Even if you search for just code files, you sometimes find data inlined into a unit test:

      http://www.krugle.org/kse/files?query=Tooth%20fairy&lang=java
      http://www.krugle.org/kse/files?query=Hillary%20Clinton&lang=java
      http://www.krugle.org/kse/files?query=Paris%20Hilton&lang=java

      So there you go. A whole lot of non-news. :-)

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

    7. 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
    8. Re:Am I missing something here? by Cornflake917 · · Score: 2, Insightful

      Is there really a difference?

    9. 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
    10. Re:Am I missing something here? by Anonymous+Cowpat · · Score: 4, Funny


      I once wanted to name an module in some fortran code 'data', but, of course, that's a protected word, so I called it 'brentSpiner' instead. I don't think my supervisor watched star trek though, so he didn't really get the joke.
      </boring nostalgic story>

      --
      FGD 135
    11. 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.
    12. Re:Am I missing something here? by metlin · · Score: 2, Insightful

      At my previous company, we were part of an R&D lab, so most folks had PhDs or graduate degrees in one form or another.

      Anyway, every once in a while people would leave physics equations in the comments section of checked in code or documents. Once late at night, I was working on an architecture document that needed some major changes. So, I left a comment along the lines of, "Architecture changes complete. $change 1. $change 2. $change 3 etc. Also did $foobar, $foobar, $foobar. Also discovered warp drive. Space too little."

      Anyway, the VP was a theoretical physicist who basically updated the document just to have a funny quip on Minkowski space in there etc. The whole thread continued between folks forever.

      I mean, work was good but these comments made the work interesting, and adds character to the folks working on stuff.

    13. Re:Am I missing something here? by beckerist · · Score: 3, Funny

      Only problem with that is that it saves the text in a green-on-black grainy medium. The producers only adjective to describe the tape is "hawt."

    14. Re:Am I missing something here? by NewbieProgrammerMan · · Score: 2, Funny

      Thanks for posting some links; I skimmed TFA and didn't see anything other than "zomg people reference famous people in their code, and somebody did a search for it, PONIES!!!1" and was going to judge the article/topic a WOMFT.

      You'd think they could have included some sample search links in the article, no? Searching for "fuck" in Linux code turns up more entertaining stuff if I recall correctly. Actually, seaching for "fuck" in Krugle is more entertaining than Satan:

      "Fuck GNOME!"
      "public class FuckNut"
      "for (int i = 0; i n; i++) fuck(); "

      --
      [b.belong('us') for b in bases if b.owner() == 'you']
    15. 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!
    16. Re:Am I missing something here? by alan_dershowitz · · Score: 4, Funny

      Satan wasn't born in the USA and is thus ineligible.

    17. Re:Am I missing something here? by operagost · · Score: 2, Informative

      The only thing that annoys me is calling Revelation "Revelations". It's one vision revealed to John the Evangelist.

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
    18. Re:Am I missing something here? by Valdrax · · Score: 2, Informative

      Actually, "here be dragons" is an old cartographers phrase used to denote unexplored and presumably dangerous areas on maps, in the same spirit as drawing sea serpents off the coast of unexplored water.

      It's kind of a running joke in computer circles.

      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
  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 Anonymous Coward · · Score: 3, Funny

      I know, seriously. I wouldn't have expected that sort of Spanish inquisition.

    3. Re:*snicker* by pAnkRat · · Score: 4, Funny

      Ofcourse they were suprised to find these references in the code,
      because "nobody expects the spanish inqusition!"

      --
      we need an "-1 Plain wrong" moderation option!
    4. 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!
    5. Re:*snicker* by __aagbwg300 · · Score: 2, Funny

      They were looking for an argument, but found insults instead. Stupid git.

  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...
  5. Satan I can understand ... by trolltalk.com · · Score: 3, Funny

    Satan I can understand (BSD Devil, references to the Beast from Redmond, Chipzilla, etc), but Britney Speares? That's EVIL!

  6. Hillary Clinton? Duh. by AKAImBatman · · Score: 3, Insightful

    The fact that Hillary Clinton outstrips McCain and Obama should come as no surprise. She spent 8 years in the public eye, back when no one had even heard of the other two candidates. Expressing surprise that she is 'in the lead' as it were, is just silly.

    1. Re:Hillary Clinton? Duh. by fprintf · · Score: 2, Informative

      And was a POW in Vietnam for several years, refusing to come home before other prisoners. The guy was a hero, all over the newspapers way back then. Not that it means much to modern day programmers (most likely demographic for OSS contributors) who weren't around or paying attention to such news in the early 70s.

      --
      This post brought to you by your friendly neighborhood MBA.
  7. Satan, Britney Spears by towelie-ban · · Score: 3, Funny

    Those are just synonyms, right?

  8. I predict that.. by Thelasko · · Score: 3, Funny

    Tipper Gore and the Parents Software Resource Center are going to petition congress to ban open source software because the source code is explicit. The end result will be a warning label on all open source software available on the internet.

    end sarcasm

    --
    One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
  9. What, no examples? by Frosty+Piss · · Score: 2, Insightful

    The "article" (if you can call it that) shows neither neither charts of actual numbers, nore places the uses in context (with or without examples). Good grief.

    --
    If you want news from today, you have to come back tomorrow.
  10. Hee! by Rob+T+Firefly · · Score: 2, Funny

    Whenever I use a switch statement, I'm compelled to name its variable "jimmysmits." This results in the statement "switch(jimmysmits)", and never fails to make me chuckle.

    ...too obscure?

    1. Re:Hee! by cbart387 · · Score: 2, Funny
      A little offtopic but related ... for an infinite loop in C

      #define EVER ;;
      for(EVER){
      ...
      }
      --
      Lack of planning on your part does not constitute an emergency on mine.
  11. Is the summary wrong or is the article misleading? by LighterShadeOfBlack · · Score: 4, Informative

    The summary suggests that they measured the frequency of mentions of these terms in the source code - the article seems to suggest that they measured the terms searched for using the Krugle search engine. The former would be interesting, the latter would not.

    --
    Spelling mistakes, grammatical errors, and stupid comments are intentional.
  12. in code, or in comments? by Briden · · Score: 2, Interesting

    what i'd like to know is, were these things discovered in comments, or actual code?

    i've used some amusing code like:
    itBroke = true;
    but that still communicates something useful to me, (it indicates an unrecoverable error condition)

    plus then i could write:
    (itBroke) ? fixIt() : dontFixIt(); //(if it ain't broke don't fix it)

    naming a class HillaryClinton is just ridiculous. I wonder if there are variables named intCheatCount in the diebold software?

    currently i am working on a section of code littered with ninja references in the comments though, that is fine, and lightens up my day a little. //really the only time this will be ran is when the actions are dis-approved. //but....... we gota check it just to be sure ninjas are not in the computer trying to //screw things up. .... //why? because it's more l337 and it saves space. Gee. Man. Aw come on! GO NINJA GO! //it cannot get above 26. if Value is above 26, turn into aa, ab, ac, etc. like clockninja.

    sheesh.

    1. Re:in code, or in comments? by Cro+Magnon · · Score: 4, Funny

      Well, I didn't see this first-hand, but I heard that one of my cow-orkers wrote some interesting COBOL code during his divorce. He had this line of code:

      Perform Beat-my-wife Until She-Screams.

      Sadly, I never got to work on any of his code before it was cleaned up.

      --
      Slow down, cowboy! It has been 4 hours since you last posted. You must wait another few hours.
  13. Re:fist-hand by maxume · · Score: 2, Funny

    Wait, corporate executives masturbate together when they are behind closed doors?

    That's even more vile than I thought.

    --
    Nerd rage is the funniest rage.
  14. Amusing anagrams by pandrijeczko · · Score: 4, Funny
    Paris Hilton - Hail, it's porn!

    Britney Spears - Prissy bra teen

    --
    Gentoo Linux - another day, another USE flag.
  15. Well, good! by FatSean · · Score: 4, Interesting

    There is a large stack of evidence showing that warning labels don't work, and may in fact inspire more people to try the thing being warned against.

    More developers is a good thing.

    --
    Blar.
  16. Intuitive connections by StreetStealth · · Score: 3, Insightful

    Your Paris Hilton example is funny, but it is why I actually do sometimes use amusing function names -- I can more easily remember what they do if their silly names actually reference their behavior.

    --
    Your mind is clear / The things that you fear / Will fade with how much you / Believe what you hear
    1. Re:Intuitive connections by The+Cydonian · · Score: 2, Funny

      Back in the day, wrote a method called ReturnOfTheJedi() which had a parameter called theJediWhereTrick. Returned a search result, but with an optional where clause in the SQL query.

      Kept fielding emails about that for six months straight, from the company's offices in Palo Alto and Singapore. Fun times.

  17. Isn't that the same list as.. by tinkerton · · Score: 2, Funny

    the list of commonly used passwords?

  18. Binks variable... by refactored · · Score: 4, Funny
    My Java library path variable is called binks.

    It's the place I store all my jarjars.

    (Ooo, thats going to cost me! Don't you just love the smell of karma burning in the morning...)