Amazon.com: C & C++ Code Capsules: A Guide for Practitioners (9780135917855): Chuck Allison: Books

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$5.58 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
Have one to sell? Sell yours here
C & C++ Code Capsules: A Guide for Practitioners
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C & C++ Code Capsules: A Guide for Practitioners [Paperback]

Chuck Allison (Author)
4.1 out of 5 stars  See all reviews (10 customer reviews)

List Price: $43.95
Price: $30.20 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.75 (31%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 1 left in stock--order soon (more on the way).
Want it delivered Friday, February 24? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more


Book Description

December 21, 1997 0135917859 978-0135917855 1

This book shares the hard-won wisdom of a highly-successful C++/C programmer - along with a large collection of ANSI-compliant programs that illustrate the true power of C++.This book includes a wide variety of ideas, tips and techniques for programmers of all skill levels. It presents little-known facts about pointers and the preprocessor that are a must for the professional developer. It offers tips and techniques for more effective use of abstraction, templates, bit manipulation, visibility, control structures and exceptions. The book also shows how to make the most of the Standard C and Standard C++ libraries, covering containers and iterators; algorithms; text and file processing; time and date processing; and memory management.For C++ and C professional developers, consultants, faculty and students of all skill levels.



Editorial Reviews

From the Inside Flap

This book is for people who program in C and C++ for a living. It assumes that you are already familiar with the syntax and basic constructs of both languages, and it offers practical wisdom for creating effective, real-world programs. Each code capsule, or sample program, contains working code illustrating proven idioms and techniques that leverage the power of these important programming languages.

This book serves as a voice of experience for those who wish to strengthen their skills and improve their effectiveness in the workplace. Despite current fervor for the object-oriented paradigm (which this book abundantly embraces), I make no excuse for paying homage to the C foundations of C++. I have found too many developers ill-prepared to master C++ because they lack a thorough understanding of basic concepts such as pointers, scope, linkage, and static type checking. Perhaps the biggest deficiency of all is a lack of familiarity with the standard C library. It is sad indeed when developers waste time reinventing what the library functions already provide so well. The C++ novice is often too eager to abandon (i.e., gloss over) simple C in favor of the "exciting" features of C++, such as inheritance, exceptions, or overriding operator new, even when such are not warranted. I feel confident that everyone will learn something from these pages. Chapters 1 and 13 through 16 are strictly C++ chapters. Chapters 4 through 6 apply only to the C language. All other chapters cover both the C and C++ aspects of their respective topic. That said, this is primarily a C++ book. As it goes to press, the C++ standardization effort is in its home stretch. The second public committee draft (CD2) has completed its cycle and only minor edits remain. As a member of this committee since early 1991, I have seen its document grow from 200 to over 750 pages. We have added exceptions, templates, namespaces, runtime type identification (RTTI) and other features to the language, and a sophisticated, templatized system of interrelated algorithms, containers, and iteration constructs to the library (commonly known as the Standard Template Library, or STL). Unlike other standards efforts, this committee has concentrated as much on invention as on standardizing existing practice. The overwhelming intricacies of C++ caused one Internet surfer to post this message: "If C gives you enough rope to hang yourself, then C++ gives you enough rope to hang everyone in your neighborhood, hoist the riggings of a small sailing ship, and still have enough left over to hang yourself." I have labored to illustrate and motivate standard C++ and its library in such a way that you might use your rope more wisely.

The first chapter (Chapter 0), an excerpt from an interview I conducted with Bjarne Stroustrup, records his feelings about the state of C++ as it becomes a standard. The rest of the book is divided into three parts.

Part I: Preliminaries
After a brief tour of C++, these chapters close some of the gaps a typical C programmer might have before s/he prepares to tackle C++. Chapter 2, "Pointers," is based on a well-received three-part series I ran in the C Users Journal in 1993. Chapters 4 through 6 cover what every professional should know about the standard C library, which is a crucial part of standard C++. Part II: Key Concepts
This section thoroughly motivates and illustrates the concepts and features of the C++ language. Chapter 7 introduces data abstraction through classes, and Chapter 8 covers type abstraction as implemented by the C++ template mechanism. Templates are every bit as crucial to the effective use of C++ as objects are, perhaps even more so. Chapter 14 not only treats inheritance and polymorphism, but also illustrates object-oriented design and reuse as it presents a framework for object persistence that works with today's relational database management systems. The chapters in between give the reader depth in important fundamental concepts that too many developers tend to overlook. Part III: Leveraging the Standard Library
Chapters 15 through 20 show how to use and appreciate the notable components of the standard C++ library, as well as elucidate some of the more sophisticated features of the standard C library that went beyond the scope of Chapters 4, 5, and 6. Chapters 15 and 16 explain why the STL subset of the library is what it is, and how to use it effectively. Chapter 19 contains a useful date component that can even handle partial dates, a common business data processing requirement.

In summary, this is book about what works. I've attempted to steer the reader away from the "gotchas" by illustrating "best practices" with a reasonable balance of breadth and depth. Why another C++ book in 1998? Because the language and library haven't stabilized until now. This book goes to press just one week after the standards committee met to approve the final draft of ISO C++, and I have taken care to steer clear of any dark corners that remain (all languages and environment have them). I am confident that all the material in this book will be timely for years to come.


Chuck Allison
freshsources
November 1997

From the Back Cover

This book shares the hard-won wisdom of a highly-successful C++/C programmer - along with a large collection of ANSI-compliant programs that illustrate the true power of C++.This book includes a wide variety of ideas, tips and techniques for programmers of all skill levels. It presents little-known facts about pointers and the preprocessor that are a must for the professional developer. It offers tips and techniques for more effective use of abstraction, templates, bit manipulation, visibility, control structures and exceptions. The book also shows how to make the most of the Standard C and Standard C++ libraries, covering containers and iterators; algorithms; text and file processing; time and date processing; and memory management.For C++ and C professional developers, consultants, faculty and students of all skill levels.

Product Details

  • Paperback: 570 pages
  • Publisher: Prentice Hall; 1 edition (December 21, 1997)
  • Language: English
  • ISBN-10: 0135917859
  • ISBN-13: 978-0135917855
  • Product Dimensions: 9.3 x 7.1 x 1.3 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.1 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #1,674,029 in Books (See Top 100 in Books)

More About the Author

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

 

Customer Reviews

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

9 of 10 people found the following review helpful:
2.0 out of 5 stars Adequate material, but hard to read, January 18, 1999
By A Customer
This review is from: C & C++ Code Capsules: A Guide for Practitioners (Paperback)
After all of the wonderful reviews, I expected more from this book. The page layout was VERY difficult to work with, bouncing through source code, then reading about it, then having to flip the page to see the implementation file for the struct.

Three chapters are devoted to the C standard library, so if you are a traditional C coder, this will be familiar. However, if you are trying to learn practical C++, there are better books: Effective C++, More Effective C++, C++ Gems...

Many of his examples of `practical' code are written in C, with the C-style comments as the give away. The section on casting does not include any of the new standard safe casting operators, although they are included in the appendix. Several of the examples shown near the end of the book are many pages long, and if you want to use it, you get to type it in manually.

Also, although this may or may not affect your decision to purchase this book, I found the glossy pages VERY DIFFICULT to read under a halogen desk lamp.

If you are looking for a transition from C to C++, or want code samples for bitmasking (2 out of twenty chapters devoted to this), this book may be for you. However, if you want a great C++ book, look elsewhere.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
5.0 out of 5 stars A truly practical guide., October 29, 1998
By A Customer
This review is from: C & C++ Code Capsules: A Guide for Practitioners (Paperback)
When we served together on the C++ standards committee the highest compliment Chuck ever paid my proposals was to call them "practical", and it is my pleasure to return that compliment. This is one of the most truly practical books on C and C++ you could hope to own. Not just for the useful example code, and not just for the down-to-earth, easy-to-read text, but for Chuck's clear understanding of what it is a practitioner really needs to know, and his unique ability to get that knowledge across.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
5.0 out of 5 stars 'Real' programmers will love this!!, September 11, 1998
By A Customer
This review is from: C & C++ Code Capsules: A Guide for Practitioners (Paperback)
As a professional programmer I had forgotten why I enjoyed programming to begin with. Staying up late with friends fiddling with this or that language idiosyncrasy. Breaking application modules down to smaller and more representative code capsules to illustrate a language or compiler nuance. 'Code Capsules' is written in that easy, friendly style that makes you want to sit with your laptop and try out little code snippets in the compiler over a pizza. Chuck Allison's extensive knowledge and experience with C and C++ creates a comfortable writing style that will gently draw out more than a few "Ahhhh, so that's why ...". If you are learning C++, 'Code Capsules' will help you understand the language; if you are a professional programmer, 'Code Capsules' will make you a better one; and if you just enjoy programming languages, 'Code Capsules' is your best friend, now all you need is the pizza. Thank you, Chuck!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

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








Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(90)
(19)
(12)

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 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
   
Related forums


Listmania!


So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject