Slashdot Mirror


Google Unveils Code Search

derek_farn writes, "Google now has a page that supports source code searching. I hope they extend it to be more programming-language aware (e.g., search for identifiers and functions) like the specialist code search sites (Krugle, Koders, and Codease), who probably now have very worried investors. I don't see any option to search for Cobol. I guess there is not a lot of Cobol source available on the Internet, even although there is supposed to be more Cobol source in existence than any other language (perhaps that statement is not true in the noughties)." From the Cnet.com article: "Google engineers, many of whom participate in open-source projects, already use these code searching capabilities internally. Since it is a Google Labs project, the company is not yet seeking to monetize searches through ads."

8 of 212 comments (clear)

  1. the one thing everyone will search by J3r3miah · · Score: 5, Funny
    --
    God is real unless declared as int
  2. Restricted Use Due to Copyrights by eldavojohn · · Score: 5, Interesting

    I made a simple search for "fade file:.js" in order to find a javascript function that would fade a div or table or anything really (I know scriptaculous offers this already, just curious as to what's out there). I found something but the header of the file read:

    All Code herein is Copyright 2005 Match.com
    Do not copy, reproduce, reuse or sell any code herein
    without the express, written consent of Match.com.
    For information contact webmaster@match.com.
    All Rights Reserved.

    Which is expected. However, that means this tool isn't useful for finding a method or function or class I can use and then using it ... it seems to be restricted to one of two uses. If I'm looking for code that does natural language parsing, I could hope a comment somewhere contains NLP as a description of what's going on. Or, I could look for libraries out there with methods and then search for those methods to see how other people used them to get an idea of how they work. The vast majority of this code seems to be just web development front-end code at least from the few searches I've done. Too bad, that's a very small part of programming.

    --
    My work here is dung.
  3. What's that I hear???? by bluelip · · Score: 5, Funny

    It's the sound of millions of CS majors cheering!!!!

    Dang, this a neat tool.

    --

    Yep, I never spell check.
    More incorrect spellings can be found he
  4. No need to search for Cobol? by krell · · Score: 5, Funny

    "I don't see any option to search for Cobol."

    Well, that's one entire season of "Battlestar Galactica" rendered entirely pointless. Thanks a lot!

    --
    Where were you when the voynix came?
  5. A good start.. by sfraggle · · Score: 5, Insightful

    It's a good start. They really need to start searching Subversion/CVS repositories as well. One of the most obvious things that they seem to have missed is to index all the Sourceforge downloads.

    --
    were you expecting to see a sig here? perhaps you'd rather see the inside of an ambulance!
  6. security hole search by Sub+Zero+992 · · Score: 5, Insightful
    --
    They who would give up an essential liberty for temporary security, deserve neither liberty or security - Ben Franklin
  7. Re:I like this search better - fucking funny as by tkittel · · Score: 5, Interesting

    I agree, it is rather funny. My favourite is so far:

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

    But I also stumbled upon this little gem in /usr/src/linux/net/core/netfilter.c:

    /* netfilter.c: look after the filters for various protocols.
    * Heavily influenced by the old firewall.c by David Bonn and Alan Cox.
    *
    * Thanks to Rob `CmdrTaco' Malda for not influencing this code in any
    * way.
    *

    Anyone knows if there is a story behind this comment? Is it a private joke on taco, or did he piss them off?