O'Reilly logo

Mastering C++ Programming by Jeganathan Swaminathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Code Smells and Clean Code Practices

This chapter will cover the following topics:

  • Introduction to code smells
  • The concept of clean code
  • How agile and clean code practices are related
  • SOLID design principle
  • Code refactoring
  • Refactoring code smells into clean code
  • Refactoring code smells into design patterns

Clean code is the source code that works in an accurate way functionally and is structurally well written. Through thorough testing, we can ensure the code is functionally correct. We can improve code quality via code self-review, peer code review, code analysis, and most importantly, by code refactoring. 

The following are some of the qualities of clean code:

  • Easy to understand
  • Easy to enhance
  • Adding new functionality doesn't require ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required