C++ Coding Standards “Coding standards” here doesn't mean “how many spaces should I indent my code?” This book contains 101 best practices, idioms, and common pitfalls that can help you to write correct, understandable, and efficient C++ code.
In general, irrespective of the programming language, these are key 5 SOLID principles that will help write clean, reusable, error free code.
- Single Responsibility
- Open for Extension, Closed for Modification
- Liskov Substitution
- Interface Segregation
- Dependency Inversion
All these principles are explain here