Question

Google Code Search has been incredibly valuable to me as a developer - I use it a couple times a week to see how other developers have used (usually poorly documented) APIs. It's also convenient to see the internals of some of those APIs, or to find which API corresponds to the functionality you want (it's a great resource for Android in particular -- give it some of the text you see on screen, and it'll usually find the implementing class).

Now that Google shutting down code search as of January 15, 2012, are there any good replacements?

Was it helpful?

Solution

 

 

I think Open Hub Code Search (previously called ohloh and koders) was a good alternative, but it was closed recently. [Discontinued]

OTHER TIPS

I have reviewed the following sites

The good

The broken or unsuitable

(I'll have to try these again later)

  • Antepedia (GitHub login broken as of 2016-08-23; no code search?)
  • SymbolHound (generic search engine, not just code)
  • Codase (only C, C++, Java; service unavailable as of 2016-08-23)
  • Codefetch (unreachable as of 2016-08-23)

The dead

When I originally did the review, Koders turned out to be the winner for my purposes, but I really liked the user interface and features of SymbolHound Code Search better. The only problem with SymbolHound was the small number of sites it has indexed. The search[code] engine was also promising at that time.

Many of the sites I've reviewed have since been discontinued completely or have disabled their code search functionality. Krugle and search[code] seem to be chugging along, and GrepCode is good if you live in the Java world.

Another one to consider is http://searchcode.com/ It supports regex search as Google Code search does. For example,

http://searchco.de/?q=/[cb]at/
http://searchco.de/?q=/a{2,3}/
http://searchco.de/?q=/^import/
http://searchco.de/?q=/atoi/%20ext:c
http://searchco.de/?q=/dll$/

Are all valid searches.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top