Comparison of Krugle and Google Code Search

This year is a good year for programmers around the world since there are several specific search engine dedicated to source code, especially open sources. I don't have much chance to try this kind of technology so I will talk about only the top two services: Krugle and Google Code Search.

Krugle

Krugle is not just a plain search engine but it is also a collaborative web application for collecting custom annotation by members. It can be classified as a social network for source codes. In Krugle, you can specify 4 parameters as follows.

  1. Query
  2. Programming language
  3. Area such as comment, source code, function definition, function call and class definition
  4. Project

Krugle UI relies on AJAX and JavaScript. You can't use Krugle without JavaScript enabled.

Google Code Search

Google Code Search has just been released. Just like other Google's searches, it is just a plain search engine that you can't do anything but search. There is not also AJAX here. Google Code Search is very simple and fast. All advanced queries are passed through operators just like others. There are only 4 operators by now.

  1. Query
  2. Programming language
  3. Package URL
  4. Filename

The most interesting feature is regular expression. You may enter the query string in POSIX extended regular expression. How is it useful? Take a look below query I found in a blog.

mysql://\w+:\w+@[^l][^o].*\..*\..*/\w+ -sample

And then check out the result. Amazing! You discovered the embeded login of MySQL in many open source projects.

Experiments

I tried to test both search engine by the same query string to see the quality of given results.

  1. As far as I know for a long time, CVS's protocol has word "I LOVE YOU" as well as "I HATE YOU" in authentication module. So I started by these words.

    "i love you" "i hate you"
    

    As a result, Krugle gives better results in term of meaningful lines. I guess that the reason is Krugle gave highe priority to declaration area while Google Code Search doesn't care where the words are.

  2. According to above MySQL db login, I tried to find something similar in Krugle. Unfortunately, Krugle doesn't support regular expression. So I just specified a short part.

    "mysql://"
    

    In this test, Krugle shows me the best of its results including JDBC connection string and the URL without password or localhost. Google Code Search wins this experiment with no doubt. Thanks regexp!

  3. Then I tried to look for my code, BTQueue.

    btqueue
    

    Krugle didn't find my project while Google Code Search found many instances including the old, the newer and the latest code in Subversion.

  4. The next one is also my project, SCMSWeb

    scmsweb
    

    Krugle could not find this project again. Google Code Search found many packages according to this project including ones in FTP.

  5. Now it's time for Drupal. I just want to find example how to call module_exist() and its new name module_exists() for Drupal 5.0.

    Google Code Search:

    module_exist pacakge:drupal
    

    Krugle:

    module_exist
    

    And specify project as drupal. As a result, Krugle returned about 434 matching files while the top ten entries were from Drupal Contributions CVS. In Google Code Search, the results were taken from FTP and there were only about 100 files.

    Now it's time for module_exists() which is only available in latest code only. Just to change module_exist to module_exists. In this experiment, Krugle found nothing while Google Code Search found a file. I'm sure there must be more. Anyway, Google Code Search has a bit newer data in repository than Krugle has.

In conclusion, each search engine has its own unique features. If you like regular expression, you might find Google Code Search is very useful. Anyway, it only applied to not-to-complex string. Krugle allows you to specify area of the string you are looking for. It is very useful if you know what you are looking for.

Tags: ,

Video Converter for Mac is

Video Converter for Mac is the most powerful Video Converter for Mac OS software which allows you to convert videos between popular video formats and audio formats. The easy-to-use Video Converter for Mac lets you to enjoy your videos on iPod, PSP, Mobile Phone, Zune, iPhone, Apple TV and MP4/MP3 player. This Video Converter for Mac allows you to set the destination, the name of output files.iPod Converter for Mac is the best Video to iPod Converter for Mac OS X software for you. With the iPod Converter for Mac you can easily convert popular video formats including FLV, MPEG1, MPEG2, DivX, Xvid, WMV, 3GP, 3G2, MOV, AVI, MPEG TS/TP (for HD Video), etc to iPod compatible MPEG-4 videos. And also it is not only and iPod Converter for Mac, but it can convert all popular videos to iPhone, Apple TV, PSP, PS3, Youtube (web), Creative Zen, iRiver PMP, Archos, MP4, various mobile phones and many other digital video and audio players.MP4 Converter for Mac is an excellent Mac MP4 converter which can not only convert MP4 to MP3, WMA, AAC, WAV, etc but also convert avi, flv, wmv, mpeg, divx etc to MP4 on Mac os x to enjoy your favourite video with MP4 Converter for Mac os. Compared with other mp4 converter Mac software, the MP4 Converter for Mac provides powerful edit functions, such as setting the output settings, cropping and trimming files, merging several files into one, etc. With this MP4 Converter for Mac, you can easily convert mp4 videos to varoius format for Mac.

How to download YouTube

How to download YouTube videos for Mac and convert the .FLV files on Mac OS? Here are the easy-to-use and top-user-rating YouTube Video Grabber Mac and Mac FLV converter tools. It is safe to install and no spyware or adware guarenteed.
With the YouTube Video Grabber Mac application, you can easily download youtube for mac and convert YouTube videos on your Mac OS. It can automatically detect the YouTube video files from the YouTube web pages you have opened and download multiple files once a time. YouTube Video Grabber Mac is a totally free download youtube videos for mac, because if you don’t want to convert downloaded videos to your mobile players, you don’t have to pay for it.
FLV Converter Mac is a powerful FLV Converter for Mac software which can convert FLV video files to all popular video formats and convert FLV to popular audio formats for Mac OS X users. FLV Converter Mac OS X softwrare supports all video popular formats indcluding FLV, MPG, MPEG1, MPEG2, MP4, 3GP, 3G2, MOV, AVI, Mpeg TS/TP (for HD Video), etc. The Mac FLV Converter can also convert FLV to MP3, WAV, OGG, 3GP, AAC and M4A, AC3, APE, etc audio.

Post new comment

The content of this field is kept private and will not be shown publicly.