The Elements of Programming Style

The Elements of Programming Style

"The Elements of Programming Style", by Brian W. Kernighan and P. J. Plauger, is a seminal book in the study of programming style, advocating the notion that computer programs should be written not only to satisfy the compiler, but also with human readers in mind.

A particular strength of the book is that it is built on examples taken from actual, published programs. The book's advice is therefore delivered not in an academic or pedagogical vacuum, but rather in the context of examples which are believably realistic, sometimes 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 maxims, such as "Let the machine do the dirty work."

The book pays explicit homage, in title and tone, to "The Elements of Style", by Strunk & White.

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. (Few 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 idiosyncrasies of particular languages.

References

*B. W. Kernighan and P. J. Plauger, "The Elements of Programming Style", McGraw-Hill, New York, 1974. ISBN 0-07-034199-0
*B. W. Kernighan and P. J. Plauger, "The Elements of Programming Style 2nd Edition", McGraw Hill, New York New York, 1978. ISBN 0-07-034207-5

External links

* [http://www.softwarequotes.com/ShowQuotes.asp?ID=574&Name=Plauger,_P._J.&Type=Q selected quotes from "The Elements of Programming Style"]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Programming style — is a set of rules or guidelines used when writing the source code for a computer program. It is often claimed that following a particular programming style will help programmers to read and understand source code conforming to the style, and help …   Wikipedia

  • Comment (computer programming) — For comments in Wikipedia markup, see Help:Wiki markup#Character formatting and WP:COMMENT. An illustration of Java source code with prologue comments indicated in red and inline comments in green. Program code is in blue …   Wikipedia

  • Programming paradigm — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concu …   Wikipedia

  • Programming language — lists Alphabetical Categorical Chronological Generational A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that… …   Wikipedia

  • The ArchAndroid (Suites II and III) — The ArchAndroid (Suites II and III) …   Wikipedia

  • The Electric Company (1971 TV series) — The Electric Company redirects here. For the 2009 revival, see The Electric Company (2009 TV series). For other uses, see Electric company (disambiguation). The Electric Company 1971–1977 logo of The Electric Company. Format Child …   Wikipedia

  • The Howard Stern Show — 2006 promotional image. Genre Talk, comedy, entertainment Running time 4 hours Country United States …   Wikipedia

  • The Kimberly Trip — Infobox musical artist Name = Img capt = Img size = Background = group or band Alias = Origin = flagicon|USA Sacramento, California, USA Genre = Alternative rock Power pop New Wave Indie Years active = 2001 present Label = Glitter Kitty Records… …   Wikipedia

  • The Hitchhiker's Guide to the Galaxy — This article is about the franchise. Several terms redirect here; you may be looking for The Hitchhiker s Guide to the Galaxy (disambiguation), Hitchhiker s Guide (disambiguation), or High Harmonic Generation. The Hitchhiker s Guide to the Galaxy …   Wikipedia

  • The Pat Sajak Show — infobox television show name = The Pat Sajak Show caption = format = Talk show runtime = 90/60 minutes creator = starring = Pat Sajak Dan Miller country = flagicon|United States United States network = CBS first aired = January 9, 1989 last aired …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”