Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a good source code search engine? [closed]

Tags:

The codebase I work on is huge, and grepping it takes about 20 minutes. I'm looking for a good web-based source code search engine.. something like an intranet version of koders.com.

The only thing I've found is Krugle Enterprise Edition, which doesn't post its prices... and if you have to ask, you can't afford it.

I'd really prefer a plain old search engine, without a lot of other bells and whistles.

The source is mostly ASP.NET/C# and Javascript.

like image 731
toohool Avatar asked Sep 19 '08 23:09

toohool


People also ask

How do you find a good source code?

Good source code is often produced by a series of revisions. Thus, if you can find source code that has been peer reviewed multiple times, and fixed multiple times, you're probably in a better location. Some open source projects (and some portions of those) are particularly well reviewed.

What is source code with example?

Source code must be converted to object code or machine language by a compiler before a computer can read or execute the program. Source code is the language or string of words, numbers, letters and symbols that a computer programmer uses. An example of source code is someone using HTML code to create a screen.

What is a code search engine?

Code search engines enable users to search for source code by inputting keywords or code snippets.

How do you write source code?

To write a source code, all you really need is a simple text editor - like the Notepad on Windows or TextEdit on Mac. This way, source code can be saved as plain text (e.g. in ASCII coding or with UTF-8 encoding) with the correct file name ending for the programming language. So if you find a file with the ending “.


2 Answers

I recommend OpenGrok. There are some other engines, here's a quick review of them.

like image 130
Mauricio Scheffer Avatar answered Oct 20 '22 08:10

Mauricio Scheffer


20 minutes is outrageous! I'm working with a million+ line source code base these days and grepping takes a few seconds at most (I use ack). Our home directories are stored on a file server and mounted over NFS, and to speed up grepping we do that while logged in to the file server. I'm not sure how long it takes over NFS, but it's certainly longer.

We also do source control operations while logged in to the file server, for the same performance reasons.

like image 34
Greg Hewgill Avatar answered Oct 20 '22 07:10

Greg Hewgill