Skip to content
← Back to YouBlog

Published article

Partial understanding of a codebase beats full mastery

Drafted with AI from the video "Stop Pretending You Understand Your Codebase", then reviewed and published by Gustavo Miranda.

Partial understanding of a codebase is the normal condition of serious software work, not a failure. No single engineer, and often no single team, can hold a large program in their head. Sean Goedecke's essay argues this is fine, and Theo's September 2026 video agrees. What matters is whether people can find the right place fast and change it safely.

What does partial understanding of a codebase actually mean?

Partial understanding of a codebase means holding a correct model of the flows you touch while accepting that most of the system stays opaque. Sean Goedecke's essay In defense of not understanding your codebase argues this is the best available state in large systems, not a compromise or a failure.

The claim is scoped to scale. Goedecke contrasts small codebases with low-turnover teams, such as the Redis database project or a game like The Witness, against large codebases with high turnover, such as Google's web search backend or GitHub itself. The first group tends to say you must understand everything. The second group tends to say you cannot, so you do the best you can in your local area.

Theo, a TypeScript-focused developer who publishes on the t3.gg channel, read the essay on camera in a September 2026 video and agreed with most of it. He added one adjustment: depth of understanding should vary by location. You should know how the major pieces fit together before changing an isolated section, even if you never read the internals of those pieces.

The stakes are practical. Engineers who treat full comprehension as the entry requirement spend months reading instead of shipping. Engineers who accept partial models learn to trace the exact path a change will travel and verify it with tests.

Why Peter Naur's theory-building argument goes too far

Peter Naur's 1985 paper "Programming as Theory Building" argues the real product of programming is a team's shared theory of the program, which code and documentation can only partly capture. Goedecke accepts the diagnosis and rejects the prescription: that a program whose theory is lost should be scrapped and rebuilt by a new team.

Theo summarized Naur's position on camera: if developers lose the code they can rewrite it easily, but if a team experiences complete turnover and loses its understanding, the same code becomes hard to make sense of. Naur's remedy was to discard the existing program and let a new team solve the problem from scratch.

Goedecke gives two reasons this fails at scale. First, large systems with real users accumulate thousands of edge cases and quirks that no fresh team can reimplement. Second, abandoned systems get revived constantly, and engineers do rebuild a workable theory from the code by tracing one flow end to end and branching out carefully.

The scale difference matters. Naur's first example of a large program was a 200,000-line industrial monitoring system, and his second was a compiler. GCC, the GNU Compiler Collection, was roughly 100,000 lines in its first 1987 release and over 14 million lines by 2015, per Goedecke's essay. A program that size cannot be re-derived from a fresh start.

Why rewriting from scratch usually fails

Rewriting a large system from scratch usually fails because accumulated edge cases and user-specific patches live only in the old code. Goedecke's rule is that a successful rewrite starts by carving the existing codebase into small isolated chunks and replacing them one at a time, which requires the ability to change the old system first.

The comic example Goedecke links, a bug report about a CPU no longer overheating when a user holds the spacebar, is fictional, but the pattern is real. Someone wired a workflow to an unintended side effect of the system. A rewrite that does not preserve that side effect breaks a paying user.

Theo's own rule is stricter than he expected to be. He told viewers he usually starts such projects by working in the existing codebase first, long enough to learn how the team works and what actually hurts. Engineers who announce a Rust rewrite without fixing the original first get grouped with people who never looked.

Compilers are the friendlier case. Verifiable inputs and outputs allow brutal end-to-end tests, which is part of why compiler rewrites can be justified. User-facing products rarely offer that same testability, because expected behavior includes formatting, accessibility, and data access patterns that no test suite fully captures.

The real-world evidence: abandoned codebases get revived

Abandoned codebases get revived all the time in large companies, and engineers rebuild working knowledge from the code rather than waiting for an original author. Goedecke describes taking ownership of unfamiliar systems, tracing one end-to-end flow, and expanding from there. The essay reports this as his own experience inside large engineering organizations.

Theo offered a concrete example from his career at Twitch. A full-stack engineer he considered among the strongest at the company hit type errors when calling a GraphQL query from the client. The fix was running the schema generation command, a step he had never needed because he had never defined a query on the backend and called it on the frontend in the same task.

The lesson is that even top performers operate with gaps. Effort spent memorizing everything is effort not spent shipping. A well-structured codebase reduces the cost of those gaps because the right place for a change is findable without a human guide.

Goedecke's related essay, which Theo also referenced, is titled Nobody knows how large software projects work. The shared claim is that modern systems exceed the memory capacity of any individual or team, so partial, sometimes wrong models are the operating condition.

How partial understanding changes with AI coding agents

AI coding agents start every session with no memory of the last one, which makes them a permanent high-turnover teammate. Theo's framing is that each new agent thread is close to a fresh developer with strong general ability and zero project history, so the codebase itself has to carry the context.

This raises the bar on structure. If the only person who knows why a module exists is a human who remembers, an agent cannot find the right file and a new hire cannot either. Theo described a current project, porting the T3 Code mobile app to SwiftUI, where he had not read a line of the generated Swift but could steer it using his knowledge of the data flow and failure cases from the original system.

Goedecke treats language models as one trade-off among many rather than a straightforward harm. Large language models can make it harder to build a detailed mental model while making it faster to build a partial model through targeted questions. That is a real change in how engineers ramp up on unfamiliar code.

The caveat is that generated code still needs review. Partial understanding plus an agent is a workflow, not a guarantee, and the engineer remains responsible for the change that ships.

Which engineering practices trade away full comprehension

Several ordinary engineering practices reduce any one person's grip on the codebase, and Goedecke argues none of them are wrong. Each one buys something a business or a team needs, which is why theory building is one value among many rather than a default priority.

