15 used & new from $28.75

Have one to sell? Sell yours here
 
 
The Elements of Programming Style
 
See larger image
 

The Elements of Programming Style (Paperback)

~ (Author), (Author)
4.2 out of 5 stars  See all reviews (13 customer reviews)


Available from these sellers.


2 new from $160.00 13 used from $28.75

Formats

Amazon Price New from Used from
  Paperback, December 31, 1977 -- $160.00 $28.75
  Unknown Binding, December 31, 1977 -- -- --

Customers Who Bought This Item Also Bought

Software Tools

Software Tools

by Brian W. Kernighan
4.5 out of 5 stars (6)  $27.01
The Practice of Programming

The Practice of Programming

by Rob Pike
4.0 out of 5 stars (52)  $38.99
Unix Programming Environment (Prentice-Hall Software Series)

Unix Programming Environment (Prentice-Hall Software Series)

by Rob Pike
4.6 out of 5 stars (34)  $40.50
Design of the UNIX Operating System

Design of the UNIX Operating System

by Maurice J. Bach
4.7 out of 5 stars (23)  $62.33
The AWK Programming Language

The AWK Programming Language

by Alfred V. Aho
4.9 out of 5 stars (17)  $85.36
Explore similar items

Product Details

  • Paperback: 168 pages
  • Publisher: Computing Mcgraw-Hill; 2 edition (January 1, 1978)
  • Language: English
  • ISBN-10: 0070342075
  • ISBN-13: 978-0070342071
  • Product Dimensions: 8.9 x 5.9 x 0.3 inches
  • Shipping Weight: 8 ounces
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (13 customer reviews)
  • Amazon.com Sales Rank: #599,090 in Books (See Bestsellers in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

What Do Customers Ultimately Buy After Viewing This Item?

The Elements of Programming Style
62% buy the item featured on this page:
The Elements of Programming Style 4.2 out of 5 stars (13)
Unix Programming Environment (Prentice-Hall Software Series)
12% buy
Unix Programming Environment (Prentice-Hall Software Series) 4.6 out of 5 stars (34)
$40.50
Software Tools
9% buy
Software Tools 4.5 out of 5 stars (6)
$27.01
Elements of Programming
8% buy
Elements of Programming 4.9 out of 5 stars (7)
$31.99

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

13 Reviews
5 star:
 (6)
4 star:
 (4)
3 star:
 (2)
