Live data from Hacker News

Show HN: Search code in GitHub repos using regular expressions

grep.app

51–60 of 165 posts

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

#51

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.

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

#53

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.

I'm not a dev and what i like to to do is go searching for code (a la exact match) to replace whatever variable or text should be changed. Github search in repo kinda worked at some moment, then not.

Then i had to download repo in my local; run VS code (updating first), search there, modify, push. I wish i could do this on Ghub web GUI

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

#54

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.

The fact that you can’t search for file names is the funniest part to me.

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

#55
post #46

Any plans to include backrefs? I'd like to see how many examples of /(\w+) && \1\./ are out there in .js/.ts compared to /(\w+)\?\./

The about blurb mentions it uses RE2. So backreferences aren't likely. See https://github.com/google/re2/issues/101

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

#56

Why regex still exists? It is unintuitive, requires mastering an obscure syntax, it is very hard to debug, and very difficult to explain to others how it works. It feels like we are trying to write intermediate code by ourselves, while we should have a human readable language that generates regex.

"Why regex still exists?"

Is there an alternative that is clearly superior?

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

#57

Next post from danfox - “how to get 3 job offers in 3 hours”. Already has been publicly contacted by: - GitHub CTO - SerpApi CEO - SourceGraph CEO Search is hot right now!

Actually, It would more be like: "How I failed at 3 interviews, despite being directly contacted by execs."

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

#58
post #57

Next post from danfox - “how to get 3 job offers in 3 hours”. Already has been publicly contacted by: - GitHub CTO - SerpApi CEO - SourceGraph CEO Search is hot right now!

Actually, It would more be like: "How I failed at 3 interviews, despite being directly contacted by execs."

That would be quite the dystopian interview nightmare.

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

#59

Earlier quoted context omitted.

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.

The fact that you can’t search for file names is the funniest part to me.

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

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

#60
post #57

Next post from danfox - “how to get 3 job offers in 3 hours”. Already has been publicly contacted by: - GitHub CTO - SerpApi CEO - SourceGraph CEO Search is hot right now!

Actually, It would more be like: "How I failed at 3 interviews, despite being directly contacted by execs."

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?
Post reply on HN