The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Google code search

Last post 10-18-2006 1:19 AM by Some Idiot. 42 replies.
Page 1 of 1 (43 items)
Sort Posts: Previous Next
  • 10-05-2006 3:03 PM

    • rev
    • Not Ranked
    • Joined on 08-10-2006
    • Posts 20

    Google code search

    This site is a goldmine. I can't stop reading all of the stupid comments.
    Fucking Shit
    In Case Some Idiot
    The Guy Who Wrote This
  • 10-05-2006 3:05 PM In reply to

    Re: Google code search

    Well... there goes my day!

    And of course, who could forget: WTF?! 

  • 10-05-2006 3:21 PM In reply to

    Re: Google code search

    Signatures are stupid.
  • 10-05-2006 3:32 PM In reply to

    • rev
    • Not Ranked
    • Joined on 08-10-2006
    • Posts 20

    Re: Google code search

  • 10-05-2006 3:32 PM In reply to

    Re: Google code search

  • 10-05-2006 3:33 PM In reply to

    Re: Google code search

    Man, it's like a bottomless tdwtf
  • 10-05-2006 3:35 PM In reply to

    Re: Google code search

  • 10-05-2006 3:45 PM In reply to

    • rev
    • Not Ranked
    • Joined on 08-10-2006
    • Posts 20

    Re: Google code search

  • 10-05-2006 3:57 PM In reply to

    • Hans
    • Not Ranked
    • Joined on 04-11-2006
    • Posts 20

    Re: Google code search

  • 10-05-2006 4:04 PM In reply to

    Re: Google code search

    You can escape the space (\ ) to get the two terms together:

    (evil|ugly|stupid)\ (hack|klud?ge) 

  • 10-05-2006 4:08 PM In reply to

    Re: Google code search

  • 10-05-2006 4:10 PM In reply to

    Re: Google code search

    "i hate"

    goldmine^2
     

  • 10-05-2006 4:11 PM In reply to

    • Martin
    • Not Ranked
    • Joined on 01-25-2006
    • Midlands, UK
    • Posts 46

    Re: Google code search

    A personal favourite (and I am glad none of my comments have shown up so far) should be shot
  • 10-05-2006 4:15 PM In reply to

    • Hans
    • Not Ranked
    • Joined on 04-11-2006
    • Posts 20

    Re: Google code search

  • 10-05-2006 4:16 PM In reply to

    Re: Google code search

  • 10-05-2006 4:21 PM In reply to

    • Hans
    • Not Ranked
    • Joined on 04-11-2006
    • Posts 20

    Re: Google code search

  • 10-05-2006 4:38 PM In reply to

    Re: Google code search

    Okay, maybe this is a Google Code Search WTF.

    I ran a search on "yet to do:

    The result was first page, Results 1 - 10 of about 74,100

    Next page, Results 11 - 14 of about 74,100

    From here on in, clicking 'Next' or any of the page numbers does nothing. I am guessed it might have something to do with the colon, so I removed it. The search turned up slightly different results, but those results exhibit the same behavior on the 3rd page.

    Any ideas? 

  • 10-05-2006 4:40 PM In reply to

    Re: Google code search

    http://www.google.com/codesearch?hl=en&lr=&q=paula+bean&btnG=Search

     

  • 10-05-2006 5:52 PM In reply to

    Re: Google code search

  • 10-05-2006 6:32 PM In reply to

    Re: Google code search

    http://www.google.com/codesearch?q=%22+on+fire%22+-firewall+-firefox&btnG=Search&hl=en&lr=
  • 10-05-2006 6:39 PM In reply to

    Re: Google code search

    All spelling and grammar mistakes in my post are intended and solely serve the purpose of amusing the reader! They are the intellectual property of the author.
  • 10-05-2006 9:19 PM In reply to

    Re: Google code search

    rev:
    This site is a goldmine. I can't stop reading all of the stupid comments.
    Fucking Shit
    In Case Some Idiot
    The Guy Who Wrote This

    Nice find, this is great!   

    I did not become a TDWTF forum moderator to make friends. And by the way, I haven't.
  • 10-05-2006 9:37 PM In reply to

    Re: Google code search

    Now THIS is why I never comment my code - you just never know where those comments are going to end up!
    s/\([.*+(){}^$<>[\\ |]\|\]\)/\\\1/g
  • 10-05-2006 9:49 PM In reply to

    Re: Google code search

    rev:

    Yes, I may well do any of those things. Nice to know people take my special needs into account when developing software.

    Nice find.

    I will use a <sarcasm/> tag if you use a <stupidity/> tag.
  • 10-06-2006 7:05 AM In reply to

    • madjo
    • Not Ranked
    • Joined on 10-06-2006
    • The Netherlands
    • Posts 25

    Re: Google code search

    I'm sure many of you have already searched this:

    Brillant

  • 10-06-2006 7:11 AM In reply to

    • madjo
    • Not Ranked
    • Joined on 10-06-2006
    • The Netherlands
    • Posts 25

    Re: Google code search

    BTW, I see a possible spamtrap in Google's new code search... Many dev's will put their email address in their comments, and you could possible program a spambot to parse the search results in search of those email addresses...

  • 10-06-2006 8:39 AM In reply to

    Re: Google code search

    You can use this site to search for buggy code too.  I didn't think of this, I saw it elsewhere, but it's pretty interesting:

     

    1<<16-1 

     Note:  "1 << 16 - 1" is the same as "1 << 15", not "(1 << 16) - 1"

  • 10-06-2006 8:44 AM In reply to

    Re: Google code search

    Pebkac

    (Problem exists between chair and keyboard) 

  • 10-06-2006 9:22 AM In reply to

    Re: Google code search

    madjo:

    BTW, I see a possible spamtrap in Google's new code search... Many dev's will put their email address in their comments, and you could possible program a spambot to parse the search results in search of those email addresses...

    That's a good observation. On Google Groups, they automatically munge email addresses in the 'From' sections of the post (and maybe the bodies, too - can't remember). They should be able to apply the same technology here easily enough.  

  • 10-06-2006 9:26 AM In reply to

    • jkandrach
    • Not Ranked
    • Joined on 10-03-2006
    • Pittsfield, MA
    • Posts 13

    Re: Google code search

    Best line ever:

     

    "I am drunk and coding
                like I am the greatest coder of all time."

     

    beautiful

  • 10-06-2006 10:02 AM In reply to

    • WWWWolf
    • Top 500 Contributor
    • Joined on 12-05-2005
    • Oulu, Finland
    • Posts 244

    Re: Google code search

    R.Flowers:

    Well... there goes my day!

    And of course, who could forget: WTF?! 

    Hey, it works! On the first page, it has the definitive "WTF" comment:

     

      i  = 0x5f3759df - ( i >> 1 );  // what the fuck?
    From Quake III Arena source code.

    (The answer, in this case: "Don't ask. Carmack is a math genius, you aren't.")

     

    mysql> help contents;

    Nothing found
    Please try to run 'help contents' for a list of all accessible topics

    Desktop Search Rain - Gothic Computing's EASY button

    (Go wild^H^H^H^H figure)
  • 10-06-2006 1:14 PM In reply to

    • kimos
    • Not Ranked
    • Joined on 10-02-2006
    • Posts 19

    Re: Google code search

  • 10-07-2006 4:07 AM In reply to

    Re: Google code search

    Hmm...

    PORN!

     It doesn't find very much though :(

    Also, how the hell do they manage to apply bad regexps (like [a]*[b]*[c]*) to so much data and still produce the correct results in a (relatively) low amount of time (0.4 seconds)?
     

  • 10-07-2006 2:24 PM In reply to

    • cvi
    • Not Ranked
    • Joined on 03-10-2006
    • Posts 45

    Re: Google code search

    Seems like variables named 'IE_IS_A_FUCKING_SHIT' are way too common. :-)
  • 10-08-2006 5:29 PM In reply to

    Re: Google code search

    Also, how the hell do they manage to apply bad regexps (like [a]*[b]*[c]*) to so much data and still produce the correct results in a (relatively) low amount of time (0.4 seconds)?

     

    Because google search isn't built on regexs. 

  • 10-08-2006 7:01 PM In reply to

    Re: Google code search

    try the following

    fortran

    "no idea"

    hope -warranty

      "you are the weakest link"

    "oh my god" killed 

    reminds me of a comment I once saw in someone's code

     "No sleep here, we're raping the processor"

    TRWTF is Community Server
  • 10-09-2006 12:19 PM In reply to

    Re: Google code search

  • 10-09-2006 2:45 PM In reply to

    • RayS
    • Top 75 Contributor
    • Joined on 01-22-2005
    • Posts 720

    Re: Google code search

    There's a couple of "until 0=1" bits in there...

    How much does it tell us that there are 200 hits for "How does this work?"  and 117000 for "I don't know how"?

    I found this funny, too.

     

    If you hack on this and slow it down, I, my children and my children's children will curse you.
    ........
    (---code---)
    ........
    * in the right way, and the less we change the less likely
    * we are to introduce new bugs. And I'm scared of the curse in the
    * comments at the top of this file

     

    EULA: By reading this post and associated disclaimer, you are consenting to agree with the opinions disclosed within. If you disagree with this license agreement, you may not return it for a refund.
  • 10-09-2006 11:50 PM In reply to

    • smb
    • Not Ranked
    • Joined on 10-10-2006
    • Posts 1

    Re: Google code search

    SpComb:

    Hmm...

    PORN!

     It doesn't find very much though :(

    No, but XXX does, it's a common alternate FIXME comment...

  • 10-10-2006 5:48 AM In reply to

    • blah
    • Not Ranked
    • Joined on 09-28-2006
    • Posts 2

    Re: Google code search

    I'm not quite keen on regexps, but I get good results with

    [a-z_\-\.0-9]+@[a-z_\-\.0-9]+\.[a-z]+ 

    ... And that was a reply to this, but i'm too stupid to click on "quote" :

    madjo:

    BTW, I see a possible spamtrap in Google's new code search... Many dev's will put their email address in their comments, and you could possible program a spambot to parse the search results in search of those email addresses...

    That's a good observation. On Google Groups, they automatically munge email addresses in the 'From' sections of the post (and maybe the bodies, too - can't remember). They should be able to apply the same technology here easily enough. 

     

     

     

  • 10-11-2006 12:10 PM In reply to

    • igitur
    • Not Ranked
    • Joined on 08-03-2006
    • Cape Town, South Africa
    • Posts 1

    Re: Google code search

    You have no idea how many times this happens to me...

    pubic

  • 10-12-2006 5:52 AM In reply to

    • RayS
    • Top 75 Contributor
    • Joined on 01-22-2005
    • Posts 720

    Re: Google code search

    blah:

    I'm not quite keen on regexps, but I get good results with

    [a-z_\-\.0-9]+@[a-z_\-\.0-9]+\.[a-z]+ 

    ... And that was a reply to this, but i'm too stupid to click on "quote" :

    madjo:

    BTW, I see a possible spamtrap in Google's new code search... Many dev's will put their email address in their comments, and you could possible program a spambot to parse the search results in search of those email addresses...

    That's a good observation. On Google Groups, they automatically munge email addresses in the 'From' sections of the post (and maybe the bodies, too - can't remember). They should be able to apply the same technology here easily enough. 

    Sounds dangerous... and not everything that looks like an email address is an email address. Even then, the correct address being present could be critical to the working of the code.

    Either way, Google is only making it easier to search information that's already out there on web sites. Should we also suggest that they do something about the easy access to email addresses by searching google.com for "@hotmail.com"? 

    EULA: By reading this post and associated disclaimer, you are consenting to agree with the opinions disclosed within. If you disagree with this license agreement, you may not return it for a refund.
  • 10-18-2006 1:19 AM In reply to

    Re: Google code search

    igitur:

    You have no idea how many times this happens to me...

    pubic

    Yes, embarrased as I am to admit it, I often find myself declaring my pubic void.

    I will use a <sarcasm/> tag if you use a <stupidity/> tag.
Page 1 of 1 (43 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems