Brian W. Kernighan Books
Kernighan is a computer scientist known for his work at Bell Labs and contributions to Unix, C, and AWK.
Known for: The Practice of Programming
Books by Brian W. Kernighan
The Practice of Programming
The Practice of Programming is a classic guide to writing software that is not just functional, but clear, reliable, efficient, and maintainable. Rather than teaching the syntax of one language, Brian W. Kernighan and Rob Pike focus on the habits and judgment that separate competent coders from thoughtful programmers. They examine the full craft of programming: style, algorithms, interfaces, debugging, testing, performance, portability, notation, documentation, and tools. Across examples drawn from C, C++, Java, and Unix-style development, they show how good code emerges from disciplined thinking more than from fashionable technology. What makes this book enduring is its practicality. It does not offer abstract theory detached from real work; it gives principles that apply whether you are writing scripts, building libraries, or maintaining production systems. Kernighan and Pike write with unusual authority. Both helped shape modern computing through work on Unix and influential programming tools, and their experience shows in every page. For developers who want to improve how they think about software—not just how they type it—this book remains one of the most valuable and timeless guides in programming.
Read SummaryKey Insights from Brian W. Kernighan
Style Reveals How You Think
One of the fastest ways to judge a program is not to run it, but to read it. Kernighan and Pike argue that programming style is the first visible sign of discipline. Good style does not guarantee a correct program, yet it makes correctness easier to inspect, discuss, and improve. Badly named variabl...
From The Practice of Programming
Choose Algorithms Before Optimizing Code
Performance problems are often solved long before anyone reaches for a profiler. The book stresses that the most important speed decisions usually come from choosing the right algorithm and data structure, not from low-level code tricks. Elegant implementation cannot rescue a poor algorithm. A progr...
From The Practice of Programming
Design Interfaces That Simplify Change
A program becomes manageable when its pieces can be understood independently. That is why this book treats interface design as central to software quality. Good interfaces hide complexity, define responsibilities clearly, and make misuse difficult. Poor interfaces leak implementation details, force ...
From The Practice of Programming
Debug Systematically, Not Emotionally
When software fails, the worst instinct is to guess wildly. The debugging chapter teaches that effective debugging is a disciplined process of gathering evidence, reducing possibilities, and testing hypotheses. Programmers often waste hours because they assume they already know what the bug is. Kern...
From The Practice of Programming
Testing Makes Quality Visible
Programs do not become trustworthy because their authors feel confident. They become trustworthy when behavior is checked systematically. In The Practice of Programming, testing is presented as a core development activity, not a last-minute chore. Good tests reveal assumptions, expose edge cases, an...
From The Practice of Programming
Performance Requires Measurement and Restraint
Fast code is not always good code, and good code is not always slow. The authors take a mature view of performance: it matters, but only in proportion to real needs. Many programmers optimize the wrong things because they rely on intuition, folklore, or microbenchmarks detached from actual workloads...
From The Practice of Programming
About Brian W. Kernighan
Kernighan is a computer scientist known for his work at Bell Labs and contributions to Unix, C, and AWK.
Frequently Asked Questions
Kernighan is a computer scientist known for his work at Bell Labs and contributions to Unix, C, and AWK.
Read Brian W. Kernighan's books in 15 minutes
Get AI-powered summaries with key insights from 1 book by Brian W. Kernighan.
