Paperback, 248 pages
English language
Published 1992 by Addison-Wesley Pub. Co..
Paperback, 248 pages
English language
Published 1992 by Addison-Wesley Pub. Co..
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)