Monday, May 5, 2008

Google Code Search

The other day, Jeff had pointed out to me that Google has a code search. So, I had to take a look and blog about it.

If you go to http://www.google.ca/codesearch?hl=en and enter your search parameters and get results that are actually code examples.

I haven't had a lot of time to play with it yet, but from what I've seen most of these code examples are provided by users who store code in one of Google's repositories (I believe it's called Google source). When the results are returned the file name that the code was found in is also returned. This is helpful because it will narrow down the possible language of the code example. For instance, if it is a .c file then its C programming language, or .cpp would be C++.

Next time I get stuck on code syntax or usability I'm going to try out this new search tool and see how it helps.

No comments: