The Elements of Programming Style: Difference between revisions

Content deleted Content added
Name both authors
expanded to the point that {stub} tag can be removed, but could still use work
Line 1:
[[image:The_Elements_of_Programming_Style.jpg|200px|thumb|cover for the second edition]]and
'''''The Elements of Programming Style''''', by [[Brian W. Kernighan]] and [[P. J. Plauger]],
is a seminal book aboutin the goodstudy computerof ''programming style.'',
advocating the notion that computer programs should be written
not only to satisfy the compiler,
but rather also with human readers in mind.
 
A particular strength of the book
{{nonfiction-book-stub}}
is that it is built on examples taken from actual, published programs.
The book's advice is therefore delivered
not in some academic pedagogical vacuum,
but rather in the context of examples which are believably realistic --
sometimes all too uncomfortably so.
The authors are diplomatic and generally sympathetic in their criticisms,
and unabashedly honest as well,
in that some of the examples which they find fault with and seek to improve
in the second edition
were taken from their own first edition.
 
The book's lessons are summarized
in a series of pithy, eminently quoteworthy maxims,
such as "Let the machine do the dirty work."
 
One shortcoming of the book for modern readers
is that its examples use older programming languages -- Fortran and PL/I --
which are less than representative of the ones popular today.
(None of today's popular languages had been invented when this book was written.)
A perceptive reader can nevertheless appreciate and learn from most of the book's points,
which generally concern stylistic and structural issues
which transcend the idiosyncracies of particular languages.