News for hackers. Stuff that matters.
Re:Ask HN: What is the best code base you ever worked on? by tlarkworthy on Friday June 28, 2024 @05:59AM (#40819157)
Google3 codebase. It's just so vast and it works. It's a miracle. I feel lucky to have seen it. Everytime you change it, it reruns the dependencies. Everyone has different view concurrently. Commits are efficient immutable snapshots. It's just incredible multiplayer. So massively beyond what can be done with GitHub. Really I feel it's peak codebase. I've not seen what the other big techs do but it blew my mind
Re:Ask HN: What is the best code base you ever worked on? by arcade79 on Friday June 28, 2024 @06:34AM (#40819316)
It was wonderful to work with. :-) It's one of the things I truly miss from Google.
Re:Ask HN: What is the best code base you ever worked on? by asymmetric on Friday June 28, 2024 @06:10AM (#40819202)
What is Google3?
Re:Ask HN: What is the best code base you ever worked on? by kqr on Friday June 28, 2024 @06:16AM (#40819223)
I would assume Google's monorepo.
Re:Ask HN: What is the best code base you ever worked on? by Daub on Friday June 28, 2024 @06:20AM (#40819247)
This link might help... https://dl.acm.org/doi/10.1145/2854146

The linked pdf has lots of details.

Re:Ask HN: What is the best code base you ever worked on? by erikpukinskis on Friday June 28, 2024 @09:20PM (#40827131)
HTML version in case anyone prefers that to PDF: https://cacm.acm.org/research/why-google-stores-billions-of-...
Re:Ask HN: What is the best code base you ever worked on? by bushbaba on Friday June 28, 2024 @04:24PM (#40824890)
The replacement of google2
Re:Ask HN: What is the best code base you ever worked on? by VirusNewbie on Friday June 28, 2024 @01:39PM (#40822973)
Google3 codebase very consistently has clean code, but some of the architecture there is very much not great.

Some is great, some not so much.

Some of Verizon's code was much more elegant (though much smaller scope) from an API perspective, and really leaned into advanced type systems in a way Google has not.

Re:Ask HN: What is the best code base you ever worked on? by dilippkumar on Friday June 28, 2024 @01:54PM (#40823120)
+1

I can not understate how much I agree with parent comment.

The opposite of move fast, build a shitty prototype and iterate is a deliberate problem solving approach undertaken by the highest caliber of engineers. The actual challenges to be addressed are effectively addressed right at the design stage.

The result is a thing of immense beauty and elegance.

I will forever be grateful for the opportunity I had to see this magnificent piece of engineering in action.

Re:Ask HN: What is the best code base you ever worked on? by semitones on Friday June 28, 2024 @02:54PM (#40823849)
I, like many others here, echo this sentiment. While I disliked working in ads, the experience of working with that repo+tooling is unmatched by anything else in my career.
Re:Ask HN: What is the best code base you ever worked on? by bufferoverflow on Friday June 28, 2024 @08:40PM (#40826905)
If the tooling is so far beyond anything publicly available, why don't you guys make something like that and make millions?
Re:Ask HN: What is the best code base you ever worked on? by vundercind on Friday June 28, 2024 @11:33PM (#40827695)
I strongly suspect it’s not that useful for a lot of businesses.

So many have their code split between a two dozen clouds, BA tools (… does Google put that in the monorepo too? Or is that, which is a lot of the code at most businesses, not “really” code at Google?), vendor platforms, low-code tools you all hate and are trying to deprecate but god damned if you aren’t still spending dev hours on new features in it, et c…

I bet achieving anywhere near the full benefits would first require retooling one’s entire business, including processes, and bringing a whole shitload of farmed-out SaaS stuff in-house at enormous expense, most places.

Re:Ask HN: What is the best code base you ever worked on? by thimabi on Friday June 28, 2024 @09:17PM (#40827110)
Perhaps they make more than that just by using the tooling internally and creating/maintaining other stuff with it — that’s a major competitive advantage
Re:Ask HN: What is the best code base you ever worked on? by znkr on Saturday June 29, 2024 @03:34AM (#40828523)
It’s not just tooling; processes, infrastructure and dedicated teams for centralized infrastructure are what makes Google’s monorepo what it is. FWIW, most of the tools are publicly available or have good publicly available counterparts. What’s likely missing elsewhere is funding for infrastructure teams.
Re:Ask HN: What is the best code base you ever worked on? by wmanley on Saturday June 29, 2024 @09:56AM (#40830602)
I’d love to see something like that applied to a project like Debian. The tools already exist. The cost of switching is too great, and you’d need everyone to learn your new system before you’d see the benefit.

I wrote a bit about this here: https://blog.williammanley.net/2020/05/25/unlock-software-fr...

I understand that nix have made some progress in this direction, but I don’t know any more than that.

Re:Ask HN: What is the best code base you ever worked on? by lesuorac on Saturday June 29, 2024 @06:50PM (#40833820)
millions sounds like a lot but it's like just 3 employees.

To quote broccoli man, "i've forgotten how to count that low" [1].

[1]: https://www.youtube.com/watch?v=3t6L-FlfeaI

Re:Ask HN: What is the best code base you ever worked on? by robertsdionne on Friday June 28, 2024 @02:49PM (#40823788)
Cannot overstate.
Re:Ask HN: What is the best code base you ever worked on? by musiciangames on Saturday June 29, 2024 @02:40AM (#40828318)
(Aside). To expand slightly, what robertsdionne is highlighting is the changing usage of this expression. In its original sense, e.g an issue is so important that it is impossible to overstate its importance. It is now increasingly used the other way around.

Old me would have said it’s used wrongly, but this happens all the time with language. Especially things being used in the opposite of their original sense, e.g. inflammable for flammable.

Re:Ask HN: What is the best code base you ever worked on? by smcameron on Saturday June 29, 2024 @07:34AM (#40829587)
In my mind, "cannot overstate" always meant "impossible to overstate", but I think some people interpret/intend "cannot understate" to mean something like "must not understate". I don't know if that's really what they're thinking, but it is how I make sense of it. I have come to just avoid such constructions.

Edit: reminds me of an ancient SNL skit with Ed Asner in which he's a retiring nuclear engineer and as he heads out the door he says to his incompetent co-workers "Just remember, you can't put too much water in a nuclear reactor".

Re:Ask HN: What is the best code base you ever worked on? by deanishe on Saturday June 29, 2024 @09:22AM (#40830301)
> opposite of their original sense, e.g. inflammable for flammable

Inflammable was never the opposite of flammable. Those word have always been synonyms. The opposite was always non-flammable.

Re:Ask HN: What is the best code base you ever worked on? by kridsdale3 on Friday June 28, 2024 @07:50PM (#40826613)
I dunno man, I work at google and this comment feels like circlejerk. It's not held to THAT high a standard. We absolutely commit janky MVPs and iterate.
Re:Ask HN: What is the best code base you ever worked on? by elevatedastalt on Friday June 28, 2024 @08:34PM (#40826869)
He is referring to the codebase itself, not individual projects or CLs.
[dead]
Re:Ask HN: What is the best code base you ever worked on? by elevatedastalt on Monday July 01, 2024 @02:06AM (#40843001)
While Google is a monorepo, that doesn't mean that every part of the codebase is equally critical.

People don't yolo submit CLs to core library components for example.

OTOH submitting somewhat hacky code to a new project while you iterate on it doesn't harm the rest of the code base that much since very little will depend on it.

Re:Ask HN: What is the best code base you ever worked on? by simoncion on Friday July 05, 2024 @05:53AM (#40881360)
Okay, sure.

How does this comment address any parts of my statement?

I'll even quote what might be the most important part for you:

> If your claim is that "Well, if you look at the codebase AS A WHOLE, there's absolutely no iteration and shitty prototypes, it's all designed right from the start."... well, I can't see any way that codebase came into existence without being built up by individual projects and changesets.

Re:Ask HN: What is the best code base you ever worked on? by remram on Saturday June 29, 2024 @12:02PM (#40831513)
He is referring to the codebase not the code?
Re:Ask HN: What is the best code base you ever worked on? by reverius42 on Tuesday July 02, 2024 @08:24AM (#40855927)
I think they are referring to the developer experience of working in the codebase, rather than the quality of the code.
Re:Ask HN: What is the best code base you ever worked on? by kichimi on Saturday June 29, 2024 @01:56AM (#40828181)
I think skill is also an issue here, in both directions. I have worked with a company that followed the opposite of move fast and it just turned into a 'who is the most correct' and 'what is the most elegant code' competition. We didn't push out a single new feature in the three years i'd worked there at that point. There was so much focus on code that we gave almost no time to business requirements.

The wider implication of this was that the number of tickets we got dropped dramatically, because users knew they'd never be resolved anyway.

Balance is key.

Re:Ask HN: What is the best code base you ever worked on? by inoffensivename on Friday June 28, 2024 @02:38PM (#40823652)
I honestly can't tell if this comment is sarcastic...

google3 is a quagmire and it's getting worse by the day

Re:Ask HN: What is the best code base you ever worked on? by ignoramous on Friday June 28, 2024 @04:50PM (#40825151)
Well, first impressions:

  It is part of our human condition to long for hard lines and clear concepts. When we have them we have to either face the fact that some realities elude them, or else bind ourselves to the inadequacy of the concepts.
https://fs.blog/impressions-are-schematically-determined / https://archive.is/F8uPE
Re:Ask HN: What is the best code base you ever worked on? by thwd on Saturday June 29, 2024 @06:33AM (#40829222)
Agreed. Once long (10+ years) ago, google3 may have been peak codebase. Nowadays, not so much.

Edit: I guess it also depends at what level of abstraction you work. High: can be easy breezy. Low: oh boy.

Re:Ask HN: What is the best code base you ever worked on? by phreeza on Saturday June 29, 2024 @03:03AM (#40828417)
I agree but would add that within the codebase there are also vastly different experiences. The search ads serving stack for example is phenomenal, it is >10 years old, very complex and gets contributions from hundreds of engineers every week, yet it is quite easy to understand what is going on anywhere and it has great performance. But I also had to work with other code which had been through 3 rewrites, none of which had ever been totally completed, so there were overlapping paradigms everywhere and working with it was just a nightmare. Tests never caught anything leading to several post mortems.
Re:Ask HN: What is the best code base you ever worked on? by lokar on Saturday June 29, 2024 @10:48AM (#40831007)
It was certainly great up to like 2015, perhaps later?

You could spend all day finding fun code to read.

I always like the main signal (eg sigsev) handler.