DeepRead
Cover of The elements of programming style

The elements of programming style

Brian W. Kernighan, P. J. Plauger · 1974

Programming and computer science › Programming classics and Java

#553 most recommended

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

0102020082015202020262024 peak · 14
This bookAverage book in Programming classics and Java

In the commenters’ own words

What Open Library readers say 5.00 from 1 rating

  1. 51
  2. 40
  3. 30
  4. 20
  5. 10
  • 15 want to read
  • 0 reading
  • 1 have read

Only 1 rating: treat the average as a hint.

Open Library’s page for the book

What Wikipedia says

  • published 1978
  • 168 pages
  • articles in 3 languages

Read the Wikipedia article

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

Explore in the mosaic

Read next: its neighbours on the mosaic