Buy New
-
To see product details, add this item to your cart.
Ships from: MyPrepbooks Sold by: MyPrepbooks
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: momox Shop Sold by: momox Shop
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Beautiful C++: 30 Core Guidelines for Writing Clean, Safe, and Fast Code
Purchase options and add-ons
Discover the Beauty of Modern C++
" Beautiful C++ presents the C++ Core Guidelines from a developer's point of view with an emphasis on what benefits can be obtained from following the rules and what nightmares can result from ignoring them. For true geeks, it is an easy and entertaining read. For most software developers, it offers something new and useful."--Bjarne Stroustrup, inventor of C++ and co-editor of the C++ Core Guidelines
Writing great C++ code needn't be difficult. The C++ Core Guidelines can help every C++ developer design and write C++ programs that are exceptionally reliable, efficient, and well-performing. But the Guidelines are so jam-packed with excellent advice that it's hard to know where to start. Start here, with Beautiful C++.
Expert C++ programmers Guy Davidson and Kate Gregory identify 30 Core Guidelines you'll find especially valuable and offer detailed practical knowledge for improving your C++ style. For easy reference, this book is structured to align closely with the official C++ Core Guidelines website.
Throughout, Davidson and Gregory offer useful conceptual insights and expert sample code, illuminate proven ways to use both new and longstanding language features more successfully, and show how to write programs that are more robust and performant by default.
- Avoid "bikeshedding": stop wasting valuable time on trivia
- Don't hurt yourself by writing code that will cause problems later
- Know which legacy features to avoid and the modern features to use instead
- Use newer features properly, to get their benefits without creating new problems
- Default to higher-quality code that's statically type-safe, leak resistant, and easier to evolve
- Use the Core Guidelines with any modern C++ version: C++20, C++17, C++14, or C++11
There's something here to improve virtually every program you write, design, or maintain.
For ease of experimentation, all sample code is available on Compiler Explorer at https://godbolt.org/z/cg30-ch0.0.
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
- ISBN-100137647840
- ISBN-13978-0137647842
- Edition1st
- PublisherAddison-Wesley Professional
- Publication dateDecember 16, 2021
- LanguageEnglish
- Dimensions7 x 0.8 x 9.1 inches
- Print length352 pages
Frequently bought together

