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

Summary

In this chapter, you learned about the following topics:

  • Code smells and the importance of refactoring code
  • SOLID design principles:
    • Single responsibility principle
    • Open closed principle
    • Liskov substitution
    • Interface segregation
    • Dependency injection
  • Various code smells:
    • Comments smell
    • Long method
    • Long parameter list
    • Duplicate code
    • Conditional complexity
    • Large class
    • Dead code
  • Object-oriented code smells' primitive obsession
    • Data class
    • Feature envy

You also learned about many refactoring techniques that will help you maintain your code cleaner. Happy coding!

 

 

 

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