
The elements of programming style
Brian W. Kernighan, P. J. Plauger · 1974
Programming and computer science › Programming classics and Java
#553 most recommended
Hacker News
96
mentions by 69 people · top 4% of 15,732 books
Open Library
5.00★★★★★★★★★★
1 rating · 15 want to read
Wikipedia
571
article views a month
About the book
The book covers programming style: the habits that make ordinary code clear, correct, and easy to maintain, as distinct from language syntax or algorithms. It is short and works through examples, mostly drawn from textbook programs written in Fortran and PL/I, showing how each can be rewritten. Code is read by people far more often than it is run by machines, so clarity should be the main goal of writing it. The authors argue that clear names, simple control flow, sensible layout, and well-placed comments make programs easier to check and change, while cleverness and needless complexity make them error-prone. Their rewrites of real poor code are meant to show these principles in practice.
Written by Claude from what it knows of this book.
What Hacker News says 43% recommend · 3% critical
In the commenters’ own words
http://www.amazon.com/Programming-Addison-Wesley-Professiona... 3.0 out of 5 stars Autohagiography with some programming tips, December 24, 2003 By A Customer…
Filtering a container by a predicate is 50 year old technology and a very common thing. It's unbelievable that a "modern" language has no shorter or clearer…
What Open Library readers say 5.00 from 1 rating
- 51
- 40
- 30
- 20
- 10
- 15 want to read
- 0 reading
- 1 have read
Only 1 rating: treat the average as a hint.
What Wikipedia says
- published 1978
- 168 pages
- articles in 3 languages
Reddit communities — coming later
The threads it came up in
Details
- First published
- 1974
- ISBN
- 9780070342071
- Editions known
- 4 at Open Library
- Open Library
- OL4617637W
Computer programmingComputersInternal MigrationOperations ResearchProgrammation (Informatique)Systems AnalysisUrbanization
Read next: its neighbours on the mosaic
The Practice of ProgrammingBrian W. Kernighan · 1999 · recommended by 90 people · 7 people recommended both
Software toolsBrian W. Kernighan · 1976 · recommended by 21 people · 3 people recommended both
Software tools in PascalBrian W. Kernighan · 1976 · recommended by 9 people · 3 people recommended both
The UNIX programming environmentBrian W. Kernighan · 1984 · recommended by 86 people · 5 people recommended both
The psychology of computer programmingGerald M. Weinberg · 1971 · recommended by 44 people · 5 people recommended both
The C Programming LanguageBrian W. Kernighan · 1978 · recommended by 246 people · 5 people recommended both
Programming PearlsJon Bentley · 1999 · recommended by 158 people · 5 people recommended both
The Pragmatic ProgrammerAndy Hunt · 1999 · recommended by 353 people · 7 people recommended both
C Traps and PitfallsAndrew Koenig · 1989 · recommended by 19 people · 2 people recommended both
Writing efficient programsJon Louis Bentley · 1982 · recommended by 9 people · similar by subject and what people say about it
More programming pearlsJon Louis Bentley · 1988 · recommended by 12 people · 2 people recommended both
Programming LanguagesJean E. Sammet · 1969 · recommended by 1 person · similar by subject and what people say about it
ML for the working programmerLawrence C. Paulson · 1991 · recommended by 16 people · 2 people recommended both
Code CompleteSteve McConnell · 1993 · recommended by 393 people · 4 people recommended both
Writing solid codeSteve Maguire · 1993 · recommended by 18 people · similar by subject and what people say about it
Composite/structured designGlenford J. Myers · 1978 · recommended by 2 people · similar by subject and what people say about it
The art of computer programmingDonald Knuth · 1968 · recommended by 336 people · 5 people recommended both
Programmers at workSusan M. Lammers · 1986 · recommended by 19 people · 2 people recommended both
The little LISPerDaniel P. Friedman · 1974 · recommended by 28 people · 2 people recommended both
Programming PerlLarry Wall · 1991 · recommended by 90 people · 2 people recommended both
The Mythical Man-MonthFrederick P. Brooks · 1975 · recommended by 383 people · 5 people recommended both
Structure and Interpretation of Computer ProgramsHarold Abelson · 1984 · recommended by 347 people · 4 people recommended both
Reliable software through composite designGlenford J. Myers · 1975 · recommended by 3 people · similar by subject and what people say about it
The Elements of Networking StyleM. A. Padlipsky · 1984 · recommended by 8 people · 2 people recommended both