"One of my most productive days was throwing away 1000 lines of code"
About this Quote
The intent is partly corrective. Early-career engineering culture rewards visible labor: commits, features, cleverness. Thompson's sentence smuggles in a harder lesson: code is a liability you agree to support. Every line increases surface area for bugs, security flaws, performance regressions, and future misunderstanding. Deletion is not defeat; it's design. The "productive day" is the day you reduce future cognitive load for everyone who will touch the system, including your future self.
There's also a quiet ethics to it. Throwing away work requires humility and a willingness to admit that yesterday's solution was overfit, premature, or simply wrong. In the Unix tradition - small tools, sharp interfaces, composability - the best engineering move is often subtraction: simplify an API, remove duplication, replace special cases with a general rule.
The subtext reads like a warning against code-as-ego. If you want to build software that lasts, you have to be willing to kill your darlings, even when they compile.
Quote Details
| Topic | Coding & Programming |
|---|---|
| Source | Later attribution: PHP in a Nutshell (Paul Hudson, 2005) modern compilationISBN: 9781449379124 · ID: dm2_jgULbBUC
Evidence:
... Ken Thompson ( one of the most highly respected Unix hackers in the world ) as saying , " One of my most productive days was throwing away 1000 lines of code . " Very true . Optimization is down to personal intuition , and is hard to do ... |
| Cite |
Citation Formats
APA Style (7th ed.)
Thompson, Ken. (2026, February 7). One of my most productive days was throwing away 1000 lines of code. FixQuotes. https://fixquotes.com/quotes/one-of-my-most-productive-days-was-throwing-away-126411/
Chicago Style
Thompson, Ken. "One of my most productive days was throwing away 1000 lines of code." FixQuotes. February 7, 2026. https://fixquotes.com/quotes/one-of-my-most-productive-days-was-throwing-away-126411/.
MLA Style (9th ed.)
"One of my most productive days was throwing away 1000 lines of code." FixQuotes, 7 Feb. 2026, https://fixquotes.com/quotes/one-of-my-most-productive-days-was-throwing-away-126411/. Accessed 19 Feb. 2026.



