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

13 of 212 comments (clear)

  1. the one thing everyone will search by J3r3miah · · Score: 5, Funny
    --
    God is real unless declared as int
    1. Re:the one thing everyone will search by kripkenstein · · Score: 3, Funny

      A search for "bill gates" turned up these tidbits:

      if (gates == NULL) /* eat this, Billy-boy */
      gates = (HINF **) Hmalloc (sizeof (HINF *) * 10);


      int_fast16_t reserved1; /* Ask Bill Gates what this is all about. */

    2. Re:the one thing everyone will search by mr_tommy · · Score: 2, Funny

      Hilarious- the pains that writers have to code for browsers!

      - Calendar.continuation_for_the_fucking_khtml_browse r = function() {
      // check for function objects (as usual, IE is fucked up)

    3. Re:the one thing everyone will search by groovelator · · Score: 2, Funny
  2. 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
  3. Re:I like this search better - fucking funny as by kafka47 · · Score: 3, Funny

    LOL your search has now uncovered the hidden angst of a million programmers :

    ($backend && $backend->isa("Acme::Scurvy::Whoreson::BilgeRat::B ackend::$params{language}")) ||
    die("For fuck's sake, the fucking backend's fucked");

    /K

  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. The old saying is true . . . by scottennis · · Score: 4, Funny

    Good programmers write good code. Great programmers find it on Google!

  6. Your Search by mazarin5 · · Score: 3, Funny

    Your search 10 print "boobs" 20 goto 10 returned no results. Try searching again using fewer terms.

    --
    Fnord.
  7. Oh crap! by sparkyng · · Score: 4, Funny

    I hope my CS professor doesn't find this until the semester is over.

  8. I found orgasm code! by Jugalator · · Score: 3, Funny

    This is just too funny :-)

    void Mammal::mate( Mammal& partner ) { /* potential mating partner */
            M_partner = partner.getId(); /*printf( "." ); fflush( stdout );/**/ /* mating must be mutual */
            if( partner.getPartnerId() != M_id ) { /*M_wait += 15;/**/
                    return;
            } /*printf( "+" ); fflush( stdout );/**/ /* this is male object */
            if( M_gender == 0 ) { /* perform breeding in female object */
                    partner.mate( *this );
                    return;
            } /* this is female object */
            assert( M_gender == 1 ); /* current position */
            int x = M_x, y = M_y; /* behind position */
            switch( M_direction ) {
                    case EAST: x--; break;
                    case NORTH: y++; break;
                    case WEST: x++; break;
                    case SOUTH: y--; break;
            } /* back to field wall */
            if( !M_field->in( x, y ) ) return; /* newborn's position */
            int cx = M_x, cy = M_y; /* move mother backward */
            M_x = x;
            M_y = y; /* conception */
            orgasm();
            partner.orgasm();
            Mammal* child;
            child = new Mammal( *M_field, cx, cy, NEWBORNENERGY, *this, partner ); /*printf( "CHILD%d ", child );/**/ /* birth */
            M_energy -= CHILDBIRTHENERGY;
            M_population->add( *child );

            printf( "MATE(%d,%d)->%d(%d) ", M_id, partner.getId(), child->getId(), child->getGeneration() ); /* partner.printGenotype();
            partner.printState();
            printGenotype();
            printState();
            child->printGenotype();
            child->printState();/**/
    }

    void Mammal::orgasm() {
            M_energy -= MATINGENERGY;
            M_result = 1;
    }

    --
    Beware: In C++, your friends can see your privates!
  9. Moo by Chacham · · Score: 3, Funny

    I just searched for "20 GOTO 10". Oh my. I don't know if that is funny or sad.