News for hackers. Stuff that matters.
Re:Ask HN: What is the best code base you ever worked on? by pradn on Friday June 28, 2024 @03:58PM (#40824621)
OWNERS files rarely get in the way - you can always send a code change to an OWNER. They are also good for finding points of contact quickly, for files where the history is in the far past and changes haven't been made recently.

Readability really does help new engineers get up to speed on the style guide, and learn of common libraries they might not have known before. It can be annoying - hell, I'll have to get on the Go queue soon - but that's ok.

Re:Ask HN: What is the best code base you ever worked on? by sawyna on Friday June 28, 2024 @05:05PM (#40825303)
This isn't true at all for OWNERS files. If you try developing a small feature on google search, it will require plumbing data through at least four to five layers and there is a different set of OWNERS for each layer. You'll spend at least 3 days waiting for code reviews to go through for something as simple as adding a new field.
Re:Ask HN: What is the best code base you ever worked on? by okdood64 on Friday June 28, 2024 @05:25PM (#40825447)
3 days for a new change on the biggest service on the planet? Not bad.
Re:Ask HN: What is the best code base you ever worked on? by tallowen on Friday June 28, 2024 @06:16PM (#40825880)
I agree that it could be worse! Facebook has significant (if not more) time spent and I found adding features to news feed a heck of a lot easier than adding features that interacted with google search. Generally a lot of this had to do with the number of people needed to be involved to ensure that the change was safe which always felt higher at Google.
Re:Ask HN: What is the best code base you ever worked on? by kridsdale3 on Friday June 28, 2024 @07:35PM (#40826497)
I have the same background: I find the code quality at G to be quite a lot higher (and test pass-rate, and bug report-rate lower) than News Feed, which was a total shit-show of anything-goes. I still hold trauma from being oncall for Feed. 70 bugs added to my queue per day.

The flip side is of course that I could complete 4 rounds of QuickExperiment and Deltoid to get Product Market Fit, in the time it takes to get to dogfooding for any feature in Google.

Re:Ask HN: What is the best code base you ever worked on? by codethief on Friday June 28, 2024 @08:26PM (#40826829)
I'm only an outside observer in this conversation but could it be that the review process (or the lack thereof) and the ease with which you can add new features has had an impact on the quality of the software?

The thing is, in my experience as a user Facebook (the product, not the former company) is absolutely riddled with bugs. I have largely stopped using it because I used to constantly run into severe UI/UX issues (text input no longer working, scrolling doing weird things, abysmal performance, …), loading errors (comments & posts disappearing and reappearing), etc. Looking at the overall application (and e.g. the quality of the news feed output), it's also quite clear that many people with many different ideas have worked on it over time.

In contrast, Google search still works reasonably well overall 25 years later.

Re:Ask HN: What is the best code base you ever worked on? by esprehn on Friday June 28, 2024 @10:34PM (#40827468)
There are pretty different uptime and stability requirements for a social product and web search (or other Google products like Gmail). When news feed is broken life moves on, when those products break many people can't get any work done at all.

One of Google's major cultural challenges is imposing the move slow and carefully culture on everything though.

Re:Ask HN: What is the best code base you ever worked on? by zeroonetwothree on Saturday June 29, 2024 @11:42AM (#40831366)
It’s not considered ok for newsfeed to break. It would be a massive issue that would command the full attention of everyone.
Re:Ask HN: What is the best code base you ever worked on? by esprehn on Saturday June 29, 2024 @12:28PM (#40831678)
And yet folks who are on call for it say things like this: https://news.ycombinator.com/item?id=40826497
Re:Ask HN: What is the best code base you ever worked on? by tallowen on Friday June 28, 2024 @05:47PM (#40825617)
I think I have heard similar things from other googlers and I think there might be two factors on why I think this:

- I worked on Google Assistant which was responsible for integrating many services. This meant I had to work with other peoples code way more regularly that many at google.

- I moved from FB to google - I'm not really sure how many people have had this experience. I think many of my colleagues at google found it surprising how many of the things they thought were unique to google actually also existed at FB.

At the end of the day, any of these processes have pros/cons but I think the cruft of having APIs that are a couple steps harder to evolve due to finding Readability/Owners for everything you touch just makes things slightly less cohesive and a trickier place to have a "good" codebase.

When I worked at FB, I would frequently rebase my code on Monday and find that, for example, the React framework authors or another smaller infra team had improved the API and had changed *every* callsite in the codebase to be improved. This type of iteration was possible in certain situations but was just much less common at google than at fb.

Re:Ask HN: What is the best code base you ever worked on? by snotrockets on Friday June 28, 2024 @06:41PM (#40826096)
> I think many of my colleagues at google found it surprising how many of the things they thought were unique to google actually also existed at FB.

Google workers are groomed to believe Google is the best, and hence they are too. A corollary of that, then, is that nobody else has it that good, when in fact, others sometimes have it better.

Re:Ask HN: What is the best code base you ever worked on? by kridsdale3 on Friday June 28, 2024 @07:34PM (#40826489)
I also made the move from FB to G and echo everything said above. Googlers have a massive superiority complex. In reality, it's naiveté.

My 2 cents: OWNERS is fairly useful, if only as a form of automating code reviewer selection. Readabilty is a massive drag on org-wide productivity. I have had diffs/CLs take MONTHS to be approved by every Tom Dick and Harry whose claws were added to my code and made me re-design whole project approaches, and they were only there because they're supposed to check if my new-lines are in the right spot for that language. I thought about quitting.

Re:Ask HN: What is the best code base you ever worked on? by wavemode on Friday June 28, 2024 @10:27PM (#40827450)
People really underestimate how much productivity drain there is in having a bad code review culture. One of the worst things about working at Amazon was that any feedback on a merge request, no matter how small, required you to request a re-review.
Re:Ask HN: What is the best code base you ever worked on? by snotrockets on Wednesday July 03, 2024 @04:46PM (#40869817)
It's not culture (organic), it's systems (planned): if you don't, on day zero, agree what code reviews should cover (and what not), then code reviews are a pissing contest first, and a useful tool second.

I noticed a lot of people don't understand both the limitations of code reviews, and what issues they can and should solve. Writing good critique (of anything, not just code) is hard, we don't train people to do it, and usually don't even regard this as something that needs training and understanding.

Re:Ask HN: What is the best code base you ever worked on? by ynx on Saturday June 29, 2024 @02:24AM (#40828251)
+1.

Going from FB to $REDACTED to Oculus was a pretty wild ride, there were a lot of different cultures, though I think generally speaking the best qualities filtered through.

(also, howdy former teammate)

Re:Ask HN: What is the best code base you ever worked on? by kridsdale3 on Saturday June 29, 2024 @04:16PM (#40833079)
(trying to recall unixname to human name mapping.....)
Re:Ask HN: What is the best code base you ever worked on? by elevatedastalt on Friday June 28, 2024 @08:29PM (#40826842)
Huh? Facebook has a lot of that infra because ex-Googlers built it there. It takes an insane amount of delusion to notice something common between a father and a son and say that the dad inherited it.
Re:Ask HN: What is the best code base you ever worked on? by snotrockets on Wednesday July 03, 2024 @04:49PM (#40869845)
QED
Re:Ask HN: What is the best code base you ever worked on? by pradn on Friday June 28, 2024 @09:11PM (#40827069)
No, we’re quite aware the world outside has been catching up. There’s even a famous doc by a senior director about it…
Re:Ask HN: What is the best code base you ever worked on? by snotrockets on Wednesday July 03, 2024 @04:48PM (#40869836)
The system still grooms Googlers to think they're better than though. Until that root cause would be fixed (which would have to be at a huge cost to Google, so no surprise it'd never be), nothing would change.
Re:Ask HN: What is the best code base you ever worked on? by pradn on Tuesday July 16, 2024 @11:05AM (#40977286)
In Google Cloud at least, we're quite aware we're not the market leader, so there's a pervasive humbleness. We're proud of certain technical achievements (ie: Spanner), but the world can catch up quickly (ie: CockroachDB, Foundation, CosmosDB, etc). This might be a departure from the feeling in older divisions of the company, haha.