Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Part 125 min · narrated · preview

Written summary

  • Chapter 1: The Broken Window...--The first time you saw a broken window in an abandoned building, you probably thought nothing of it.
  • They might not be made of glass, but their effect is identical.A poorly named variable that everyone copies because "that's what the last person did."
  • This is a psychological and sociological fact about software development, confirmed by decades of experience across thousands of teams.
Read along — the full text

Chapter 1: The Broken Window...--The first time you saw a broken window in an abandoned building, you probably thought nothing of it. A single pane of glass, shattered by a stone or a stray kick. But criminologists have known for decades that a single broken window, left unrepaired, is not a symptom of decay—it is the cause. Within weeks, more windows will break. Graffiti will appear. Trash will accumulate. Soon, the building becomes a magnet for vandals, drug users, and arsonists. The neighborhood declines, property values collapse, and families move away. All because one broken window signaled, with absolute clarity, that no one is in charge here.Your codebase has broken windows too.

They might not be made of glass, but their effect is identical.A poorly named variable that everyone copies because "that's what the last person did." A commented-out block of code that no one remembers deleting. A function that started as ten lines, grew to forty, and is now an unreadable two hundred lines with six levels of nested conditionals. A build warning that has been ignored for so long that no one even sees it anymore. Each of these is a broken window. And each one silently, inevitably communicates to every developer who touches the codebase: Quality does not matter here. No one is watching. Do whatever you want.This is not a metaphor.

This is a psychological and sociological fact about software development, confirmed by decades of experience across thousands of teams. The single most important predictor of code quality is not the skill of the individual developers, not the choice of programming language, not the testing framework, not the project management methodology. The single most important predictor is whether the team collectively tolerates broken windows.Welcome to the pragmatic philosophy. It will change how you see every line of code you write, every commit you make, and every decision you take as a software developer.The False Promise of Perfect CodeBefore we go any further, we need to kill a myth that ruins more careers than any technical mistake.You have heard it from senior engineers in code reviews: "This isn't clean enough."

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in