Beautiful C++: 30 Core Guidelines for Writing Clean, Safe, and Fast Code (Paperback) (美麗的 C++:撰寫乾淨、安全且快速程式碼的 30 條核心指導原則)

Davidson, J., Gregory, Kate

買這商品的人也買了...

相關主題

商品描述

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.

商品描述(中文翻譯)

C++ 核心指南可以幫助任何 C++ 開發者設計和撰寫出非常可靠、強健且高效的 C++ 程式。但是這些指南充滿了優秀的建議,以至於很難知道從何處開始。所以:從這裡開始,從《Beautiful C++》開始。領先的 C++ 程式設計師 Guy Davidson 和 Kate Gregory 確定了 30 個核心指南,您會發現它們特別有價值,並提供詳細的實用知識,以充分利用這些指南。Davidson 和 Gregory 確定了從核心指南中獲益的五個主要領域:

- 避免浪費寶貴的時間在瑣事上,而不是真正重要的事情上
- 通過撰寫更容易引起問題的程式碼來避免自己受傷
- 知道應該避免使用哪些功能,以及應該使用哪些功能
- 正確使用 C++ 的新功能,以獲得其好處而不引入新問題
- 通過預設撰寫良好的程式碼,例如保持靜態類型安全、防止洩漏和啟用優化

在整個過程中,Davidson 和 Gregory 提供了非常有用的概念性見解,例如為什麼應該以任務而不是線程的方式思考。他們闡明了如何更成功地使用關鍵的 C++ 功能:從構造函數到函數、指針和錯誤處理到命名空間。您將學習如何充分利用新的或不斷演進的功能,例如枚舉和模板,並撰寫出預設更健壯且可優化的程式碼。

《Beautiful C++》可以幫助您快速改進您撰寫或設計的每個 C++ 程式,並且它將是 Rainer Grimm 全面參考書《C++ 核心指南》的完美補充。

作者簡介

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.

作者簡介(中文翻譯)

J. Guy Davidson,Creative Assembly 的工程實踐主管,負責其《全面戰爭》遊戲系列,管理其產品目錄,並提升工程團隊的編程標準。他是國際標準組織 C++ 委員會的成員,管理 #include discord 伺服器,參與 C++ 活動演講,並透過 Prospela 和 BAME in Games 提供 C++ 導師支援。

Kate Gregory 在多種語言中擁有超過 40 年的開發經驗。她在五大洲發表主題演講,並積極參與多項 C++ 活動,特別是 #include,致力於使該行業更加友善和包容。自 1986 年以來,她和丈夫一起經營 Gregory Consulting,幫助全球客戶提高效能。