|Ned Batchelder : Blog | Code | Text | Site|
Google code search
» Home : Blog : October 2006
Google announced Google Code Search the other day. It's the Google search engine, but pointed at chunks of source code rather than at web pages. Koders and Krugle have both been doing this for a while, but it's interesting to see how Google's take on it differs.
Right off the bat, it looks like Google gives more results, but they are not always as useful. My first test search was for, what else?, my name. Google's returned 192 results, but many were lexicons for natural language parsers, where 'ned' appears at the end of 'aforementioned'. Koders returned 3 results, and Krugle returned 17. One immediately noticeable difference is the Google is finding code wherever it may be, while the other two are only looking in known code repositories. For example, Google found the zip files on my site where I distribute code, while the other two did not.
Krugle has more features, for example, the ability to limit search to comments, or to function definitions. I haven't used it enough to know whether that will be helpful or not, but it is cool to see that they parse the code deeply enough to provide the feature. Krugle also has an Ajaxy interface, which seems like overkill for a search engine. If I get used to it, it may be really nice, but it breaks all my habits in dealing with search engines and their results. On a non-search-related note, they have hip help-wanted ads on their site:
Overall, Koders seemed like the poor relation, with the fewest results and the fewest features.
One more thing: Jason Kottke has a list of interesting stuff (like passwords!) that you can find out with Google code search.