Table of Contents
Preface
1
Coding Standards in C++
The difference between good code and bad code
Why coding standards are important
Code convention
Language features limitations
General guidelines
Readability, efficiency, maintainability, and usability
Readability
Efficiency
Maintainability
Usability
Summary
2
Main Software Development Principles
SOLID
The Single Responsibility Principle
The Open-Closed Principle
The Liskov Substitution Principle
The Dependency inversion principle
The KISS principle
The KISS and SOLID Principles together
Side effects and immutability
Con.1 – by default, make objects immutable
Con.2 – by default, make member functions const
Con.3 – by default, pass pointers and references to const
Con.4 – use const to define ...
Get Refactoring with C++ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.