There is nothing new in this book, most of it is excerpts from effective C + + or other books, and the following are some of the things I might overlook when I'm programming. 1. Structure body variable layout: From small to large declaration by type size. 2. Introduce a large amount of C code in C + + code, and note whether to add extern "C". (C + + overloads, function names are flagged) 3. Manage the new object with a smart pointer. 4. Initialize with the member initialization list. 5. If you do not copy such functions, privatize it. 6. The Declaration and definition of the template are placed in the header file. 7. Reduce the number of function parameters as much as possible, because increasing the number of parameters increases the number of times the function is in the stack (multiple parameters can be encapsulated in a class). 8. Always be careful when programming, but optimize your code to the end.
"Writing High-quality code: 150 recommendations for improving C + + programs"