C++ programming style

C++ programming style

by Tom Cargill

1992

Ratist Community Rating

—/ 10

No reviews yet

Your Score Estimate

~?/ 10

Rate a few books to unlock your estimate

Rate

Community breakdown

Story
—
Writing & Style
—
Emotive Effect
—
Characters & Voice
—
Pure Entertainment
—

Bars show the community-aggregated score per category. Rate this book to contribute.

This book examines the in-the-large language features of C++, demonstrating that unwarranted use of language features may lead to cluttered programs that are harder to comprehend and sometimes less efficient than straightforward alternatives. Cargill rewrites several programs using techniques ranging from improving consistency to removing redundant inheritance. The presentation simulates a code review, in which readers may independently evaluate and criticize alternative approaches to programming problems, and then compare their analyses with those of the author. Design and coding style rules are distilled from the examples. Understanding and following these rules will help programmers design and write better C++ programs. 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. (back cover copy)