0

Google Labs has launched a new search engine just for you, software developers that is. Google Code Search can help all programmers by quickly filtering billions of lines of source code, all from the default and familiar search interface, to reveal reusable code-snippets. Be it a specific programming term or language, or diving headlong into some compressed code on a hunt for very specific features, Google Code Search would seem to have it all.

Including the ability to focus a search on code based upon specific licensing requirements, which could mean that it is just as much a friend to the lawyers as the programmers when it comes to defending potential patent litigation.

So what exactly can you search for, and how exactly do you do it?

Well how about regexp for a regular expression search such looking for the likes of go{2}gle hello,\ world and ^int printk for starters. Then there is the exact string search for something like ‘compiler happy’ for example. Maybe you want to search only in files or directories matching regexp, in which case you could use file:regexp for file:\.js$ XMLHttpRequest. Whereas package:regexp will search packages with names matching regexp, where a package's name is its URL or CVS server information so something like package:perl Frodo or package:linux-2.6 int\ printk. Then there is lang:regexp to restrict the search only for programs written in languages matching regexp such as lang:lisp xml or lang:"c++" sprintf.*%s, and license:regexp to restrict just for files with licenses matching regexp such as license:bsd int\ printf or -license:gpl quicksort.

What you won’t get is the human touch, that added expert knowledge that you find at DaniWeb, so don’t think for a minute that this is some kind of threat to us here or a direct replacement. Indeed, it can actually help you locate code within DaniWeb as I quickly found out when testing the service. What Google Code Search is, then, is another invaluable tool in your development armory, and one that doesn’t require membership of a subscription based code repository, or rather repositories as many are focused on a specific software class. Use it to find that code segment, but come here to understand what it means and get the help you need in using it...

As Editorial Director and Managing Analyst with IT Security Thing I am putting more than two decades of consulting experience into providing opinionated insight regarding the security threat landscape for IT security professionals. As an Editorial Fellow with Dennis Publishing, I bring more than two decades of writing experience across the technology industry into publications such as Alphr, IT Pro and (in good old fashioned print) PC Pro. I also write for SC Magazine UK and Infosecurity, as well as The Times and Sunday Times newspapers. Along the way I have been honoured with a Technology Journalist of the Year award, and three Information Security Journalist of the Year awards. Most humbling, though, was the Enigma Award for 'lifetime contribution to IT security journalism' bestowed on me in 2011.

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by happygeek
0

As a programmer, I'm willing to share my expertise with others. That's why I participate in sites like Daniweb.

However, I admit that as a freelance consultant, I want my site, and my forum postings to a lesser extent, to act as a showcase for my talent. I want potential clients to see my "code snippets" in a larger context, a context I want to control. "Here's how to solve this small common problem, but look around and see what I could do on a larger scale for your organization".

Really, "code" is not unique in this respect. All web content is embedded in the larger context of the host site, and the owner of that site has particular reasons behind the content, and goals for the site.

Search Engines, then, are a mixed blessing. Without them, who would find our sites? We'd have to rely on word-of-mouth and/or traditional advertising. However, when "search engines" become "advertising engines", by monetizing (my) content, they become my competitors. Google, in particular, allows their users to see "cached" copies of pages. Thus, their users can see content outside of its original context.

I place content on my site for a reason. I want my viewers to see it, experience it within the larger context of my site, so that they might be moved to become paying customers.

When Google takes my content, and makes it available to their users, within a Google context of similar results and AdWords campaigns, then they are doing me a disservice. They've hijacked my content.

So, shouldn’t search engines make money? Of course they should. But I think the web community, in particular site and forum owners, ought to show a healthy concern about the current direction of “search engine” development. Is the new "code search" a blessing for programming sites, delivering highly-qualified traffic right to our collective doorstep? Or is it an efficient tool for skimming your premium content away from you, undermining the purpose of your site? It remains to be seen, but I for one will be thinking long and hard about how to protect what is rightfully mine.

0

A very, very interesting take on things - and one that I will now go away and ponder over a large bourbon :)

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.