Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

New Google Search: Code

Google just launched a new search service which allows you to search open source code. Search prefixes like license: and lang: can narrow results and the search supports POSIX regular expression syntax. The results are displayed as a link to the source code, a clip of the code and a link to a zip file which contains the entire code package.

While a nice new feature and one that will no doubt be handy for web developers, it seems to me that most people looking for source code might really be looking for something more like a tutorial. Of course as they say, good code is self documenting, so perhaps this will inspire programmers to write cleaner code and clearer documentation. Probably not, but we can always dream can't we?

It's worth noting that Google acknowledges in their FAQ that, while they try to "determine the software license for code packages by looking for a license in the comments or in a separate license file," the results are, as they put it, "not perfect." In other words, just because Code Search thinks a file is licensed under the GPL doesn't mean that it is and presumably it's up to you to verify the license before using the code.

If you'd like to make sure that your code is not indexed by Google, there are instructions for doing so in the Code Search FAQ.

Oh and speaking of not perfect, Google appears to have turned off their spellchecker this morning which leaves us to search for a "regular expresion [sic]." Or perhaps this is their subtle way of letting us know that Google is still powered by humans. 

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year