2 star:
 (1)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.2 out of 5 stars (13 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
22 of 22 people found the following review helpful:
5.0 out of 5 stars All programmers should buy this book, October 13, 2001
By A Williams "honestpuck" (Neutral Bay, NSW Australia) - See all my reviews
(REAL NAME)      
I firmly believe that computer programming is a craft, perhaps an art but certainly not a science. As you learn the craft you need to learn the wisdom of those that have gone before you. This book becomes essential.

It spells out, first with a counter example found in a piece of code published elsewhere and then with the code rewritten, over 70 pearls of wisdom that should be engraved into our consciousness; for many years every morning when I logged on to start work as a commercial Unix programmer one of these rules was randomly chosen as my message of the day, if I didn't understand the short rule I dragged out the book and refreshed my memory.

Brian Kernighan has co-authored three books almost essential to learning our craft, this volume, "Software Tools" and "The Unix Programming Environment". "Elements of Programming Style" spells out the fundamental rules, "Software Tools" shows you how to apply them to a number of simple projects and extends the rules to software design and finally "The Unix Programming Environment" shows you how to use them in an operating system designed to reward you for your effort.

The examples in either PL/I or Fortran expound the simple rules clearly and expertly in a manner typical of Kernighan's writing. That the languages used are old and most of the rules long accepted lore are not a drawback to this volume. Anyone who knows C, Pascal or even Perl should easily understand the code and programmers turn out code just as bad today in any number of languages.

These things make this book highly recommended reading for anyone who wishes to call them self "programmer." A final word of warning, don't lend this book to anyone, you'll never get it back - I've bought four copies so far.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 7 people found the following review helpful:
5.0 out of 5 stars A classic programming book, February 15, 2001
By Daniel Mall "engineersoftware" (San Gabriel, CA United States) - See all my reviews
(REAL NAME)   
Published in 1978. 168 pages. These 77 rules represent the definitive basis of good programming style and best programming practices. Included in this famous set of rules are gems such as "say what you mean", "write clearly", "use the telephone test", "make sure comments and code agree", and "make it right before you make it faster". Each rule is described in the context of a small program or code fragment. The authors expertly illuminate their rules by correcting these deficient programs. All of the example code in FORTRAN or PL/I was taken from prior publications. The rules are programming language independent (76/77); the only exception is "avoid the FORTRAN arithmetic IF." This book solidified many of the ideals expressed in the structured programming movement.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
4 of 4 people found the following review helpful:
4.0 out of 5 stars Many rules still apply, September 18, 2006
I dare say many rules Mr. Kernighan preached almost three decades ago are still NOT followed by the programming community at large. For examples, "Modularize. Use subroutines." "Each module should do one thing well." and "Don't patch bad code--rewrite it." A widespread, bad practice of 90% of the programmers today is still writing functions that are way too long! And they very often keep modifying existing functions--inserting new logic into them--to make already bad code even worse; they seldom give it a second thought about rewriting the whole damn crap!

Another set of rules from the book: "Make sure code and comments agree." and "Don't over-comment." Many programmers seldom do the first thing, resulting in widespread mismatches between the actual codes and surrounding comments. This applies to Java code as well. The comment style recommended by Java--that is, mixing code and comments that can be extracted into so-called self documentation--is an outright violation of the "don't over-comment" rule. (This is intended to be a criticism of Java-style comments.) Good code should document itself clearly; with perhaps a little help from judiciously added few comments that are not self-evident from the code itself.

The book uses FORTRAN and PL/I code examples. There are things that no longer apply today. But the fundamental rules and styles are still well applicable today and in the future.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Computer Science
The Elements of Programming Style, by Brian W. Kernighan and P. J. Plauger, is an influential book on the study of computer programming styles and languages. Read more
Published 13 months ago by Carlos Jorge

4.0 out of 5 stars Trees and Forests
On a recent programming forum, a poster asked if he should code his program as one procedure like his boss instructed. Read more
Published on October 5, 2007 by Willaim B. Weaver

3.0 out of 5 stars This book is the source of a well known debugging quote
I haven't actually read the book, or seen it in person, so I'd prefer to refrain from rating it one way or the other. Read more
Published on March 13, 2005 by Chris Devers

5.0 out of 5 stars Some good rules for us all, still valid after so many years
I think this little book is still relevant today, over thirty years after it first appeared.

Yes, some people claim that computer programming is taught a little... Read more
Published on November 23, 2004 by Jill Malter

5.0 out of 5 stars dated
well...mostly dated,
most programmers already follow most rules in this book already.
It as a 'must read' in the past,I understand, but not anymore
Published on July 28, 2004 by Ulas Ergin

5.0 out of 5 stars The examples are dated but great background material
As the name implies, this is about the elements of programming style. The examples are a bit dated (old languages, not C/C++/Java/the-next-great-language). Read more
Published on June 26, 2001 by David B. Horvath

4.0 out of 5 stars Atrocious code is still with us!
The most interesting thing about Kernighan & Plauger's collection is that they took their bad examples from published textbooks and articles. Read more
Published on February 7, 2000 by Conrad H. Weisert

4.0 out of 5 stars Still an excellent book after all these years.
Despite its age, this book still has much to offer that other books, like Writing Solid Code, miss. Read more
Published on August 25, 1998 by Ralph Corderoy

2.0 out of 5 stars Badly dated
Although this book was needed in its day (copyright 1978, 1974), many of the examples are so dated that they've lost their relevance. Read more
Published on May 4, 1998 by Don Appleman (appleman@nn.com)

3.0 out of 5 stars Originally outstanding, but now dated
This was the definitive work on programming style when first written, and is still a standard reference. Read more
Published on March 31, 1998

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.