203 points · by goranmoomin · 4y ago · 139 comments
Original discussion: https://news.ycombinator.com/item?id=25217291
1. Code search is more mainstream. It used to be most of Sourcegraph's sales came from ex-Googlers missing code search, but nowadays, most of our new revenue originates from dev teams just struggling with the challenge of big codebases.
2. Investment in dev tools has only accelerated. A lot of pandemic beneficiaries (virtual events, tele-medicine, at-home exercise equipment, crypto) are now reversing, but dev tools growth continues to be strong.
3. Bazel adoption has grown. Were I writing the post today, I would have had a category for monorepo tooling that included companies like EngFlow and Turborepo.
4. Kubernetes is still dominant for container orchestration, but serverless and managed services seem to be gaining more adoption. Classic tension between customer focus and open standards—will be interesting to see how we trade off dev-ex vs proprietary platform dependency.
Since this post was first published, we've also made a lot of advances at Sourcegraph and are looking for people who want to play around with some new experimental search and code intel features. Come say hi in our Discord! https://discord.gg/SSCBGByJeu
[1] https://admin.phacility.com/phame/post/view/11/phacility_is_...
> Join the waitlist
:-(
Since you seem to be in the beta, you may want to let them know their Homebrew tap is pointing to the wrong GH org: https://github.com/withgraphite/homebrew-tap/blob/master/For...
Shameless plug but anyone interested in a code review tool on top of GitHub may also want to check out CodeApprove (https://codeapprove.com). It's got a lot of the things that people from FAANG companies, especially Xooglers, miss about the excellent internal code review tools those companies have.
There is also a (blessed) community fork at https://we.phorge.it/
* Consistent build structure
* Rigorous code reviews
* Ginormous company-wide shared filesystem holding all code
* Point-click-drag report building
* Big-query
I'm sure I'm missing additional awesome internal aspects of being a developer at Google, and some parts are also horrendously bad.
* Automated presubmit/bisect queues
* Well built code review ui and not like github
On this topic, most companies will give up on “rigorous code reviews”.
I’d love a tool that helped with context in a larger system design way. Coming in cold on some project and expecting to know all the design decisions, and if the code structure is going away from some higher level goal is where most problems that I’ve seen come in.
I don’t see how any of the current tools help with that, and I somewhat doubt these secret tools do either - but would love to seen them if they do.
Formatting can be almost entirely automated with pre-submit checks that the code is formatted, and automatic formatting tools.
So for your two examples, this practice of adopting a style guide prevents them from arising. The “tabs vs spaces” argument is simply settled, because the style guide has an answer. The “for loop vs for-each loop” is either addressed by the style guide, in which case there is an answer, or it’s not, in which case it is not a legitimate style complaint one way or the other, and the reviewer is making a mistake by bringing it up.
To pull an example from the paper, if your line of code says
if (a == b || b == 1)
you might get a comment that says something like> "Changing this line to
if (a != b || b == 1)
> does not cause any test to fail."Page 4 lists other mutations, like replacing logical ANDs/ORs with just `true` or `false`, switching arithmetic plus to minus, etc.
This isn't a larger system design context thing, though, just a testing one.
Disclosure: I work at Google.
1. Search another team's code
2. Quickly jump into a Cloud IDE to make a change
3. Build and test the code, because everyone uses one build system
4. Send that code off for review and have the review tool automatically select the right reviewers and run the right tests
For a simple change (let's say a typo fix) all of the above can happen in a single browser tab in under 5 minutes even if you've never been in that part of the code before.
----
While I'm here a shameless but relevant plug: if you're looking for a Google-like code review experience on GitHub check out https://codeapprove.com
At Coherence, we agree that code search and code review, along with automated code intelligence, are a huge step forward. Tools like sourcegraph, graphite, codeapprove are all solving important problems in the cycle. But we believe that the general approach of “building” vs “buying” development infrastructure for these key steps is holding teams back.
Check us out at withcoherence.com if these sound like problems your team faces, too! (Disclosure, I’m a cofounder)
- BigQuery is available on GCP
- Bazel is an open source Blaze
- google source formatting (for java at least) is open source
There are probably more…
Most of industry still seems unaware that no-knobs data query and pipeline systems even exist. If I only had a dollar for every time I saw a PR tweaking the memory settings of some Spark job or hive query that stopped running as the input data grew....
I'd love to see more people write their workflows using the Apache Beam API so they'll have the option to switch to a no-knobs, scalable pipeline engine in the future even if they're not using one today.
There's a reason it isn't popular outside of elgoog.
IRL, every project tends to do a little bit or a lot of its own thing.
Things like engineers losing time wondering why their node dependencies weren't correctly installed, or dealing with a pre-commit check that reminds them they didn't manually regenerate the generated files, or having humans write machine-friendly configuration that's not actually human-friendly because there's no easy way to introduce custom file transformations during the build.
Bazel doesn't spark joy for me and I wouldn't say I look forward to using it, but personally I would still always choose it for a codebase that's going to have multiple developers and last a long time. It's vastly easier to go with bazel from the beginning than to wish you could switch to it and realize people have already introduced a million circular dependencies and it's going to be a multi-month or multi-year process to migrate to it.
I really hate dependency on GitHub for workflows but Microsoft is nailing the dev tools people are looking for and I think taking a look at what happens inside of big tech dev tooling is always interesting to see what we can build in the wild to improve developers ergonomics.
You also don’t have problems to solve like google’s. Use the tooling appropriate to the task.
I find this problem with non-programmer ex googlers as well. They are so used to having so much infrastructure and opaque/screwed up objectives they’ve been given to meet that they often struggle in a startup environment (where the goals are merely “let’s get this button to show up 100% of the time,”, “let’s store the data for our 10k customers”, or “let’s give our phone number to these key customers so if there’s a problem they can call us right away”, or “figure out the most important thing that’s keeping our sign ups from converting and fix it — this week”).
I remember my gf working for a company of about 500 ppl (so not a startup) who, shortly after she joined brought in a new CEO, an ex googler. In fact it had been the only place he’d worked.
When I met him it was clear he 1 - was quite smart and 2 - had no idea how the company worked or why ppl bought its product. And 16 months later, he was gone, along with the ppl he’d brought into the exec team, and the company was losing even more money.
But by that point my gf was long gone.
I have heard certain large companies having very a fragmented development culture (every team does their own thing, no central repository), so maybe Google's tools being particularly refined is the result of most of the company sharing the same tools.
Amazons approach is to let each team use their own combo of tools, all centered around the Pipelines workflow, while G has one set of tools and everyone uses it the same way (comparatively).
Source: Googler but still writing lots of code outside of Google and constantly think to myself "why is this so needlessly hard? Why does nothing integrate well?"
I'm a strong apologist for Bazel, but I can absolutely see why projects avoid it. The more you deviate from what Google does the more paper cuts you'll get, but the less work you'll have to do. Bazel is great but it's certainly not a clear win in the general case.
I am looking forward to new set of bazel rules being worked on for eg. https://github.com/aspect-build/rules_js and https://github.com/jvolkman/rules_pycross which will makes it more idiomatic to work with existing language ecosystems.
- Blaze defaults to building everything remotely, on a massive farm of build servers. (This farm was sizeable enough to have its own capacity planning teams. Yes, plural.) There are a few startups trying to clone this SaaS for Bazel, but it is - predictably - not easy.
- Since all builds were remote, build _telemetry_ was also uploaded and available on the intranet. This meant that if you wanted to ask someone "hey, my build failed, can you help", you could literally send them a link "https://google-build-system/00000-11111-22222-the-rest-of-my..." with all the information about your build: the thing(s) you were trying to build, the options you were building with, all the foreign keys you needed to look up build timing data, etc. You could also query company-wide build telemetry data to see what people were building more frequently than others, if specific areas needed engineering investment, etc.
- Since builds were remote, they pretty much had to be hermetic and reproducible, which meant platform teams - e.g. C++ team, Java team, Python team, Go team, etc. - could make infra-level changes and test out the effects on various teams. This is a very Google-scale specific need: allow another team to do your infra maintenance for you, i.e. upgrade the Python runtime underneath you. (Yes, this comes with caveats. Google eng tends to live at head, so while there are "my team needs to control our rollout to the latest infra version" concerns, there is a consistent mandate for most teams that "upgrading to the latest infra that we run on" is a priority.)
The big place where problems came up was when source code needed to exist _outside_ of google3: open-source repos, for instance, very frequently have to do a delicate dance of figuring out (1) is their primary source of truth going to be inside google3, where the tools/infra are uniform and Better TM, or on github/etc, where they have to configure their own test stack, CI stack, etc., and (2) what are the downstream implications of decision (1).
So, I was trying to find a URL shortnener which allowed for pretty links similar to what the internal “go/“ site supports.
I couldn’t find anything, and it seemed simple enough so I made it:
I miss the functionality a lot for a number of not malicious use cases, but I don't see a way to avoid that problem at the moment.
I think arguably Facebook/Meta has them beat.
Blaze is cool, but do you want to do it for every small project? It's actually a bit annoying for small projects, the verbosity of it. Granted that it helps optimise a lot of downstream workflows and enables pretty good tooling, but you wouldn't need those in startups not operating at that scale.
Startups need speed over accuracy. Google needs accuracy over speed.
Source: Acquired from startup to Google.
Related, but from distant past: https://news.ycombinator.com/item?id=15722849
@Dang: Can we add a feature to auto link related threads in an expand\collapse section?
But yeah, for the day to day java I was writing IntelliJ was way better.
There’s a special place for people who use it to be misleading when advertising their products. (A very popular iOS app dev did this many years ago and I’ll never use their app out of principle.)
And I think Brittanica out ranking Wikipedia was the final straw for normal ad-hoc search.
A ham sandwich with a million buttons that each do different things, sure, but it’s not impossible to learn the ones you need, and they rarely break. How many times have we seen apps fail one of those criteria?
It also has the distinction of printing a massive amount of money and being a huge competitive advantage over other ML institutions — like, say, Facebook. So it seems obvious why developer experience wasn’t prioritized, just “ok.”
But using it, I feel deeply in my gut that there has to be a better way. But I've not seen anything across any of the major clouds that is much better.
2) For awhile Google wanted to move more new development onto GCP (an effort called "Google on Google"), but it had limited traction and has been abandoned AFAIK, because internal tooling, infrastructure, and devex was just so much better than what GCP had to offer.
2) feels like this just proves my point
Rather than force the teams who developed the original tooling inside Google to develop a similar public facing commercial product, they had GCP developers write parallel tools, or they bought third party tools and tried to integrate them. Both solutions proved not as easy as management had hoped.
Though, to be fair, I did once purchase an ex-parrot.