Пропустить навигацию
How did Google refactor 250M lines of C++ code, pre-AI, what happened when Search could no longer…
0:00 / 1:41:17

How did Google refactor 250M lines of C++ code, pre-AI, what happened when Search could no longer…

Gergely Orosz

@GergelyOrosz373 тыс. подписчиков

Открыть в X
584 отметки «Нравится»СкачатьОригинальный пост

94 648 просмотров

How did Google refactor 250M lines of C++ code, pre-AI, what happened when Search could no longer ship on the regular cadence due to regressions, and why is it time to completely redo the CS curriculum? With Titus Winters. Timestamps: 00:00 Intro 07:01 Getting hired by Google 09:48 Finding his niche at Google 14:32 Why Google made testing mandatory 17:45 Why new engineers fear making mistakes 20:40 Abseil: C++ foundations at Google 23:09 Google’s massive C++ refactoring 30:48 AI for rewrites 39:07 Software Engineering at Google: the book 43:10 Google’s readability reviews 47:18 Why teams still matter 52:41 Psychological safety 58:17 Layoffs and culture 1:02:11 Measuring developer productivity 1:11:17 Rethinking CS education 1:22:56 What new grads should learn 1:32:08 Titus’s ideal software engineering curriculum 1:36:27 Advice for breaking into tech 1:38:35 Book recommendation Brought to you by: • turbopuffer – vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. • Linear – one of the big challenges for us devs is the sheer amount of code to review. Linear Diffs is a new feature to review PRs inside of Linear, with all the context in one place. It also supports stacked PRs. • WorkOS – WorkOS built Airlock, the authorization layer for AI agents. It evaluates every request against the agent’s intent + your rules and either allows it, denies it, or routes it to a human. Three interesting details: 1. Google made automated tests mandatory after Search could no longer ship regularly. Around 2007, Search, the flagship product, was unable to ship at a monthly cadence any more, and the best they could ship to production was quarterly. Almost every change at Google touched Search’s code, even things like a change to Gmail. To clamp down, Google, as an org, mandated that every change was to be accompanied by a test. Over time, Search returned to its former higher cadence. 2. Google’s readability program might have been the largest educational program ever in tech. To make a code change at Google, two people need to sign off that change through a code review: a) An “owner” of the file/project: someone on the team with domain knowledge b) A “readability” reviewer: an engineer certified to be a “readability” expert in the given language that the change was made in Google’s first engineer, Craig Silverstein, walked each new dev hire through their first change. Java teams turned this approach into mentoring, where experienced reviewers were assigned to review all changes in a round-robin fashion. And soon enough, a formalized readability program was built for all languages. When Titus left Google three months ago, 10,000+ engineers were enrolled in readability at any given time. Has there ever been a bigger engineering “classroom” anywhere else? 3. Burn down the US undergrad CS curriculum (most of it) Titus was the only working engineer on the steering committee for the ACM/IEEE/AAAI CS curriculum guidelines in 2023, and believes the curriculum is hopelessly out of date. He accuses it of not having altered substantially since around 2000, while the industry has. Testing and verification are cited as mattering a lot more for new joiners, but they are absent from the curriculum. Unless major changes are made to make it relevant, computer science enrollment could fall and software engineering programs that focus on practical dev skills will be attractive to students – this is Titus’s forecast.

30 комментариев

Комментарии из оригинального поста в X (Twitter)

  • Фото профиля ¯\_(ツ)_/¯

    @SeanTAllen

    @TitusWinters Oooo Titus. Need to watch this one for sure for sure.

    2 отметки «Нравится»

  • Фото профиля Pamela Fox

    @pamelafox

    @TitusWinters I loved earning my readability badges. I got them at a time when my technical abilities were being questioned due to DevRel being associated with marketing, and I wanted proof of my abilities. I also went on-call around that time. Both were great learning opps.

    1 отметка «Нравится»

  • Фото профиля Marcos Placona

    @marcos_placona

    @TitusWinters 14:32 then 23:09 is the order I'd watch it in. Google could rewrite 250M lines of C++ because testing was mandatory first, and that's the same thing I need before I let Codex or Claude Code touch half a repo.

    1 отметка «Нравится»

  • Фото профиля Matei

    @BanfiMatei

    pre AI yeah but Google was already pretty automated. their monorepo paper in 2016 had 25,000+ engineers doing about 16,000 commits a typical workday, and another 24,000 coming from automated systems so more than half the commits werent from ppl even back then. curious how much of the C++ refactor rode on that

  • Фото профиля viral patel

    @viral1010

    @TitusWinters Agreed. Hiring more people rarely fixes a broken process. Fix how you ship and how you know quality first. Headcount after that.

  • Фото профиля setup_wizard

    @opsRich

    CS curricula were already considered outdated a decade ago. But their purpose was never to chase industry trends. It was to provide a deep understanding of computing fundamentals. Bootcamps, despite their reputation, have traditionally focused on preparing developers for the job market. CS education, meanwhile, has laid the groundwork for researchers, kernel developers, database engineers, and other highly specialized roles. It's a distinction many people overlook. And now, with AI reshaping the industry, we're facing another major shift in how we educate and train software professionals.

  • Фото профиля Kalu

    @kaluops

    @TitusWinters the pre-ai part is the interesting bit, google split huge changes into many small reviewable ones, that's the same shape agent refactors need now

  • Фото профиля Berwin Singh

    @berwin_singh

    @TitusWinters Does Titus think agents would've made the 250M line refactor much faster, or were the regressions always the slow part

  • Фото профиля Om Londhe

    @theomlondhe

    @TitusWinters the part that always gets me is it only worked because everything sat in one repo with tests people actually trusted. at most companies a big rename means chasing twelve teams for approvals

  • Фото профиля Golam Kabir

    @golamkabir

    @TitusWinters The Search cadence part is the real story. Once regressions slow your releases, every change gets bigger and riskier, and it compounds.

  • Фото профиля Jon Cheney

    @cheneypiano

    @TitusWinters The redo-the-CS-curriculum part is what I want to hear. What do you even teach first when AI writes most of the code? My guess is debugging and judgment.

  • Фото профиля Muhammad Atif

    @atifatpl

    @TitusWinters The readability gate is the part that stopped scaling. Across our teams diff volume jumped this year, the pool certified to approve it did not.

  • Фото профиля Louie Mota

    @LouieMota88

    @TitusWinters honestly the readability reviewer is the part i'd copy now agents get the logic right way more often than they write something i can still follow 2 weeks later

  • Фото профиля Raúl Nogales 🇪🇸🇺🇸

    @raulnogales

    @TitusWinters The detail that stays with me is testing becoming mandatory only after Search stopped shipping on cadence. That sequence matters now. Teams want agents writing far more code before they have built the tests that would let them trust any of it, human or machine written.

  • Фото профиля Max Kanat-Alexander

    @mkanat

    @TitusWinters Yes!! @TitusWinters is the best people.

  • Фото профиля Dr. Jerry A. Smith | Agentic AI & Eng. | Author

    @drjerryasmith

    @TitusWinters Google's 2007 fix is the one I'd copy for coding agents: no change merges without a test, and the test has to fail on the old code before it passes on the new. Agents made writing code cheap. The test is now the part of the change that tells you whether it works.

  • Фото профиля Raghu

    @ragzoi

    @TitusWinters google's large-scale change tooling ignores recently flaky tests on automated submits, since a machine-generated refactor earned more trust than a flaky test. swe at google admits a regression can then only show up as that test going from flaky to failing

  • Фото профиля Johnny Levai

    @johnnylevai

    @TitusWinters This is such a good assessment. General CS skills and diplomas are less valuable than they used to be. My advice to CS students: build and deploy your ideas to production. Don't wait until you graduate. You need to get ahead of the pack ASAP

  • Фото профиля Adam P

    @AdamPrime20261

    @TitusWinters big refactors are mostly a people problem wearing a compiler costume

  • Фото профиля Stephen Hewitt

    @StephenBuildsAI

    @TitusWinters refactoring 250M lines of C++ without breaking Search is the real benchmark. every agent that migrated a todo app this week should be graded against it