Live data from Hacker News

Show HN: Search code in GitHub repos using regular expressions

grep.app

131–140 of 165 posts

Re: Show HN: Search code in GitHub repos using regular expressions

#131
post #108

Earlier quoted context omitted.

Sorry, but his code search covers far more languages than yours the last time I tried yours :)

Doesn't sourcegraph allow to just search regex over any files in a repo? This is textual search, so how are languages relevant to it? I didn't seem to have problems with that

Sorry, maybe I have confused SourceGraph with https://searchcode.com, but last time I tried, it supports only most widely used languages such as Java, Python and so on, but not the language I use (Delphi/Object Pascal). I'm sorry if I'm wrong.

Re: Show HN: Search code in GitHub repos using regular expressions

#132
post #49

Earlier quoted context omitted.

If this were to be offered by an actual company (a first party solution), there are some features that'd be expected that make the problem space a lot harder. Here's an "intro to search" article that's a good read, and I'll use it to highlight some of the things that'd be different in a first party solution - https://medium.com/startup-grind/what-every-software-enginee... (See the "Theory: the search problem" section…

For GitHub, I would have to imagine only being able to search public repos with regexp would be good enough. GitHub has many strategies, but the main one is, they want to maintain, if not, expand their open source mind share. The more reasons you give people to go to GitHub, the better off they will be in the future. So I do agree with you that as a commercial solution, this may not be viable, but for GitHub's public…

That might well be true but to scale this type of service to all public repos with decent latency and update ratio is a major technical challenge and likely very costly to maintain.

Re: Show HN: Search code in GitHub repos using regular expressions

#134
post #81

Earlier quoted context omitted.

You can but only in the repo itself not on a site wide scale.

Really? I searched for `filename:home.nix` (which brought me to https://github.com/search?utf8=%E2%9C%93&q=filename%3Ahome.n... ). That seems site-wide to me, unless I'm misunderstanding you.

These kind of keywords really should be next to the search box with a question mark next to them or something.

TIL some of them are on this page that you only see if you search for an empty string:

https://github.com/search?q=

Click on 'prefixes'. This kind of thing should be readily available from any search box that searches through GitHub.

Re: Show HN: Search code in GitHub repos using regular expressions

#136
post #108

Earlier quoted context omitted.

Doesn't sourcegraph allow to just search regex over any files in a repo? This is textual search, so how are languages relevant to it? I didn't seem to have problems with that

Sorry, maybe I have confused SourceGraph with https://searchcode.com , but last time I tried, it supports only most widely used languages such as Java, Python and so on, but not the language I use (Delphi/Object Pascal). I'm sorry if I'm wrong.

Sourcegraph CEO here. You can definitely search all languages (and all files, and cross-repo, and all commits, etc.) with Sourcegraph.

Re: Show HN: Search code in GitHub repos using regular expressions

#137

This is awesome! @danfox, sent you an email though commenting here too. I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub. Feel free to email direct to jason at github.com

github's code search is notoriously bad, feels like a huge missed opportunity. Nice to see you guys reaching out to other people working in this area.

Agree. You can’t even do a literal search with symbols.

I think there were better solutions on the early 2000’s.

Re: Show HN: Search code in GitHub repos using regular expressions

#138

Earlier quoted context omitted.

Sure you built app on multi 20 core machines with functionality to search hundreds of millions of lines of code almost instantaneously, but are you someone I'd drink a beer with?

This snide remark dismisses the fact that working on software does mean working with other humans, not just unemotional robots devoid of any kind of irrational ideas. Being able to “drink a beer with” (and reasonably substituting the drinking of beer for just about any other social interaction) is an important part of being able to work with someone. Unless of course you believe an office environment consisting of a…

I think when people talk about this, they mean to push back against the fact that people will often to be biased to hire someone they think they could be casual friends with, share interests with, etc.

I like my coworkers and I find them perfectly find to work and make small talk with, but I don't share interests with many of them and wouldn't really care to hang with them outside of work. That shouldn't be a criterion for hiring.

I have found it highly annoying to work in engineering orgs where everyone seems to have the same interests. Everyone talking about Star Wars, Dungeons and Dragons, Lord of the Rings, etc. constantly because it's assumed everyone else around also enjoys that conversation.

Re: Show HN: Search code in GitHub repos using regular expressions

#139
post #136

Earlier quoted context omitted.

Sorry, maybe I have confused SourceGraph with https://searchcode.com , but last time I tried, it supports only most widely used languages such as Java, Python and so on, but not the language I use (Delphi/Object Pascal). I'm sorry if I'm wrong.

Sourcegraph CEO here. You can definitely search all languages (and all files, and cross-repo, and all commits, etc.) with Sourcegraph.

Great! Do you have a live demo? like the one being Showed HN?
Post reply on HN