The list, as Goedecke sets it out and Theo walks through:

  • Other people writing code in the codebase you work in.
  • Legally required features such as accessibility and data protection.
  • Colleagues quitting, changing teams, or taking vacations.
  • Security-driven upgrades to software versions and dependencies.
  • Adding any third-party library at all.

Goedecke also separates pure engineering, where the goal is the most correct technical solution, from impure engineering, where the goal is solving a real problem by a deadline. Paid product work is mostly the second kind, and pure engineers often dislike that. Theo said this framing put words to a contradiction he had felt for years.

How to work effectively without full understanding

Working effectively without full understanding means tracing one flow end to end, making a small verified change, and expanding your model outward from there. Goedecke describes this as the practical alternative to waiting for someone with complete knowledge to hand you the answer.

A workable sequence for an unfamiliar codebase:

  1. Pick one user-visible behavior and trace it through every layer it touches, from the entry point to the storage call.
  2. Write down or test the boundaries you discovered so the knowledge survives the next session, whether the next session is yours or an agent's.
  3. Make one small change inside that traced path and watch which tests fail.
  4. Expand into the adjacent modules only after the first change ships cleanly.
  5. When you are unsure, make the most educated guess available and own the consequence instead of blocking on certainty.

Tooling can carry part of the load. Theo credited TypeScript's type checker with removing the mental work of verifying argument types at every call, which freed attention for design decisions. The same logic applies to linters and test suites: anything that automates a tedious check is worth adopting as long as it does not lower your overall understanding of the system.

What this means for junior engineers

Junior engineers struggle most with partial understanding because their first jobs replace codebases they wrote with codebases that existed before they arrived. Goedecke's argument gives them a realistic target: learn the flows you are assigned, and treat total recall as optional.

The transition is jarring. In personal projects you own every line, so questions have obvious answers. In a large company the first few weeks involve guessing, checking, and asking questions that feel basic. That experience is normal and does not indicate a bad hire or a broken onboarding process.

Structure helps more than memorization. A codebase where the right place for a change is easy to find lets a new engineer contribute within days. A codebase that depends on tribal memory forces months of shadowing. The second kind is the one an agent will also fail to navigate.

FAQ

Is it bad if I do not understand my whole codebase?

No, in large systems it is expected. Goedecke argues partial understanding is the best any engineer can achieve at that scale, and the useful skill is tracing the flows you touch accurately rather than memorizing everything.

What is Peter Naur's theory building argument?

Naur's 1985 paper argues a team's shared understanding of a program is the real product, and that losing it makes the code hard to use. Goedecke agrees understanding matters but rejects Naur's conclusion that a lost program should be scrapped and rewritten from scratch.

Do AI coding agents change the case for partial understanding?

They intensify it. An agent starts every session with no history, so a codebase that only works when a human remembers why it is that way will slow both agents and new hires. Clear structure and tests matter more, not less.

When is a full rewrite justified?

Usually when the existing system cannot be changed safely in small pieces and the domain has verifiable inputs and outputs, as with compilers. Goedecke's rule is that successful rewrites replace isolated chunks of the old system one at a time.

How do I start on an unfamiliar codebase?

Trace one end-to-end flow, identify its boundaries in tests or notes, make one small change, and expand outward. Goedecke describes this as how engineers rebuild a working theory of an abandoned system without the original team.

What is the difference between pure and impure engineering?

Goedecke separates pure engineering, where the goal is the most correct technical solution, from impure engineering, where the goal is solving a real problem by a deadline. Paid product work is mostly the second kind, and pure engineers often dislike that.

Which common practices reduce full comprehension of a codebase?

Other people writing code, legally required features, colleagues quitting or changing teams, security-driven upgrades, and adding third-party libraries all reduce any one person's grip on the codebase. Goedecke argues none of them are wrong because each buys something a team needs.

How does TypeScript help engineers work with partial understanding?

Theo credited TypeScript's type checker with removing the mental work of verifying argument types at every call. That freed attention for design decisions, even though it meant he no longer introspected every function call.

Why is the ability to reason locally about code considered a core goal of computer science?

Goedecke's essay quotes a commenter who points out that the ability to reason about code locally with partial understanding has been a core goal of computer science from the beginning. It allows engineers to make changes without holding the entire system in their head.

Turning a long discussion into a readable article

The conversation above covers a lot of ground: a 1985 paper, a 14-million-line compiler, a GraphQL generation step at Twitch, and a mobile port steered by failure cases rather than source reading. A video can hold that much because a presenter carries the transitions. A written article has to earn each one with a heading and a clear answer.

Gustavo Dev Doido, who publishes programming commentary in Portuguese, is one example of a creator whose material lives mainly in long video form. The same is true for most conference talks, interview series, and technical discussions: the ideas are useful, but they are locked inside a format that search engines cannot index and readers cannot skim.

YouBlog turns that situation around. Paste a YouTube URL, let the tool transcribe the video, and generate a structured article from it. The transcript becomes headings, paragraphs, and an FAQ that a reader can scan in minutes and an answer engine can quote.

If you have a video where the argument matters more than the runtime, the pipeline is short: a YouTube link goes in, a transcript is produced, and an article comes out the other side for you to review and edit before publishing.

Readers who want to see how this works in practice can start with CrazyStack Typescript.

Source video

YouTube thumbnail: Stop Pretending You Understand Your Codebase

Source video

Stop Pretending You Understand Your Codebase

Create from this video

This article was created automatically from a new video.

Automate my channel

Turn your YouTube videos into articles

Built for creators with a backlog and no editor on staff. This page started as a video. YouBlog drafts from the transcript, you review every word, then publish on a first-party /p/{slug} page. Nothing goes live until you publish it.

Turn your videos into articles

Published with YouBlog