Software Tools
Unix philosophy for people who didn't have Unix.
Kernighan and Plauger build a set of small, general programs in Ratfor — filters, a pattern finder, an editor, a formatter — and teach programming through them.
Raymond credits it with the line that controlling complexity is the essence of computer programming.
Central argument
Kernighan and Plauger set out to teach good programming by writing good programs, and chose tools as the material: programs that solve a general problem once so that nobody has to solve it again. Chapter by chapter they build filters, pattern matching, sorting, an editor and a formatter, and each one is written to be read and reused. The book is the Unix tool philosophy made portable, expressed in Ratfor so that it could run on almost any machine of its day.
Critique
Ratfor and the hardware assumptions of 1976 make the code hard to follow today, and the reader has to translate constantly. The book also assumes that a well-designed tool will be reused by people able to combine it, which holds for a lab of skilled programmers and holds less well for large organisations, where knowing which tool exists, and trusting it, is the harder problem.
Why it matters for product
For a product director, the book is an early and concrete case for building platforms out of small, general pieces instead of one-off solutions. Its question — what should be solved once, as a tool, and what should stay specific — is the same one behind decisions about internal platforms, APIs and shared services, and now behind which tools an AI agent should be given.
- The UNIX Programming Environment — Brian W. Kernighan & Rob Pike
- The Elements of Programming Style — Brian W. Kernighan & P. J. Plauger
- The Art of UNIX Programming — Eric S. Raymond
- The Practice of Programming — Brian W. Kernighan & Rob Pike
- The Second-System Pit of Failure — Terry Coatta & Craig Smith
- White-collar sweatshops — Dylan Gottlieb