This is Real Life Sale
 
 

Special Offers see all

Enter to WIN a $100 Credit

Subscribe to PowellsBooks.news
for a chance to win.
Privacy Policy

Visit our stores


    Recently Viewed clear list


    The Powell's Playlist | February 27, 2015

    Kazuo Ishiguro: IMG Kazuo Ishiguro's Playlist for The Buried Giant



    The eight songs on this playlist didn't "inspire" The Buried Giant, nor did I play them out loud while writing. And with the notable exception of... Continue »
    1. $18.87 Sale Hardcover add to wish list

      The Buried Giant

      Kazuo Ishiguro 9780307271037

    spacer
Qualifying orders ship free.
$4.95
List price: $50.75
Used Trade Paper
Ships in 1 to 3 days
Add to Wishlist
Qty Store Section
1 Local Warehouse Computer Languages- C++

C++ Programming Style (Addison-Wesley Professional Computing)

by

C++ Programming Style (Addison-Wesley Professional Computing) Cover

ISBN13: 9780201563658
ISBN10: 0201563657
Condition: Standard
All Product Details

Only 1 left in stock at $4.95!

 

 

Excerpt

Almost two decades after the publication of Kernighan and Plauger's classic, The Elements of Programming Style , its compact set of rules remains the best general guidance on good programming. Today, however, our programs are larger and our programming languages have changed. We now care as much about how the components of a program fit together as we do about the algorithms and data structures used in each component. DeRemer and Kron coined the terms programming-in-the-large and programming-in-the-small to make a distinction between the large-scale and small-scale aspects of programs. By programming-in-the-small, they meant dealing with components of a program that are "one to a few pages long" - the size of a typical C++ class. By programming-in-the-large, they meant the structuring of in-the-small components into a program - in C++ terms, dealing with relationships between classes. Kernighan and Plauger concentrated their work on the issues of programming-in-the-small. Their advice about programming-in-the-large is sound, but minimal.

  • Modularize. Use subroutines.

This book addresses programming style, with more emphasis on programming-in-the-large, and is restricted to the domain of C++ programs. It is written for the programmer who has learned the mechanics of C++, but is experiencing difficulty in applying the language features - particularly the object-oriented features - to programming problems. Though the discussion is limited to C++, many of the observations about programming are true of other languages. I leave the treatment of language-independent style in-the-large to more ambitious authors.

I have adopted Kernighan and Plauger's method of distilling rules of programming style from the critical reading and rewriting of programs. All the programs used here are taken from textbooks, magazine articles and tutorials on C++ programming. None was created artificially for this work. Some programs are presented exactly as originally published, while others have been altered cosmetically. The alterations range from the correction of in-the-small bugs, which would only distract, to structure-preserving transformations of programs for which copyright was not obtained.

The spirit in which to approach the material is that of an "egoless" code review. We all learn by reading and reviewing each other's programs. The material is not a criticism of individual programmers - it seeks only to differentiate between good and bad programs. No doubt the programs that are presented here as "better" versions have their own shortcomings. The reader is encouraged to examine these programs critically, looking for further improvements in programming style.

0201563657P04062001

What Our Readers Are Saying

Add a comment for a chance to win!
Average customer rating based on 1 comment:

umair_tariq007, March 21, 2007 (view all comments by umair_tariq007)
learning is life
Was this comment helpful? | Yes | No
(1 of 3 readers found this comment helpful)

Product Details

ISBN:
9780201563658
Author:
Cargill, Tom
Publisher:
Addison-Wesley Professional
Location:
Reading, Mass. :
Subject:
Programming Languages - C
Subject:
Programming Languages - General
Subject:
C (computer program language)
Subject:
Technology
Subject:
Computers and computer technology
Subject:
C plus plus (computer program language)
Subject:
Language, literature and biography
Subject:
C
Subject:
Computer Languages-C++
Copyright:
Edition Description:
Trade paper
Series:
Addison-Wesley professional computing series
Series Volume:
1086
Publication Date:
June 1992
Binding:
TRADE PAPER
Grade Level:
Professional and scholarly
Language:
English
Illustrations:
Yes
Pages:
248
Dimensions:
9 x 7.3 x 0.6 in 417 gr

Other books you might like

  1. Ruminations on C++: A Decade of... New Trade Paper $34.95
  2. C++ Strategies and Tactics... Used Trade Paper $4.95
  3. Double Trouble in Walla Walla Used Trade Paper $2.50
  4. Napoleon's Grande Armée of 1813 Used Hardcover $27.50
  5. The Virtue of Prosperity: Finding... Used Trade Paper $2.25
  6. The Truth about Dogs: An Inquiry... Used Hardcover $8.50

Related Subjects

Computers and Internet » Computer Languages » C++

C++ Programming Style (Addison-Wesley Professional Computing) Used Trade Paper
0 stars - 0 reviews
$4.95 In Stock
Product details 248 pages Addison-Wesley Professional - English 9780201563658 Reviews:
"Synopsis" by , A chapter is devoted to each of the following topics: abstractions; operator overloading; consistency; wrappers; unnecessary inheritance; efficiency; and virtual functions. Building on the programming rules introduced in the first seven chapters, Cargill presents a case study in which a single program undergoes repeated transformations that improve its overall quality while reducing its size. The book concludes with a chapter on multiple inheritance. 0201563657B04062001
spacer
spacer
  • back to top

FOLLOW US ON...

     
Powell's City of Books is an independent bookstore in Portland, Oregon, that fills a whole city block with more than a million new, used, and out of print books. Shop those shelves — plus literally millions more books, DVDs, and gifts — here at Powells.com.