Live data from Hacker News

GitHub Code Search – Programmers' Goldmine

jakubdziworski.github.io

11–20 of 63 posts

Re: GitHub Code Search – Programmers' Goldmine

#11

Searching for code without understanding could lead one astray. Even such places as Rosettacode host a buggy code. http://karma-engineering.com/lab/blog/DoNotCopyPasteShit

Moreover, there are occasions when snippets from highly upvoted (and even accepted) answers on Stack Overflow should not be copied either.

Re: GitHub Code Search – Programmers' Goldmine

#12
If anyone from github is reading this, I would totally pay for a much better search. Like even $20-30/month. If you deduplicate results (it sucks when you are searching for something that's appears In a popular library) and like make it integrated with my ide, I think that it would spike my productivity by like thousand percent.

Re: GitHub Code Search – Programmers' Goldmine

#13

as great as it is to be able to search source code in github is, it is equally (if not more) frustrating. I think it works fine for simple searches mentioned in the post, but anything even slightly more advanced doesn't work very well. I also wish there was a way to search in branches other than master

> I also wish there was a way to search in branches other than master

This is actually an insanely hard problem to solve, given current technology. Right now, you can either try to index a little bit of everything, which is what GitHub and others (GitLab, Bitbucket, etc.) are doing. Or you can take the approach that I'm taking, which is make it possible for the user to search any branch they want, but limit the number of repositories they can search in parallel.

GitHub and my approach are definitely targeted at two different use cases. My background is Enterprise, which is why my search solution is based on "search relevance", while GitHub is more focused on "search discovery", which is more suited for finding random things.

Re: GitHub Code Search – Programmers' Goldmine

#15

Searching for code without understanding could lead one astray. Even such places as Rosettacode host a buggy code. http://karma-engineering.com/lab/blog/DoNotCopyPasteShit

Don't go from one extreme, only using docs, to another. Code examples provide context to the documentation. They should be used together.

Re: GitHub Code Search – Programmers' Goldmine

#20

If anyone from github is reading this, I would totally pay for a much better search. Like even $20-30/month. If you deduplicate results (it sucks when you are searching for something that's appears In a popular library) and like make it integrated with my ide, I think that it would spike my productivity by like thousand percent.

[deleted]
Post reply on HN