Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
colin353
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
colin353
3y ago
Colin here (I'm the "named employee"). I don't mind being called out, FWIW. I'm proud of what we built. We would definitely have implemented sorting by recency if it was trivial to implement. But as I said before, o
2.
▲
by
colin353
3y ago
Hmm, you can construct a regular expression, something like: lang:tsx /<Button[^\\].\* color="red"/ Example: https://github.com/search?q=lang%3Atsx+%2F%3CButton%5B%5E%5C...
3.
▲
by
colin353
3y ago
Ah, you need to log in to get access to the new code search!
4.
▲
by
colin353
3y ago
Yes, we're working on bringing it to GitHub enterprise right now.
5.
▲
by
colin353
3y ago
Great point. Yes, we initially focused on zero-config approximate code navigation. But we do intend to support build-based code navigation in the future, since the approximate code navigation experience can be pretty poor for some languages
6.
▲
by
colin353
3y ago
I'm Colin from GitHub's code search team, happy to answer any questions. For more info on how we built this, you can check out our technical blog post from a few months ago https://github.blog/2023-02-06-the-techno
7.
▲
by
colin353
4y ago
We have not done this yet, but we do intend to. Actually, our search engine is so fast that syntax highlighting the search results is often slower than finding them... so if we store the language tokens directly in the index, we'll be
8.
▲
by
colin353
4y ago
Good question. We still construct ngrams for it, exactly the same way. So for example, we might extract `aaa`, `aaa`, and `aaa`. Or we may extract `aaaa` and `aaaa`, or perhaps `aaaaa`. Then we deduplicate to find the unique ngrams and look
9.
▲
by
colin353
4y ago
Hey saagarjha, thanks for the feedback. It's our goal to make the experience as good as possible, and we're aware of shortcomings with cmd+F and `t`, among other things. We're working on it, and your feedback helps us a lot.
10.
▲
by
colin353
4y ago
Hey everyone, I'm Colin from GitHub's code search team: happy to answer any questions people have about it. Also, you can sign up to get access here: https://github.com/features/code-search
11.
▲
by
colin353
4y ago
We have fixed it behind a feature flag that isn't yet rolled out. Still experimenting with it. But expect to see that resolved in the next couple weeks
12.
▲
by
colin353
4y ago
Positive feedback feels nice, but negative is way more useful to making a great product. We're changing an website that millions of people use every day. Hopefully we mostly have a positive impact. But if we're making it worse, ev
13.
▲
by
colin353
4y ago
Appreciate the feedback. > static view of the core Not sure what you mean by that, can you elaborate? FWIW we are working to more tightly integrate code search into the code view. And absolutely, performance matters a lot to us. Sorry fo
14.
▲
by
colin353
4y ago
I'm guessing you are in our Code Search Technology Preview (which was at cs.github.com), which gives you access to this new UI as well. By the way, feel free to opt out if you hate the new UI - it's super easy to opt out from the
15.
▲
by
colin353
4y ago
We're not using server side rendering extensively at GitHub (yet) but are experimenting with it on some React pages. Hoping to make the pages even faster than the previous Rails/ERB pages
16.
▲
by
colin353
4y ago
GitHub has been investing in React for a while (e.g. see our accessible React design system https://primer.style/react/ ). Many developers at GitHub have experience with React, which helps. And the tooling is just more
17.
▲
by
colin353
4y ago
Not the case, the mobile app is great, but we know developers use mobile web. It matters to us. Will definitely improve it
18.
▲
by
colin353
4y ago
Yep, aware of these mobile issues and are actively fixing them, will hopefully improve in the next week or so. And thanks for the feedback. We're in Beta right now exactly so we can get feedback so please don't hesitate to reach o
19.
▲
by
colin353
4y ago
This is just the first step of using React within GitHub.com, so we still use a lot of traditional Rails/ERB, even on the React pages (e.g. for the header/footer).
20.
▲
by
colin353
4y ago
I'm one of the engineers at GitHub who was behind this new UI, let me know if you have any questions. We chose React for this code search/code view because it has a lot of interactivity, and it has worked well so far. And we do in
21.
▲
by
colin353
4y ago
I'm one of the engineers at GitHub that built this - happy to answer questions (or fast-track your access into the preview!)
22.
▲
by
colin353
5y ago
Hey, I'm on the GitHub code search team. We've had a ton of people join the waitlist, sorry it's taking so long to get through everyone! We're hoping to get most people access early in the new year. Stay tuned!
23.
▲
by
colin353
5y ago
The new search does find filenames! :D
24.
▲
by
colin353
5y ago
Might also be worth checking out the syntax guide: https://cs.github.com/about/syntax#symbol
25.
▲
by
colin353
5y ago
GitHub Code Search developer here - try creating a custom scope to filter out that stuff! Click on the scopes dropdown and scroll to the bottom. You can filter out HTML by using a query like: NOT language:html
26.
▲
by
colin353
5y ago
We are looking into open sourcing some libraries that we've developed for search. And we're going to write a blog post with way more technical details soon!
27.
▲
by
colin353
5y ago
GitHub Code Search developer here: > would love to see this in a UI if it's possible We do have code navigation via the UI, so in a way it's possible! > ability to save searches I do frequently Absolutely! This is possible u
28.
▲
by
colin353
5y ago
Another GitHub Code Search developer here - to add more to this, we rank all the search results, and try to bring the most relevant results to the top. Ideally, if you have 10 pages of results, you shouldn't have to leave page 1 to fin
29.
▲
by
colin353
5y ago
Couldn't agree more - that's why we built it! Please give the new search a shot, I think you'll like it :D
30.
▲
by
colin353
5y ago
Hey! That was me in the video. Not ashamed to be a Rust evangelist! The reason I mentioned Rust is because we spent a lot of time making the experience really fast - which is super important for a product like this. I really think getting t
More ›