C++ supports programming-in-the-large, allowing relationships between different parts of a program to be expressed. The scope of C++ programming style therefore goes beyond traditional in-the-small issues which relate to the details of line-by-line coding. This book examines the use of the in-the-large language features of C++, which sometimes confuse even experienced programmers. The author demonstrates that unwarranted use of the more powerful language features may lead to cluttered programs which are harder to comprehend and sometimes less efficient than more straightforward alternatives. Cargill rewrites several programs, using techniques that range from improving consistency to removing redundant inheritance. The presentation simulates a code review, in which readers may independently evaluate and criticize alternative approaches to programming problems, and then compare their analyses with those of the author. Design and coding style rules are distilled from the examples. Understanding and following these rules will help professional programmers design and write better C++ programs.A chapter is devoted to each of the following topics: *abstractions *operator overloading *consistency *wrappers *unnecessary inheritance *efficiency *virtual functions Building on the programming rules introduced in the first seven chapters, Cargill presents a case study in which a single program undergoes repeated transformations that improve its overall quality while reducing its size. The book concludes with a chapter on multiple inheritance. 0201563657B04062001
發表於2024-12-18
C++ Programming Style 2024 pdf epub mobi 電子書 下載
如果是1990年看這本書,C++剛問世不久,這本書可以指導C語言程序員轉嚮麵嚮對象領域。但時至今日,C++20都快問世瞭,再讀本書未免有點過時。 簡單舉例,const 的風格沒怎麼涉及,引用的方式沒涉及,STL完全沒涉及。 另一方麵,這個小冊子並沒有係統性,像是博客文章的集閤。沒...
評分一本單薄的好書,總共就10章。第10章是個摘要,其實主要的就是前9章分彆討論瞭9個話題。這本書適閤誰看?適閤有編碼經驗的初級c++程序員,比如我。日常寫瞭很多c++業務代碼,對c++語法有所瞭解。但是時常會睏惑,一個類怎麼設計纔好?什麼是一個好的抽象?怎麼分析一段代碼的性...
評分如果是1990年看這本書,C++剛問世不久,這本書可以指導C語言程序員轉嚮麵嚮對象領域。但時至今日,C++20都快問世瞭,再讀本書未免有點過時。 簡單舉例,const 的風格沒怎麼涉及,引用的方式沒涉及,STL完全沒涉及。 另一方麵,這個小冊子並沒有係統性,像是博客文章的集閤。沒...
評分如果是1990年看這本書,C++剛問世不久,這本書可以指導C語言程序員轉嚮麵嚮對象領域。但時至今日,C++20都快問世瞭,再讀本書未免有點過時。 簡單舉例,const 的風格沒怎麼涉及,引用的方式沒涉及,STL完全沒涉及。 另一方麵,這個小冊子並沒有係統性,像是博客文章的集閤。沒...
評分這書看著簡單,等自己一邊翻書,一邊開足腦力想,再去對著電腦敲,兩天下來我頭就大瞭。同事看我的痛苦樣子,說他看獵豹網校上有這個視頻課程,象看土豆視頻那樣,還高清的咧,看老師一邊講一邊每一步都操作得清清楚楚,一下子就能學會瞭。我也去看瞭下,是哦,這樣學可容易多...
圖書標籤: C++ 軟件開發 計算機 編程 程序設計 c++ Programming IT
C++ Programming Style 2024 pdf epub mobi 電子書 下載