It can be difficult to verify the quality of code in GitHub. Even well know products that work really well can be implemented with awful code. I suspect the vast majority of projects on GitHub are experimental and unfinished. Using this feature would be very unlike a system like Stack Overflow where there are strong incentives to provide good answers. Still, if the user is aware of these pitfalls then it could be qui…
GitHub Code Search – Programmers' Goldmine
41–50 of 63 posts
Re: GitHub Code Search – Programmers' Goldmine
#42Re: GitHub Code Search – Programmers' Goldmine
#43I still think that Google Chromium code search repository is by far the best one I've seen. Things like following refs everywhere and seeing git blame and related files makes it a hell of a lot better than github. https://codesearch.chromium.org/chromium/src/components/inva...
Re: GitHub Code Search – Programmers' Goldmine
#44Earlier quoted context omitted.
Have you checked out out https://sourcegraph.com/ ? It has awesome code search and navigation for github.
Kind of expected that you would be able to search all of GitHub there but it seems to be limited to selected libraries and your own repos? Also, surprised that C is not supported.. Personally I'm using GitHub's code search to discover dumps of code and docs for random Chinese hardware (SBCs and such). I've found it much easier than trying to find SDKs on Baidu's file sharing site (Baidu Pan).
Re: GitHub Code Search – Programmers' Goldmine
#45Re: GitHub Code Search – Programmers' Goldmine
#46Re: GitHub Code Search – Programmers' Goldmine
#47Re: GitHub Code Search – Programmers' Goldmine
#48as 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
Apparently this is related to how the search index works, but cumbersome nevertheless.
[1] https://help.github.com/articles/searching-code/#considerati...
Re: GitHub Code Search – Programmers' Goldmine
#49Re: GitHub Code Search – Programmers' Goldmine
#50I've been using GitHub code search to let other Python programmers know about the % string formatter. I search for ".2f}%'.format(100" and then send a push request to simplify the code. See https://github.com/EdwardBetts?tab=overview&from=2016-04-19