Ken Thompson: Why Deleting 1,000 Lines of Code Was Highly Productive
- Ken Thompson, co-creator of the Unix operating system and a foundational figure in computer science, reflected on his career in a recent interview, stating that one of his...
- Thompson, who developed Unix alongside Dennis Ritchie at Bell Labs in the late 1960s, emphasized that removing unnecessary code often led to clearer, more maintainable systems.
- The Unix operating system, first released in 1969, laid the groundwork for numerous modern computing platforms, including Linux and macOS.
Ken Thompson, co-creator of the Unix operating system and a foundational figure in computer science, reflected on his career in a recent interview, stating that one of his most productive days was when he deleted 1,000 lines of code. The remark, shared during a conversation with Computer Hoy, underscores a philosophy central to his approach to software development: simplicity and minimalism as drivers of innovation and system reliability.
Thompson, who developed Unix alongside Dennis Ritchie at Bell Labs in the late 1960s, emphasized that removing unnecessary code often led to clearer, more maintainable systems. His comment highlights a counterintuitive yet enduring principle in software engineering—that progress is not always measured by addition, but sometimes by subtraction.
The Unix operating system, first released in 1969, laid the groundwork for numerous modern computing platforms, including Linux and macOS. Its design principles—modularity, portability and the use of plain text for configuration—have influenced generations of software developers and shaped the architecture of contemporary operating systems, cloud infrastructure, and embedded devices.
Thompson’s contribution extended beyond Unix to the creation of the B programming language, which directly preceded Ritchie’s development of C. Together, their work established the foundation for much of today’s system-level software, from compilers to kernels. The portability of Unix, enabled by its implementation in C, allowed it to be adapted across diverse hardware platforms—a critical factor in its widespread adoption.
In the interview, Thompson also spoke about the collaborative environment at Bell Labs during that era, describing it as a place where experimentation was encouraged and failure was tolerated as part of the learning process. He noted that small teams working closely together could achieve significant breakthroughs without the overhead of large bureaucratic structures.
His perspective on code deletion resonates with modern software practices such as refactoring, technical debt reduction, and minimalist design. Contemporary movements like the Unix philosophy, which advocates for building simple, modular tools that do one thing well, continue to influence software development methodologies, including DevOps and microservices architectures.
Thompson’s insights remain relevant in an era of rapidly expanding codebases and increasing system complexity. His reminder that removing code can be an act of creation rather than destruction offers a valuable counterbalance to the pressure to constantly add features, particularly in safety-critical and high-reliability systems.
As of 2024, Thompson, now in his early 80s, continues to be recognized for his lifelong contributions to computing. He received the Turing Award in 1983 alongside Dennis Ritchie for their work on Unix and the C programming language. His legacy endures not only in the systems still in use today but also in the principles that guide how software is conceived, built, and refined.
