STOP-PRETENDING COURSE GUIDE

Stop Pretending You Understand Your Codebase

A chapter-by-chapter readback of the free course by Theo on Theo - t3․gg.

Length28:36
Chapters24
Modules7
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

Theo argues that full codebase understanding is a myth at any meaningful scale — the best engineers work from a partially correct theory and delegate verification to compilers, linters, and now LLMs. The sharp angle: maintaining a perfect mental model is one trade-off among many, not the definition of good engineering.

Who it's for
Read this guide if
  • You feel guilty about not knowing every file in your large codebase
  • You're evaluating rewrites versus incremental fixes on legacy systems
  • You use AI coding agents and want a principled take on theory building
  • You've moved from a small codebase to big-company scale and struggled
Skip ahead if
  • You want a hands-on tutorial with code walkthroughs
  • You're looking for a vibe-coding defense or attack piece
  • You expect a deep dive on one specific tool like Depot or Claude
In brief
  • 1716 seconds (~29 minutes) of commentary on Sean Goedecke's essay
  • 16 chapters grouped into 7 chronological modules
  • Mentions Depot (sponsor, up to 40x faster Docker builds), GCC, Twitch, Cursor
  • Level: intermediate — assumes experience working in teams and large repos
  • Based on the article 'In Defense of Not Understanding Your Codebase'

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

The Myth of Full Understanding

The opening establishes the video's central claim: nobody fully understands large codebases, and that's fine. Theo reframes 'best programmer' as someone with architectural intuition — quoting the idea that a good codebase is one where people can quickly find the right place for something, not one everyone has memorized.

0:00

Introduction

Theo opens with the provocative thesis that if you completely understand all the code in your projects, you're probably not working on anything important. Bigger and more critical systems — operating systems, the platforms you use daily, Postgres — are never fully understood by any single person. The episode is a commentary on a Sean Goedecke article arguing that partial understanding is not a failure but the realistic norm. Theo frames the episode around accepting this honestly instead of pretending otherwise.

0:35

What the Best Programmers Actually Have

The 'best programmers' are not geniuses who memorize every file, Theo explains. What distinguishes them is intuition built from higher-level architectural understanding, which lets them place new code well — both for themselves and for less familiar developers who will touch it later. This reframes codebase quality: a good codebase isn't one where everyone knows everything, but one where people can quickly find the right place for something. Understanding where things belong matters more than knowing every line.

1:31

Context: Vibe Coding and Wider Spectrums

Theo situates the article as a response to discourse around vibe coding — the practice of shipping code without knowing where anything lives — and he explicitly does not defend that approach. Instead, he reflects that his own awareness of his codebases now spans a wider spectrum than ever: some parts he understands better than before, while more parts he doesn't understand at all. This honest self-assessment sets up the rest of the video's argument about varying depth of understanding.

Sean's Framing and Naur's Theory Building

This module introduces Goedecke's split between small-codebase and large-codebase teams, then Peter Naur's 1985 'Programming as Theory Building' paper. The through-line: code is a byproduct of a mental theory that docs can't capture — which becomes newly urgent now that AI agents act as developers with total turnover.

4:15

Small Teams vs Large Teams

Theo walks through Sean's framing: small-codebase, low-turnover teams like Redis or the makers of The Witness insist you must understand everything, while large-codebase, high-turnover teams like the Google web search backend or GitHub say partial understanding is the best achievable. The problem, Sean argues, is that the first group is massively overrepresented in online software engineering discussions — which skews what engineers believe good practice looks like. Theo broadly agrees with the partial-understanding conclusion.

5:55

Naur: Programming as Theory Building

Theo introduces Peter Naur's paper 'Programming as Theory Building,' which argues the code itself is a byproduct — the real product is the programmer's theory of the program, an intuition that cannot be fully captured in code or documentation. Theo finds this compelling and immediately connects it to a modern question: how do you set up codebases so AI agents can work in them effectively? He notes that an agent starts each thread without any of that captured theory.

6:57

Agents Have 100% Turnover

The key implication for the AI era, per Theo: agents have effectively 100% turnover, because every new thread begins with a fresh developer that lacks any historical knowledge of the project. High turnover was traditionally the killer of codebase understanding, yet agents remain capable — so making them effective is a fun and rewarding engineering challenge. This inverts the usual assumption that turnover destroys productivity, and sets up the following disagreement with Naur about rewrites.

Rewrites, Wicked Features, and Hallucinations

