GitHub's New Code Search Is Bad for Finding Code
stackdiary.com
stackdiary.com
It should be "GitHub's New Code Search is Bad for Finding __New__ Code". GitHub's new code search is great at finding code (a vast improvement over the old one), and as it is optimized for finding code independent of temporal aspects, it's not good at finding _new_ code.
Sounds like a good tradeoff to me, as there conceptually aren't any reliable/unambigous indicators of "when" attached to a piece of code (same as for authorship). Should it count when the commit was authored? Should it count when the commit was pushed to GitHub? Should it count when the commit was merged to the default branch of the repo?
Go ahead and criticise a product, but don't call out an employee or make out that they are failing to fulfil your personal requirements.
I'm sure this is only a first version of the new GitHub search, and more features will come. Give them the benefit of the doubt.
I don't really understand why we are seeing more and more of these style of antagonistic blog posts (or comments here on HN).
I can perfectly understand the frustrations of the author - its kind of absurd someone working on a search feature needing the reasoning explained for why someone might want the most recent results, especially when the old search had this feature. I don't work at GH and I don't require "elaboration" for this request - I understood the OP perfectly.
"Can you elaborate on why you want to" is an incredibly legitimate question in that sort of feedback thread, they are looking for use case.
Yeah, this post is needlessly adversarial and hard to take seriously for it.
We would definitely have implemented sorting by recency if it was trivial to implement. But as I said before, our data shows that it is infrequently used, and to scale our search index, we designed it in a way that makes this kind of sorting tricky.
Sometimes to ship products like this, tradeoffs have to be made, and I continue to think we made the right one. Nevertheless, it's good for me and the team to hear feedback like this so we can continue to improve the product.
Many UI redesigns focus on the features that the majority use and less common features get deprioritized or cut. This could lead to product erosion over time and eventually to a product that no one wants to use.
It is difficult to find a good solution to this problem. Engineering involves making trade-offs with limited resources. The author of the article is clearly frustrated by the deprioritization of the feature they use. I believe they are overstating the severity of the problem when they claim the new search is "bad" because it doesn't fit their narrow use case.
However, Photoshop and MS Word remain huge successes despite their crushing complexity. Some part of that success is likely due to ensuring that existing use cases, even those that affect a small percentage of their users, are catered for in new versions of their products.
I’ve seen a lot of misuses of telemetry where people think product design can be reduced to a popularity contest.
- CTRL-F or scrolling momentarily blanks so the the screen which is distracting
- Text selection works strange, I think it's being faked somehow
- Selecting code via double click pops in a distracting sidebar
Not relevant to most people, but to me:
- It's not themeable because it relies on inline styles and random HTML class names. Does not use GitHub's CSS custom properties at all.
I'll take the opposite stance: I think this is a good fresh start in a new direction of code search at Github, and I can't wait to see what improvements they make as time goes on.
Keyboard navigation is pretty broken now
Can’t sort results by update recency etc (as article covers)
And code vs repo search use different “lang” vs “language” filters, sometimes giving you the wrong one and wrongly saying no results.
Time is an important information.
The new search is a great improvement over that.