Exceptional C++ Style
40 New Engineering Puzzles, Programming Problems, and Solutions
Résumé
Software "style" is about finding the perfect balance between overhead and functionality... elegance and maintainability... flexibility and excess. In Exceptional C++ Style, legendary C++ guru Herb Sutter presents 40 new programming scenarios designed to analyze not only the what but the why and help you find just the right balance in your software.
Organized around practical problems and solutions, this book offers new insight into crucial C++ details and interrelationships, and new strategies for today's key C++ programming techniques--including generic programming, STL, exception safety, and more. You'll find answers to questions like:
- What can you learn about library design from the STL itself?
- How do you avoid making templated code needlessly non-generic?
- Why shouldn't you specialize function templates? What should you do instead?
- How does exception safety go beyond try and catch statements?
- Should you use exception specifications, or not?
- When and how should you "leak" the private parts of a class?
- How do you make classes safer for versioning?
- What's the real memory cost of using standard containers?
- How can using const really optimize your code?
- How does writing inline affect performance?
- When does code that looks wrong actually compile and run perfectly, and why should you care?
- What's wrong with the design of std::string?
Exceptional C++ Style will help you design, architect, and code with style--and achieve greater robustness and performance in all your C++ software.
L'auteur - Herb Sutter
Herb Sutter est un expert reconnu du langage C++ qui donne régulièrement des conférences internationales sur ce langage. Auteur de trois livres plébiscités (Addison-Wesley), il est secrétaire du Comité de normalisation ANSI/ISO du langage C++. Il tient une chronique dans la revue C/C++ Users Journal. En tant qu'architecte logiciel chez Microsoft, il dirige la conception des extensions du langage C++ pour la plate-forme .NET.
Autres livres de Herb Sutter
Sommaire
- Generic programming and the C++ standard library
- Uses and Abuses of vector
- The String Formatters of Manor Farm, Part 1: sprintf
- The String Formatters of Manor Farm, Part 2: Standard (or Blindingly Elegant) Alternatives
- Standard Library Member Functions
- Flavors of Genericity, Part 1: Covering the Basis [sic]
- Flavors of Genericity, Part 2: Generic Enough?
- Why Not Specialize Function Templates?
- Befriending Templates
- Export Restrictions, Part 1: Fundamentals
- Export Restrictions, Part 2: Interactions, Usability Issues, and Guidelines
- Exception safety issues and techniques
- Try and Catch Me
- Exception Safety: Is It Worth It?
- A Pragmatic Look at Exception Specifications
- Class design, inheritance, and polymorphism
- Order, Order!
- Uses and Abuses of Access Rights
- (Mostly) Private
- Encapsulation
- Virtuality
- Enforcing Rules for Derived Classes
- Memory and resource management
- Containers in Memory, Part 1: Levels of Memory Management
- Containers in Memory, Part 2: How Big Is It Really?
- To new, Perchance to throw, Part 1: The Many Faces of new
- To new, Perchance to throw, Part 2: Pragmatic Issues in Memory Management
- Optimization and efficiency
- Constant Optimization?
- inline Redux
- Data Formats and Efficiency, Part 1: When Compression Is the Name of the Game
- Data Formats and Efficiency, Part 2: (Even Less) Bit-Twiddling
- Traps, pitfalls, and puzzlers
- Keywords That Aren't (or, Comments by Another Name)
- Is It Initialization?
- double or Nothing
- Amok Code
- Slight Typos? Graphic Language and Other Curiosities
- Operators, Operators Everywhere
- Style case studies
- Index Tables
- Generic Callbacks
- Construction Unions
- Monoliths "Unstrung," Part 1: A Look at std::string
- Monoliths "Unstrung," Part 2: Refactoring std::string
- Monoliths "Unstrung," Part 3: std::string Diminishing
- Monoliths "Unstrung," Part 4: std::string Redux
Caractéristiques techniques
PAPIER | |
Éditeur(s) | Addison Wesley |
Auteur(s) | Herb Sutter |
Parution | 20/09/2004 |
Nb. de pages | 326 |
Format | 19 x 23 |
Couverture | Broché |
Poids | 560g |
Intérieur | Noir et Blanc |
EAN13 | 9780201760422 |
ISBN13 | 978-0-201-76042-2 |
Avantages Eyrolles.com
Nos clients ont également acheté
Consultez aussi
- Les meilleures ventes en Graphisme & Photo
- Les meilleures ventes en Informatique
- Les meilleures ventes en Construction
- Les meilleures ventes en Entreprise & Droit
- Les meilleures ventes en Sciences
- Les meilleures ventes en Littérature
- Les meilleures ventes en Arts & Loisirs
- Les meilleures ventes en Vie pratique
- Les meilleures ventes en Voyage et Tourisme
- Les meilleures ventes en BD et Jeunesse
- Informatique Développement d'applications Technologies objet
- Informatique Développement d'applications Programmation graphique et multimédia Programmation graphique en C/C++
- Informatique Développement d'applications Langages C++
- Informatique Développement d'applications Outils de développement Borland C++ Builder
- Informatique Développement d'applications Outils de développement Visual C++
- Informatique Développement d'applications Outils de développement Visual C++ .NET