Here Theo stages a debate: Naur says a program whose theory is lost should be rebuilt from scratch, but Sean counters that large systems hide thousands of quirks no rewrite can replicate. Theo's concrete cautionary tale — a Rust rewrite pitched via a hallucinated Gemini rant — shows how irresponsible rewriters give the whole practice a bad name.

7:54

Naur Says Scrap and Rebuild

Following Naur strictly, Theo explains, means an uncomfortable conclusion: theory shouldn't be reconstructed from existing code. Instead, Naur recommends scrapping the program and rebuilding from scratch, letting a new team build a new theory around the new implementation. Theo presents this position faithfully before pivoting to Sean's forceful rebuttal, which argues that Naur is dead wrong for software that already has real users — a tension the next chapters unpack with concrete examples.

8:52

Wicked Features and Quirks

Sean's counterpoint, as Theo relays it: large systems with users accumulate thousands of weird cases and quirks that cannot be re-implemented, even by teams intimately familiar with them. He lists examples — new user types, on-prem SaaS support, sharding across many databases, strong data locality, internationalization. Theo Illustrates with the famous XKCD joke changelog where version 10.17 merely fixed CPU overheating caused by holding the spacebar, showing how hidden complexity accretes over time.

10:00

Patches and Chunked Rewrites

Patches written for specific users get wired deeply into a codebase, and if the person who understood them leaves, a fresh rewrite is unlikely to replicate them. Sean's remedy, per Theo: a successful rewrite starts by carving the existing system into small isolated chunks and rewriting one at a time — rewriting means changing the old system, not replacing it wholesale. Theo adds that despite his reputation for advocating rewrites, he always starts inside the existing codebase first to learn what works.

10:34

Fix Before You Rewrite

Theo elaborates his own practice: work on the existing codebase first to learn what works, what matters, and how the team operates — you should be able to contribute meaningfully before even considering a rewrite. He questions people who rewrite in Rust without ever having tried fixing the original, and notes AI hasn't changed this need for core understanding. The anecdote that follows — a hallucinated justification for rewriting VS Code and Cursor — shows the failure mode he wants to avoid.

11:22

The Hallucinated Rust Rewrite

Theo recounts a developer who justified rewriting VS Code and Cursor using a completely hallucinated Gemini 3.1 Pro rant — claiming each thread spawns a new Electron instance, which is fundamentally wrong. That person then plugged his own Rust alternative without understanding the actual problems. Theo argues most would-be rewriters resemble this example, and their carelessness hurts the reputation of people who rewrite responsibly, with real understanding of the system they're replacing.

Operating with a Wrong Theory

Even in huge companies that lose all familiar engineers, theory can be rebuilt by tracing one flow end-to-end — and AI makes that ramp-up far easier. Theo's punchline: in sufficiently large codebases everybody runs on an incorrect theory, proven by a top Twitch engineer undone by one never-run GraphQL generation command.

12:45

Reviving Abandoned Systems

Theo pushes back on Naur's scrap-it advice: abandoned systems get revived all the time, and in huge companies codebases routinely lose every engineer who knew them. Building a new theory is still possible — the method is to understand one flow end-to-end, then branch out with careful, incremental changes. AI accelerates this ramp-up considerably: while it lacks the project's historical knowledge, it has absorbed prior developers' outputs, which is often enough to reconstruct working intuition.

13:47

Everybody Has an Incorrect Theory

Theo states the video's key claim in Sean's words: in sufficiently large codebases, everybody operates with an incorrect theory of the program — even the best engineers harbor laughable misunderstandings. He then gives a vivid proof: a top full-stack developer at Twitch was blocked by type errors simply because he had never run the GraphQL generation command that pulls the schema and generates TypeScript definitions for the React code. Running it fixed everything instantly.

14:06

The Twitch GraphQL Anecdote

Expanding on the anecdote, Theo draws the lesson: nobody, regardless of seniority, can hold everything in their head. TypeScript exists precisely to free brain space by catching type errors automatically — you delegate checks to the compiler, type checker, linter, or now AI, and ship faster with fewer bugs. The condition is that your overall understanding doesn't decrease. This is the positive framing of partial understanding: tools absorb the verification work your theory used to do.

Scale Makes Theory Impossible

Theo grounds the argument in numbers: Twitch- and Amazon-scale codebases run to hundreds of millions of lines, and GCC grew from roughly 100k lines in 1987 to over 14 million by 2015. Against that curve, even Naur's own 200k-line examples were tiny — which is why rewrites of millions of lines are not straightforward.

16:42

Hundred-Million-Line Codebases

