News for hackers. Stuff that matters.
Re:Ask HN: Good source code search engines? by boyter on Monday August 29, 2016 @08:04PM (#12386420)
Hi, I'm the guy behind searchcode.com Could you possible let me know what results aren't working for you? Im well aware that its due for some improvements in the search area and feedback is always helpful.
Re:Ask HN: Good source code search engines? by supersan on Monday August 29, 2016 @08:16PM (#12386462)
First of all great work! Of all the search engines I tried (and I've tried at least 10), I found yours to be the next best thing after GitHub search.

Anyway, here are some links you can try for yourself:

No php results:

1. https://searchcode.com/?q=CORSConfiguration+CORSRules 1. https://github.com/search?l=php&q=CORSConfiguration+CORSRule...

Only SDK libraries, what I think would be useful if the search engine somehow prioritized code built on SDK/API over libraries (though I don't have the first clue how you would distinguish the two but that would be a killer feature because that is super useful)

2. https://searchcode.com/?q=createEnvironment+ElasticBeanstalk... 2. https://github.com/search?l=php&q=createEnvironment+ElasticB...

I can provide you with more examples, if that helps. Thanks!

Re:Ask HN: Good source code search engines? by boyter on Monday August 29, 2016 @08:34PM (#12386527)
Thank you.

That's one that comes up a lot. The trick is knowing the difference between the two which I am still thinking about how to implement.

If you could email me at [email protected] that would be very helpful. It looks like most of these are down to just not having enough code indexed.

For the record I tend to crawl bitbucket/gitlab more often then github simply because they do not have a search and I want that code to be available. I have started a full refresh of everything though so hopefully your results should improve in a few weeks.

Re:Ask HN: Good source code search engines? by supersan on Monday August 29, 2016 @09:10PM (#12386685)
That is really great news. One way I can think off to distinguish a library from other code is how many times the file shows up in your search results, i.e. the more the duplicates of a file you find (in various repos), the higher the chance it is a library.
Re:Ask HN: Good source code search engines? by boyter on Monday August 29, 2016 @09:23PM (#12386741)
Thats a pretty good point I suppose. I do track that information so it wouldn't be too difficult to implement I guess.