Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

The Open source movement is playing a remarkable role in pushing technology and making it available to all. The success of Linux is also an example how open source can translate into a successful business model. Open source is pretty much mainstream now and in the coming years, it could have a major footprint across cutting edge educational technology and aerospace (think DIY drones).

Open source projects need all the help they can get. If not with funding, then with volunteers contributing to open source programming and free tools they can brandish. Search engines tuned with algorithms to find source code for programming projects are among the tools for the kit bag. While reusing code is a much debated topic in higher circles, they could be of help to beginner programmers and those trying to work their way through a coding logjam by cross-referencing their code. Here are six:

Ohloh

code search engine01   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

Ohloh Code says it is one of the largest and more comprehensive code search engines with more than 10+ billion lines of code indexed and updated FOSS software directories. We did give it a mention when Danny showed us how to enhance our coding skills by contributing to an Open source project. Ohloh is the upgraded face of Koders.com and is also freely available and freely editable by its community. It indexes all text files for search and has syntax highlighting support for 43 programming languages. The search query syntax supported by the service gives you the flexibility to search for different code classes. The search engine presently does not support regular expressions.

Krugle

code search engine02   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

Krugle is an open source search portal which taps into open source search repositories like Apache, JavaDocs, and SourceForge among others. You can search for code in C++, Java, Perl, Python, SQL, Ruby, XML, HTML etc.  It is powered by OpenSearch. Krugle also has an advanced search feature that can help you narrow down to the right APIs, libraries, sample code or documentation. From the results page, you can browse to the project developed with the code.

SearchCode

code search engine03   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

SearchCode sifts through 16 billion lines of open source code from code repositories like GitHub, BitBucket, CodePlex, SourceForge, Fedora and more. The code and documentation search engine is maintained by a single developer. You can use filters like file extensions, specific repo name and URL, regular expressions, and special characters. Specific examples and documentation search support is listed on the Examples page.

NerdyData

code search engine04   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

NerdyData.com is a spic ‘n span source code search engine that just had a limited launch. The site claims to have indexed over 140 million webpages for code. If you are a web developer, you will find it of interest because it searches for HTML markup, JavaScript code, or CSS style code snippets. But NerdyData aims to be more than a simple search engine for code as it also is trying to develop a whole list of features around the web development process.

You can also search for documentation; you can do a comparative search to visualize on how many domains a term appears; and you can do a competitor analysis by checking which websites have their code. NerdyData has a free basic plan which lets you do 200 credit searches. Each search feature has a credit score attached to it. You can check out the three pricing plans and try it out with the free features first.

Symbol Hound

code search engine05   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

Google and other search engines aren’t that good when it comes to searching with special symbols. Google for instance, strips away many punctuation marks and special symbols, if not all. Google does recognize some and here’s a list which you can refer to. So, searching with regular search engines might not return the desired output if you are searching for variable or error codes with special characters. Symbol Hound is an alternative search engine that can help here.

Merobase

code search engine06   Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects

Merobase is a different kind of search engine that helps you search and locate software components. Merobase does search for source code, but it also – and more importantly – can search for software components which are the discrete building blocks of software. It is a module that packages a set of functions. Component-Based Development (CBD) involves the creation of software from pre-written components. Merobase can search for interfaces with simple text based queries. You can also search with function-based, object-oriented, name-based, and test-driven queries. This abstract search method is a highlight of this engine. Merobase searches for components written in Java, C++, and C Sharp.

Are these the only six search engines for seeking out open source code? Well, they do seem to be the best. But if I have missed a blinder somewhere, do let us know in the comments. Searching for reputable source code on the web is one way of learning how to program well. Strange as it may sound, source code references could also be a social handshake with the person who created the code in the first place. The open source community thrives on collaboration. Do you find these alternative search engines useful or would you search within a particular code repository like Google Code, GitHub, or any platform specific repository only?

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

14 Comments -

0 votes

dragonmouth

I wish I knew about these sites when I was working. Would have made my life and job much easier. At least I had a lot of practice in reinventing the wheel. LOL

0 votes

Saikat Basu

Look at it this way, probably, you didn’t even have the Web when you were growing up. I didn’t. We did our “homework’ by hand! :)

0 votes

dragonmouth

And we walked to school in the snow, barefoot, up hill both ways! :-)

0 votes

Lumpy Gravy

… yeah, like Monty Python’s “Four Yorkshiremen” :-)

0 votes

Zach Greenberg

Wow, I’ve never heard of a site like NerdyData.com. The others seem to search code repositories… is NerdyData the only one that searches real live popular websites?

- zach

0 votes

Saikat Basu

So far it seems to be the only one. There are very few sites left standing actually as my research told me.

0 votes

Jack

Watch out for NerdyData it’s red flaged by WOT.

0 votes

Saikat Basu

Google Safe Browsing and Norton Web Safe don’t list the site as suspicious. It is a comparatively new site and it queries against the source code of webpages. Maybe, that is the cause of the WOT rating. WOT has a lot of false positives to its credit so, I don’t take this at face value.

0 votes

Jack

That’s grand so, I was only saying it as a precaution. Rather safe than sorry you know.

0 votes

Ben Boyter

Thanks for the write up on searchcode.com (I am the developer). Any questions about it let me know and I will be happy to answer them.

0 votes

Saikat B

Hi Ben, thanks for dropping in.

0 votes

Bestgeek

Stackoverflow. Though, search engine is not its trait, has huge resource. More importantly, most of the time one will see where they’re stuck and figure whole code themselves, rather than having entire project written by someone else.

0 votes

Saikat B

True. We have covered StackOverflow in previous articles, and is a very important knowledge center if you are learning to code.

0 votes

Warren

There is a another one here,
http://www.technologicalutopia.com/searchopensourcecode.htm

It uses Google’s technology to do the searching.

Disclaimer: I own the site.