Customers who viewed this item also viewed
- C++ Software Design: Design Principles and Patterns for High-Quality SoftwarePaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Tour of C++, A (C++ In-Depth Series)PaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Operating Systems: Three Easy PiecesPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- C++ Concurrency in ActionPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19Only 4 left in stock (more on the way).
- Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14PaperbackGet it as soon as Tuesday, Sep 29
- Inside the Machine: An Illustrated Introduction to Microprocessors and Computer ArchitecturePaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
Customers also bought or read
- C++ Software Design: Design Principles and Patterns for High-Quality Software
Paperback$51.24$51.24FREE delivery Sat, Sep 19 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Mon, Sep 21 - Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture
Paperback$46.15$46.15FREE delivery Sat, Sep 19 - C++: A Beginner's Guide, Second Edition: A Beginner's Guide, Second Edition
Paperback$35.00$35.00FREE delivery Sep 28 - Oct 1 - Design Patterns: Elements of Reusable Object-Oriented Software
Hardcover$24.35$24.35Delivery Sat, Sep 19 - Effective Modern C++: 42 Specific Ways to Improve Your Use of C++11 and C++14
Paperback$44.40$44.40FREE delivery Sep 29 - Oct 14 - C++17 In Detail: Learn the Exciting Features of The New C++ Standard!
Paperback$31.99$31.99Delivery Mon, Sep 21 - C++ Best Practices: 45ish Simple Rules with Specific Action Items for Better C++ (With Color Syntax Highlighting)
Paperback$25.99$25.99Delivery Mon, Sep 21 - The Art of Writing Efficient Programs: An advanced programmer's guide to efficient hardware utilization and compiler optimizations using C++ examples
Paperback$39.59$39.59FREE delivery Mon, Sep 21 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Sat, Sep 19 - Modern C++ Programming Cookbook: Master Modern C++ with comprehensive solutions for C++23 and all previous standards
Paperback$26.53$26.53Delivery Mon, Sep 21 - C++ Memory Management: Write leaner and safer C++ code using proven memory-management techniques
Paperback$29.99$29.99Delivery Mon, Sep 21 - Programming with C++20: Concepts, Coroutines, Ranges, and more
Paperback$38.00$38.00FREE delivery Mon, Sep 21 - C Programming Language, 2nd Edition#1 Best SellerC Programming Language
Paperback$60.30$60.30FREE delivery Sat, Sep 19 - Programming: Principles and Practice Using C++ (C++ In-depth)#1 Best SellerC++ Programming Language
Paperback$56.72$56.72FREE delivery Sat, Sep 19 - Structure and Interpretation of Computer Programs - 2nd Edition (MIT Electrical Engineering and Computer Science)#1 Best SellerCompiler Design
Paperback$57.20$57.20FREE delivery Sat, Sep 19 - Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Sep 30 - Oct 16 - C++ High Performance: Master the art of optimizing the functioning of your C++ code, 2nd Edition
Paperback$59.99$59.99FREE delivery Mon, Sep 21 - Systems Performance (Addison-Wesley Professional Computing Series)#1 Best SellerComputer Performance Optimization
Paperback$57.41$57.41FREE delivery Sat, Sep 19 - Asynchronous Programming with C++: Build blazing-fast software with multithreading and asynchronous programming for ultimate efficiency
Paperback$41.99$41.99FREE delivery Mon, Sep 21
From the Publisher
Foreword by Bjarne Stroustrup, inventor of C++ and co-editor of the C++ Core Guidelines
I enjoyed reading this book. I enjoyed it especially because it presents the C++ Core Guidelines (CG) very differently from how the CG itself does it. The CG presents its rules relatively tersely in a fixed format. The CG rules are often expressed in language-technical terms with an emphasis on enforcement through static analysis. This book tells stories, many coming from the games industry based on the evolution of code and techniques over decades. It presents the rules from a developer’s point of view with an emphasis on what benefits can be obtained from following the rules and what nightmares can result from ignoring them. There are more extensive discussions of the motivation for rules than the CG themselves can offer.
The CG aims for a degree of completeness. Naturally, a set of rules for writing good code in general cannot be complete, but the necessary degree of completeness implies that the CG are not meant for a systematic read. I recommend the introduction and the philosophy section to get an impression of the aims of the CG and its conceptual framework. However, for a selective tour of the CG guided by taste, perspective, and experience, read the book. For true geeks, it is an easy and entertaining read. For most software developers, it offers something new and useful.
—June, 2021
Editorial Reviews
About the Author
Kate Gregory has 40+ years of development experience in multiple languages. She has keynoted on five continents, and volunteers in many C++ activities, especially #include , which is making the industry more welcoming and inclusive. Since 1986 she and her husband have run Gregory Consulting, helping clients worldwide become more effective.
Product details
- Publisher : Addison-Wesley Professional
- Publication date : December 16, 2021
- Edition : 1st
- Language : English
- Print length : 352 pages
- ISBN-10 : 0137647840
- ISBN-13 : 978-0137647842
- Item Weight : 2.31 pounds
- Dimensions : 7 x 0.8 x 9.1 inches
- Best Sellers Rank: #1,031,503 in Books (See Top 100 in Books)
- #257 in C++ Programming Language
- #1,868 in Computer Programming Languages
- #12,483 in Education (Books)
- Customer Reviews:
About the author

Kate Gregory has been using C++ since before Microsoft had a C++ compiler, and has been paid to program since 1979. She loves C++ and believes that software should make our lives easier. That includes making the lives of developers easier! She'll stay up late arguing about deterministic destruction or how C++ 11 is not the C++ you remember.
Kate runs a small consulting firm in rural Ontario and provides mentoring and management consultant services, as well as writing code every week. She has spoken all over the world, written over a dozen books, and helped thousands of developers to be better at what they do. Kate is a Microsoft Regional Director, and a Visual C++ MVP, an Imagine Cup judge and mentor, and an active contributor to StackOverflow and other StackExchange sites. She develops courses for Pluralsight, primarily on C++ and Visual Studio. In 2014 she was Open Content Chair for CppCon, the largest C++ conference ever held, where she also delivered sessions.




















