Prix bas
CHF49.20
Cet article manque chez l'éditeur. Il sera livré dès que possible.
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.
Auteur
Herb Sutter is the author of three highly acclaimed books, Exceptional C++ Style, Exceptional C++, and More Exceptional C++ (Addison-Wesley). He chairs the ISO C++ standards committee, and is contributing editor and columnist for C/C++ Users Journal. As a software architect for Microsoft, Sutter leads the design of C++ language extensions for .NET programming.
Texte du rabat
C++ guru Herb Sutter provides a thorough and pragmatic understanding of the language while showing how to write exceptional code in C++.
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:
Contenu
Preface. 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.
Bibliography.
Index.