DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report

The Story of Google Code Search and How it Worked

Eric Genesky user avatar by
Eric Genesky
·
Jan. 23, 12 · Interview
Like (0)
Save
Tweet
Share
7.94K Views

Join the DZone community and get the full member experience.

Join For Free

Although it went out of commission only a few days ago, Google Code Search was once the pet project of a team of Google interns in the Summer of 2006.  In an Official Google Blog entry from October 14, 2011, aptly titled "A fall sweep," Google Product VP Bradley Horowitz announced that Code search would be shut down on January 15, 2012, along with Google Buzz, Jaiku, iGoogle's social features, and the University Research Program for Google Search.  Russ Cox, who was on the team of interns that worked on Google Code Search, recently wrote the story of Code Search's development.

According to Cox, Code Search grew out of an existing internal tool within Google designed to run a command-line text-search across all of Google's source tree.  This search, known as gsearch, would gather pieces of the source tree from Google's servers and then merge and print the results.  Cox writes that, with this tool in mind . . .

 

Jeff Dean, my intern host and one of the authors of gsearch, suggested that it would be cool to build a web interface that, in effect, let you run gsearch over the world's public source code. I thought that sounded fun, so that's what I did that summer. --Russ Cox

 
Early snags in the development process were solved using some of Cox's previous education as well as a rediscovery of a useful algorithm that had been previously used by Rob Pike, the writer of one regular expression library that Cox was using. 

The development of Code Search was a source of pride for the team, although it's limited audience may be what led to it's eventual demise: "Code Search was Google's first and only search engine to accept regular expression queries, which was geekily great but a very small niche," writes Cox.

Still, Code search was a useful and appreciated tool while it lasted, even outside of the intended community, as Cox claims that

[Perl consultant] Tom Christiansen recently told me that even people in the Perl community use it (perl -Mre::engine::RE2), to run regexp search engines (the real kind) on the web without opening themselves up to trivial denial of service attacks. --Russ Cox


Comments connected to the Google Blog post suggest that Google Code search will be missed, with one commenter claiming that the "google code search team suggests a few alternatives - but I don't like them so I  won't mention them.  There simply isn't anything out there that's comparable to this service.  Too bad."

You can read Russ Cox's detailed description of how Google Code search worked here.

Feel free to post your experiences with Google Code Search below.

Google (verb) code style

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Using Swagger for Creating a PingFederate Admin API Java Wrapper
  • A First Look at Neon
  • A Beginner’s Guide To Styling CSS Forms
  • What Is API-First?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: