Create CLEAN Code, or code that is Cohesive, Loosely coupled, Encapsulated, Assertive, and Nonredundant. CLEAN code is quality code.
In this chapter, we discovered…
Cohesive code reduces side effects.
Loosely coupled code is easier to test.
Encapsulated code is easier to extend.
Assertive code makes software more modular.
Nonredundant code reduces maintenance issues.
If we define good code as code that’s simple to understand and work with, we can identify specific code qualities that support this. While these code qualities may seem like small things, they add up, and paying attention to them can guide us to build more maintainable software.
Martin, Robert C. Clean Code: A Handbook of Agile Software Craftsmanship. Upper Saddle River, NJ: Prentice Hall, 2008.
Hevery, Miško. Google Tech Talks. “Clean Code Talks.” 2008. http://misko.hevery.com/2008/12/08/clean-code-talks-inheritance-polymorphism-testing/