Just like the previous post on Google Book Search and tomorrow’s post on Google Patent Search, Google Code Search only pertains to a small group of publishers and searchers. However, because Google Code Search results can be displayed within Google’s Universal Search, I am taking a brief moment to cover code submission and optimization tactics. A good example is a google search for “python”.

Clicking through on the “Code” link results in the Code Search results page:
Submitting your source code is easy. Head over to the submit page and let them know if your code is in an archive, CVS or Subversive directory. Once you provide the URL or file path, Google will download the code and determine whether or not to display it in the search results.
One of the most important things to include in your source code is the code or a separate license file. Google Code Search makes no claims about accurately guessing the type of license an author wants. In an effort to protect themselves, they have a fairly typical (for Google) removal request form. Again, it’s a “shoot first and ask questions later” approach as they can’t even guarantee speedy removal of contested code.
Perhaps the only optimization tactic would be including descriptive comments in your code. Of course, this is a matter of personal preference but human-readable comments make your code much easier to understand and search.
Other than the slim Help section, Google Code Search Google Group is sparsely populated and there are no active discussions taking place, just random feature requests. I doubt anybody’s listening.
You’re certainly not going to get famous by submitting your code to Code Search, but you just might help somebody (hacks like me) who uses the tool looking for help with implementing new projects.
Updated list of categories covered:
7/31 – Google Maps
8/1 – Google News
8/2 – Youtube Video
8/3 – Google Images
8/6 – Google Blog Search
8/8 – Google Base
8/9 – Google Books
8/10 – Google Groups
8/13 – Google Code Search
Any others I’m missing? Leave a comment. Thanks!
You May Also Like:


4 Comments on » Dominate Google’s Universal Search: Google Code Search