Skip to content

Broken Windows Theory

Easy — everyone uses thisArchitecture

ELI5 — The Vibe Check

The broken windows theory in code says that once one piece of bad code exists, more bad code follows. If there's already a hacky workaround in the file, the next developer thinks 'well, it's already messy' and adds another hack. One TODO comment becomes fifty. One skipped test becomes no tests. Entropy wins if you don't fix the first broken window.

Real Talk

Applied to software from criminology, the broken windows theory suggests that visible signs of code neglect (dead code, skipped tests, ignored warnings) encourage further neglect. Teams that maintain high code quality standards find it easier to keep them, while codebases with existing problems accumulate new problems faster. It's the theoretical basis for 'boy scout rule' (leave code cleaner than you found it).

When You'll Hear This

"Fix that lint warning now — broken windows theory." / "The codebase has so many broken windows that nobody bothers writing tests anymore."

Made with passive-aggressive love by manoga.digital. Powered by Claude.