The Ultimate Question of Programming, Refactoring, and Everything
Publisher: Free access
Published: 2016
Place of publication: Russia
Description: This book is intended for C/C++ programmers, but it could be of interest for developers using other languages as well. 
What makes the book peculiar is the descriptions of real, not theoretical cases at the base of it. Each chapter starts with a code fragment taken from a real application, and then the author gives various tips of how this bug could be avoided. The questions touched upon in this book can help the readers improve the personal coding style and the coding standards used in the team.
The book covers 42 topics. In spite of the simple titles of the chapters, the bugs found are really various and non-standard. In addition to that, the text provides a lot of links to interesting materials that give more details on topics. To make more use of this book, please don’t hurry and go to the links provided.
Table of contents: title: 1.	Don't do the compiler's job; title: 2.	Larger than 0 does not mean 1; title: 3.	Copy once, check twice; title: 4.	Beware of the ?: operator and enclose it in parentheses; title: 5.	Use available tools to analyze your code; title: 6.	Check all the fragments where a pointer is explicitly cast to integer types; title: 7.	Do not call the alloca() function inside loops; title: 8.	Remember that an exception in the destructor is dangerous.; title: 9.	Use the '\0' literal for the terminal null character; title: 10.	Avoid using multiple small #ifdef blocks; title: 11.	Don't try to squeeze as many operations as possible in one line; title: 12.	When using Copy-Paste, be especially careful with the last lines; title: 13.	Table-style formatting; title: 14.	A good compiler and coding style aren't always enough; title: 15.	Start using enum class in your code, if possible; title: 16.	"Look what I can do!" - Unacceptable in programming; title: 17.	Use dedicated functions to clear private data; title: 18.	The knowledge you have, working with one language isn't always applicable to another language; title: 19.	How to properly call one constructor from another; title: 20.	The End-of-file (EOF) check may not be enough; title: 21.	Check that the end-of-file character is reached correctly (EOF); title: 22.	Do not use #pragma warning(default:X); title: 23.	Evaluate the string literal length automatically; title: 24.	Override and final identifiers should become your new friends.; title: 25.	Do not compare 'this' to nullptr anymore; title: 26.	Insidious VARIANT_BOOL; title: 27.	Guileful BSTR strings; title: 28.	Avoid using a macro if you can use a simple function; title: 29.	Use a prefix increment operator (++i) in iterators instead of a postfix (i++) operator; title: 30.	Visual C++ and wprintf() function; title: 31.	In C and C++ arrays are not passed by value; title: 32.	Dangerous printf; title: 33.	Never dereference null pointers; title: 34.	Undefined behavior is closer than you think; title: 35.	Adding a new constant to enum don't forget to correct switch operators; title: 36.	If something strange is happening to your PC, check its memory.; title: 37.	Beware of the 'continue' operator inside do {...} while (...); title: 38.	Use nullptr instead of NULL from now on; title: 39.	Why incorrect code works; title: 40.	Start using static code analysis; title: 41.	Avoid adding a new library to the project.; title: 42.	Don't use function names with "empty"