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++ 程式。不過,這些指導方針充滿了優秀的建議,讓人難以知道從何開始。因此:從《美麗的 C++》開始。資深 C++ 程式設計師 Guy Davidson 和 Kate Gregory 確定了 30 條特別有價值的核心指導方針,並提供詳細的實用知識以充分利用這些指導方針。Davidson 和 Gregory 確定了五個主要領域,以便從核心指導方針中獲益:

- 避免無謂的爭論(在瑣事上浪費寶貴的時間,而不是專注於真正重要的事情)
- 不要通過編寫更可能在未來造成問題的程式碼來傷害自己
- 知道哪些功能應該避免,哪些功能應該使用
- 正確使用 C++ 的新功能,以獲得其好處而不產生新問題
- 預設良好地編寫程式碼,例如,保持靜態類型安全、防止記憶體洩漏並啟用優化

在整本書中,Davidson 和 Gregory 提供了非常有用的概念見解,例如,為什麼你應該以任務而非執行緒的方式思考。他們闡明了成功使用關鍵 C++ 特性的經驗法則:從建構函數到函數、指標和錯誤處理,再到命名空間。你將學會如何充分利用新或不斷演變的特性,如 enum 和模板,並編寫預設更穩健且可優化的程式碼。

《美麗的 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 的工程實踐負責人,專注於其《Total War》遊戲系列,負責策劃其目錄,並提升工程團隊的程式設計標準。他是 ISO C++ 委員會的成員,管理 #include Discord 伺服器,並在 C++ 活動中演講,透過 Prospela 和 BAME in Games 提供 C++ 輔導支持。

Kate Gregory 擁有超過 40 年的多語言開發經驗。她在五大洲擔任主題演講者,並在許多 C++ 活動中擔任志工,特別是 #include,致力於讓這個行業變得更加友好和包容。自 1986 年以來,她和她的丈夫經營 Gregory Consulting,幫助全球客戶提高效率。