GUI MODS: GUI Discussion Forum  
     

Left Nav Register FAQ Members List Calendar Mark Forums Read Right Nav

Left Container Right Container
 
» GUI MODS: GUI Discussion Forum » News » Tech news » Googling for Code

Tech news All the sensational news and rumors in the tech world should be posted here

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2006, 06:06 PM
Homeboy's Avatar
Admin
 
Join Date: Oct 2006
Location: My Desktop
Posts: 265
Rep Power: 10
Homeboy has disabled reputation
Exclamation Googling for Code

Last week, Google launched a tool for sifting through the billions of lines of software code available on the Web. The free resource could help programmers design new software projects, test code, and fix bugs, says Tom Stocky, product manager at Google. And, ultimately, it might help them build better products.

An efficient code-searching tool is invaluable for programmers, from computer science students to professionals, Stocky says. At the foundation of all software are lines of instructions that direct the program to perform certain tasks, such as searching through a list or rearranging values. Although tasks such as these are commonly used, the code for them varies by software language and can differ slightly depending on the application. Being able to search for code allows people to find the worked-out solutions to these common problems as well as solutions to more obscure coding challenges.

"The first thing someone does when writing a new piece of software is to search for existing things that are related," says Stocky. In the past, some programmers have used Google's standard search bar to find code, but it's inefficient because a lot of code resides in databases inaccessible to it.

Programmers can also turn to repositories of online code, Stocky says, but the previous methods for downloading software code and searching for specific functions is time consuming. Instead, Google Code Search crawls and indexes open-source archives that contain code in file formats, such as .zip and .tar, that general Web crawlers can't investigate. In addition, the tool indexes the code found in two common websites that host source code, CVS and Subversion. One of the goals of Google Code Search, Stocky says, is to make the searching process easier: "We're trying to give people one place where they can do that quickly."

The Google Code Search tool lets people search for code using not only keywords, as in a typical Google search, but also "regular expressions" in which patterns within words can be searched. For instance, a search for "do?" would return "dot" or "dog," Stocky says. Using this, "programmers can create really advanced queries that can search for obscure function definitions," he says. In addition, searches can be narrowed down to one of 33 different programming languages and 18 different licenses.

Of course there's the issue of ownership and licensing. "For each piece of code, we do our best to detect licenses," Stocky says; but in some cases, a license can't be identified. "For anyone who didn't mean for their code to be posted publicly, we have methods for them to remove it." It is similar to the way Google handles Web pages or images whose owners would like them to be unsearchable.

Stocky adds that the tool could actually help to prevent code plagiarism. By searching for code you've written, he says, you could see who has implemented it and how.

http://www.technologyreview.com/read...98&ch=infotech
Reply With Quote
Sponsored Links

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:09 PM.

Powered by vBulletin
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
Licensed to guimods.com