C++ Programming Style
C++ supports programming-in-the-large, allowing relationships between different parts of a program to be expressed. The scope of C++ programming style therefore goes beyond traditional in-the-small issues which relate to the details of line-by-line coding. This book examines the use of the in-the-large language features of C++, which sometimes confuse even experienced programmers. The author demonstrates that unwarranted use of the more powerful language features may lead to cluttered programs which are harder to comprehend and sometimes less efficient than more straightforward alternatives. Cargill rewrites several programs, using techniques that range 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 professional programmers design and write better C++ programs.
A chapter is devoted to each of the following topics:
14 pages matching Stacklndex in this book
Results 1-3 of 14
What people are saying - Write a review
A great intro and guideline for C++ style. Most of the chapters open with code that solves a particular problem, then goes on to evolve a much better solution, pointing out nice C++ idioms and alternatives along the way. In the spirit of Kernighan and Plauger's, "The Elements of Programming".
7 other sections not shown