Beautiful C++: 30 Core Guidelines for Writing Clean, Safe, and Fast Code

Beautiful C++: 30 Core Guidelines for Writing Clean, Safe, and Fast Code

作者: Davidson J. Gregory Kate
出版社: Addison Wesley
出版在: 2021-12-16
ISBN-13: 9780137647842
ISBN-10: 0137647840
裝訂格式: Quality Paper - also called trade paper
總頁數: 352 頁





內容描述


The C++ Core Guidelines can help any C++ developer design and write C++ programs that are exceptionally reliable, robust, and well-performing. But the Guidelines are so jam-packed with excellent advice that it's hard to know where to start. So: start here, with Beautiful C++. Leading C++ programmers Guy Davidson and Kate Gregory identify 30 core guidelines you'll find especially valuable, and offer detailed practical knowledge for making the most of them. Davidson and Gregory identify five major areas to gain benefit from the Core Guidelines:

Avoiding bikeshedding (wasting valuable time on trivia instead of what's really important)
Not hurting yourself by writing code that's more likely to cause you problems later
Knowing which features to avoid and which to use instead
Using C++'s newer capabilities properly, to get their benefits without creating new problems
Writing code well by default--e.g., to remain statically type safe, prevent leaks, and enable optimization

Throughout, Davidson and Gregory offer powerfully useful conceptual insights--for instance, why you should think in terms of tasks, not threads. They illuminate proven ways to use key C++ features more successfully: from constructors to functions, pointers and error handling to namespaces. You'll learn how to make the most of new or evolving features such as enum and templates, and write code that's more robust and optimizable by default.
Beautiful C++ can help you quickly improve every C++ program you write or design--and it'll be the perfect complement to Rainer Grimm's comprehensive reference, C++ Core Guidelines.


作者介紹


J. Guy Davidson, head of engineering practice at Creative Assembly, works on its Total War game franchise, curates its catalogue, and improves programming standards across its engineering team. He serves on the ISO C++ committee, moderates the #include discord server, speaks at C++ events, and offers C++ mentoring support through Prospela and BAME in Games.
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.




相關書籍

系統管理員懶人包|Shell Script 自動化指令集 (Wicked Cool Shell Scripts)

作者 Dave Taylor Brandon Perry 江湖海 譯

2021-12-16

面向對象程序設計教程——C++

作者 王曉帆 李薇

2021-12-16

A Practical Guide to Linux Commands, Editors, and Shell Programming (4th Edition)

作者 Mark G. Sobell Matthew Helmke

2021-12-16