Slashdot Mirror


Google Code Search Reveals Dark Corners

saccade.com writes, "The new Google Code Search isn't just for hackers sniffing for passwords. Jason Kottke and friends have discovered the new feature reveals all sorts of dark corners hidden in our code. And you thought nobody ever read your comments!" From the article: "Code search is a great resource for web developers and programmers, but like the making available of all previously unsearched bodies of information, it's given lots of flashlights to people interested in exploring dark corners."

42 of 297 comments (clear)

  1. google seems to inspire... by Beuno · · Score: 5, Interesting

    Google seems to inspire this kind of behaviour for some reason. The have been lots of websites like krugle who search a big db of code, and these things didn't come up until google launched this.

    1. Re:google seems to inspire... by Kangburra · · Score: 5, Funny

      I think their success comes from the simple interface, that despite varied functions retains sufficient uniformity to facilitate usefulness.

      Jeez, I must have swallowed a dictionary!

      --
      Common sense is not so common
  2. Dark corners? by c0d3h4x0r · · Score: 5, Interesting
    --
    Moderator hint: a comment is neither "Flamebait" nor "Troll" if it is true.
    1. Re:Dark corners? by PlusFiveTroll · · Score: 4, Interesting

      Not suprising, about half the responces on the first page were about how bad IE (Internet Explorer) fucks things up!

      " but IE6's implementation fucks up the..."
      " // check for function objects (as usual, IE is fucked up)"

    2. Re:Dark corners? by -Brodalco- · · Score: 2, Funny
      --
      I regret spilling a glass of ginger ale on an achritect!
    3. Re:Dark corners? by TheViffer · · Score: 4, Interesting

      Indeed, Indeed, Indeed

      Just better not SCO know about this ..

      --
      -- Knowing too much can get you killed, but knowing who knows too much can make you rich.
    4. Re:Dark corners? by maxwell+demon · · Score: 4, Funny

      Beware of evil code!

      --
      The Tao of math: The numbers you can count are not the real numbers.
    5. Re:Dark corners? by remmelt · · Score: 2, Funny

      long fuck = 99;

      // I'd say.

    6. Re:Dark corners? by inKubus · · Score: 2, Funny
      --
      Cool! Amazing Toys.
  3. Dark corners? by FlyByPC · · Score: 4, Insightful

    "it's given lots of flashlights to people interested in exploring dark corners."

    They say sunshine is the best disinfectant. More eyeballs can fix problems as well as exploit them.

    --
    Paleotechnologist and connoisseur of pretty shiny things.
  4. Ahhhh... by dangitman · · Score: 2, Funny

    So that's where I left that rant about the inherent inferiority of asian people, and my treatise on how someday the aardvaarks will be the dominant form of life on earth (after they eat the asians).

    --
    ... and then they built the supercollider.
  5. And the Ever Popular... by gambit3 · · Score: 5, Funny
    1. Re:And the Ever Popular... by Werkhaus · · Score: 5, Funny

      Whilst we're on the subject of /. memes...

    2. Re:And the Ever Popular... by pchan- · · Score: 4, Interesting
    3. Re:And the Ever Popular... by Opportunist · · Score: 3, Funny

      Not to forget Black Magic, Deep Magic and the ever popular Dead Chicken waving.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  6. Old-school by FlyByPC · · Score: 4, Interesting

    Zork nostalgia, anyone?

    --
    Paleotechnologist and connoisseur of pretty shiny things.
  7. Bloody Microsoft by RyatNrrd · · Score: 5, Funny
  8. Ahh frustrated programmers by kypper · · Score: 2, Interesting
  9. Fucks. by Anonymous Coward · · Score: 5, Interesting
  10. This should never happen... by EvanED · · Score: 5, Funny

    This is a fairly amusing one.

    I like the memset search on that page too... scary. People need to run Lint or something. (Will Lint pick up that error?)

    1. Re:This should never happen... by TapeCutter · · Score: 2, Funny

      A different response to the impossible.

      And a few religious constatnts to ignite a flame war.

      --
      And did you exchange a walk on part in the war for a lead role in a cage? - Pink Floyd.
  11. I had to do it... by kypper · · Score: 3, Funny
  12. For the record by achurch · · Score: 4, Funny

    I was not drunk when I wrote this; that's just some immature coder making fun of me.

    Granted, being drunk is about the only valid excuse I could make for only initializing half of a doubly-linked list node . . .

    1. Re:For the record by BeeBeard · · Score: 2, Interesting

      Hehe...I read that and I was like "Who in the heck is Andy Church?" and "I've got to treat this guy to a pint!" You rock, Mr. Church.

  13. No fun! by Greyfox · · Score: 2, Interesting
    The vast majority of code along with wonderful comments is hidden behind corporate firewalls where the google search engine will never get at it. Which is probably just as well as I've no doubt that potential future employers would be searching that code if it were available and reading my sardonic comments about the drug habits of prior programmers, speculation as to the number of box tops they had to send in to obtain their degrees and gripes about how co-workers clearly did not read my warning about not changing function interfaces unless they really knew what they were doing, and they clearly did not know what they were doing as evidenced by the fact that they passed record counters as ints in one place and then used those ints as pointers in another place (And no, this was not some form of genius on their part, either.) Also: Run-on sentences.

    Instead potential employers (like me) can google your code and read those comments that you wrote in there. Don't worry though... I won't hold those against you.

    Anyway, "unless you really know what you're doing" and "smoking cracK" are also fun searchesa over there...

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  14. Suicidal code... by chillieburger · · Score: 4, Funny
  15. Favorite by springbox · · Score: 4, Interesting

    This is my favorite from the article: The phrase "should be big enough" should never be seen alongside statically allocated arrays.

  16. I wonder.. by technos · · Score: 4, Funny

    How long before SCO files a third amended counterbrief to IBM's second interrogary motion for relief claiming new evidence of infringement after one of their marketing boys tries 'Linux Santa Cruz Operation' after reading about Google Code in the WSJ?

    --
    .sig: Now legally binding!
  17. You are not expected... by slushdork · · Score: 4, Interesting
    My favorite: You are not expected to understand this

    See here for an explanation (from the horse's mouth, as it were...)

  18. ??? Profit! by slavelayer · · Score: 5, Funny

    1. Read Slashdot
    2. Search Google Code
    3. ???
    4. Profit!

  19. Re:It's not surprising that PHP is the leader. by Andrew+Kismet · · Score: 2, Insightful

    That and PHP is used for a lot of bulletin boards, forums, etc - the majority of those "fuck" counts would be on swearlist fliters hardcoded in.

  20. memset( pointer, size, 0 ) - NO! by noidentity · · Score: 2, Interesting

    I have to say, the search for incorrect use of C's memset really cracked me up. One instance after another of code which doesn't do a thing!

  21. malloc(strlen(\w\)); by tore · · Score: 2, Interesting

    These could be of special interest malloc(strlen(\w+));
    and these new char[strlen(\w+)];

  22. Let the holy wars begin: by XNormal · · Score: 2, Informative

    "python sucks": Results 1 - 10 of about 20. (0.02 seconds)

    "perl sucks": Results 1 - 10 of about 32,900. (0.01 seconds)

    --
    Stop worrying about the risks of nuclear power and start worrying about the risks of not using nuclear power.
  23. It was hard to write... by s7uar7 · · Score: 2, Funny

    ...it should be hard to understand.

  24. Goto isn't necessary evil (at least in C) by rbarreira · · Score: 2, Insightful

    Goto in C isn't necessarily evil... I've used it quite a lot of times to break from nested loops (like a "break", but a double/triple/... break, which doesn't exist in C but exists in Java for example).

    --

    The AACS key is NOT 0xF606EEFD628B1CA427BEA93A9CA9773F
  25. Re:Your signature that very much is a signature by 4D6963 · · Score: 3, Informative

    You incult clod, if the GP said it it was because the GGP's sig is a reference to a painting of an apple that says "Ceci n'est pas une pomme" ("This is not an apple") because it's not an apple but really a painting. The GP was pointing that the GGP's sig was actually a signature although it claimed not to be one, and thus that it didn't fit the spirit of the painting it was refering to, and that it would have been more like the spirit of it if instead of having it to be an actual sig, it was something he pasted at the end of every of his posts to make it look like a sig. It would look like a sig, but it wouldn't be one.

    --
    You just got troll'd!
  26. Re:Wow. Just wow. by Opportunist · · Score: 2, Interesting

    This is not sad, it's scary!

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  27. Re:And you thought nobody ever read your comments! by zero_offset · · Score: 2, Funny

    Horrors! Notify the Pope!

    --

    Slashdot quality declines as the number of hot grits posts decreases. - Provolt's Law, Apr-09-2005

  28. Re:Your signature that very much is a signature by Speare · · Score: 2, Insightful

    I think you mean Magritte's "The Treason of Images" which has a label reading "Ceci n'est pas une pipe" under a picture of a tobacco pipe. Not sure where the apple came from...

    --
    [ .sig file not found ]
  29. This could affect future job applicants by dptalia · · Score: 2, Insightful

    Just think - currently most large employers google an employee as well as checking the major social networking sites, to determine if there's something about the person they don't want. Now an employer could use google code search to measure an applicant's code writing ability/discression.

    --
    Genius is one percent inspiration and 99 percent perspiration, which is why engineers sometimes smell really bad.