Theo connects the argument to Twitch- and Amazon-scale systems, where codebases reach hundreds of millions of lines. The hardest adjustment for new developers, he observes, is the psychological shift from knowing every line to accepting that knowing everything is impossible. He endorses Sean's article title 'Nobody Knows How Large Software Projects Work' as simply accurate: modern systems are too big for any individual or even a whole team to keep in their head.

17:09

Acting on Partial Information

Being effective means working with a merely partially correct theory of the system, Theo explains: you must make educated guesses and deal with the consequences rather than waiting for perfect understanding that will never arrive. He backs this with scale numbers — Naur's 1985 'large programs' were a 200k-line industrial monitor and a compiler, orders of magnitude smaller than today's systems. GCC alone grew from roughly 100k lines in 1987 to over 14 million by 2015, and rewriting one or two million lines is not straightforward.

19:14

Why Compilers Can Be Rewritten

Theo adds an important nuance: compilers are unusually easy to rewrite because their inputs and outputs are verifiable, enabling brutal end-to-end tests. That's part of why a bun-style rewrite in Rust could make sense. User-facing products are different — real user behavior and data formats cannot realistically be end-to-end verified during a rewrite, so the wicked-features problem dominates. He closes the segment noting theory building is one trade-off among many, and that LLMs are a double-edged sword in this equation.

Pure vs Impure Engineering

Theo argues it's silly to call anything that erodes your mental model 'bad' — legal compliance, colleague turnover, and dependencies do that too, and are obviously fine. Sean's pure-versus-impure engineer framing explains why maintaining a perfect theory is a trade-off like any other, and why that tension fuels toxic discourse.

20:11

Things That Worsen Your Understanding

Theo calls it silly to claim that anything interfering with your theory of the software must be bad. Shared codebases, legally required features like accessibility and data protection, colleague turnover and vacations, security-patch upgrades, and dependencies all degrade your personal understanding — yet none are bad choices. Maintaining a codebase theory is just one value among many, traded off against speed, legal compliance, politics, feature complexity, and platform support like iOS and Android.

21:32

Pure and Impure Software Engineers

Theo introduces Sean's 'pure and impure software engineering' framing: pure engineers solve technical problems perfectly — open source libraries, ideal game engines — while impure engineers solve real-world problems efficiently, like paid tech-company work on deadline. This lens, Theo says, explains solo-game-dev versus big-tech fights, why external hires fail, and why AI-assisted development works for some engineers and not others. Almost everyone prefers the accurate mental model — it's fun and feels like real engineering — but that feeling and value-creating work are nearly opposites, a contradiction Theo thanks Sean for articulating.

23:10

Why the Discourse Gets Toxic

The contradiction produces toxic discourse, Theo notes — pure-leaning engineers on Twitter attack impure developers. The same desire drives engineers toward solo open source side projects with small codebases they can fully understand, which is fine, but at work you're paid to adopt your employer's engineering values, sometimes writing slow code on purpose. Maintaining a complete codebase theory, Theo argues, belongs to the same category of trade-off — and dismissing it as mandatory misreads what the job actually is.

Community Reaction and the AI-Era Developer

This module follows how the wider community received Sean's ideas, from Lobsters tagging the post 'vibe coding' and HN commenters dismissing Sean as a Seth Godin-style 'vocabulary explainer', to a quoted tweet warning that AI code volume may force engineers to work in a 'mental labyrinth'. Theo closes by proving partial understanding works: he rewrote the T3 mobile app into SwiftUI without reading the ~60,000+ generated lines, steering by intuition from failure cases.

24:18

Lobsters and Hacker News React

Theo reviews the community response: on Lobsters, commenters noted that reasoning locally about code with partial understanding has been a core computer science goal from the start, and the post was tagged 'vibe coding' merely for briefly mentioning LLMs despite not being an AI post. On Hacker News, top comments demanded a 'this situation sucks' post, and another compared Sean to Seth Godin as a useless 'vocabulary explainer' — a comparison Theo strongly disputes, pointing out engineering posts simply don't perform well there.

26:15

The Mental Labyrinth

Theo cites a quoted tweet from Nick: you can't keep an entire program in your head, and if AI 10,000x's code volume, fully hands-off vibe coding becomes the default — engineers must work with imperfect information inside a 'mental labyrinth.' Theo closes the loop on Sean's own response to critics: knowing what tech leads and managers are talking about matters, and engineers who can't work with teams and users are worse than an LLM.

26:46

Rewriting T3 Without Reading the Swift

Theo gives his own proof of concept: he rewrote the T3 mobile app from React Native to SwiftUI without reading any of the roughly 60,000+ lines of generated Swift code. His steering intuition came from failure cases and deep knowledge of the original system, and the effort succeeded with only one or two unsolvable bugs, such as project selection for new threads. The example demonstrates working confidently with an imperfect theory in an AI-assisted workflow.

27:52

Conclusion: Be a New Developer Again

Theo wraps up: the AI era makes everyone feel like a new developer again, and that's genuinely fun — the workflows are rewarding and ship real software, as his SwiftUI rewrite shows. It's also scary and stressful, since the ground rules of understanding have shifted. His final advice is to lean in rather than resist, accepting that partial understanding plus strong tooling is the new normal for engineers working at any meaningful scale.

Moment by moment

TimeWhy it matters
0:35Reframes the 'best programmer' as intuition about architecture, not memorization of every file
6:57The key AI insight: agents have 100% turnover — every thread starts as a fresh developer
11:22The hallucinated Gemini rant justifying a Rust rewrite of VS Code — the cautionary tale
14:06A top Twitch engineer defeated by a never-run GraphQL generation command
26:46Theo's SwiftUI rewrite shipped without reading ~60,000 generated lines of Swift

Do this next

  1. Audit one flow in your codebase end-to-end this week, then branch out with careful changes to rebuild theory on unfamiliar areas
  2. List what your toolchain already verifies for you — types, lints, tests — and stop trying to hold those checks in your head
  3. Before proposing any rewrite, contribute a meaningful fix to the existing system first, as Theo recommends

Common questions

Is it actually acceptable to not understand your codebase?

Yes, according to both Sean Goedecke's article and Theo. Large systems like the Google search backend, GitHub, or Postgres are never fully understood by anyone. The key nuance Theo adds is that depth of understanding should vary by location: you should know how pieces fit together before making changes in your section, while accepting you can't know the whole system.

What is Peter Naur's 'Programming as Theory Building'?

It's a 1985 paper Theo discusses at length. Naur argues the code is only a byproduct — the real product is the programmer's theory of the program, an intuition that can't be fully captured in code or docs. Naur went further, suggesting that when a theory is lost, the program should be scrapped and rebuilt so a new team builds a new theory. Sean Goedecke strongly disagrees for large user-facing systems.

Why does Theo think Naur is wrong about rewrites?

Because large systems with real users contain thousands of weird cases and quirks — on-prem SaaS support, database sharding, internationalization, patches wired in for specific users — that can't be re-implemented even by familiar teams. Compilers are the exception, since verifiable inputs and outputs enable brutal end-to-end tests, which is why rewrites like bun in Rust can work.

How do AI agents change codebase understanding?

Theo's point: agents have 100% turnover — every new thread starts as a fresh developer with no historical knowledge, the situation that traditionally kills codebase theory. Yet agents still have prior developers' outputs to draw from, often enough. He demonstrates this by rewriting the T3 mobile app to SwiftUI without reading the ~60,000+ generated Swift lines, steering by intuition from failure cases.

What are 'pure' vs 'impure' software engineers?

Sean's framing, explained around 21:32: pure engineers solve technical problems perfectly — open source libraries, ideal game engines — while impure engineers solve real-world problems efficiently, like paid tech-company work on deadline. Theo says this explains solo-game-dev versus big-tech fights and why AI-assisted development clicks for some engineers but not others.

How big are the codebases discussed?

Theo cites Twitch- and Amazon-scale codebases at hundreds of millions of lines. He also gives GCC's growth: roughly 100k lines in 1987 to over 14 million by 2015, noting Naur's own 'large programs' — a 200k-line industrial monitor and a compiler — were orders of magnitude smaller than anything modern.

Does the video defend vibe coding?

No. Theo explicitly states he does not defend vibe coding — shipping code with no idea where anything lives. The article he covers was even tagged 'vibe coding' on Lobsters merely for briefly mentioning LLMs. His argument is narrower: partial understanding plus delegated verification (compilers, linters, AI) is legitimate, as long as your overall understanding doesn't decrease.

What tools and companies are mentioned?

Depot sponsors the video, claiming up to 40x faster Docker builds with users like PostHog, PlanetScale, and Inference, and offering 'Depot Claude' for running Claude in an isolated sandbox. Examples span Redis, The Witness, VS Code, Cursor, Twitch, GitHub, and GCC, plus the XKCD spacebar-heating changelog joke illustrating hidden complexity.

Spot a mistake?

Every chapter summary on this page is hand-checked against the video before publication, but errors can still slip through. If you spot a wrong timestamp, misattributed quote, or factual slip, please tell us.

More course guides