Oh My: Maintainable = Testable + Understandable
So there you were… Palms sweaty, highly caffeinated, and ready to solve worlds problems with code. You have a brilliant idea that will solve this tough problem, however, it requires modifying existing code base. With plenty of creative freedom given by your boss, you embark on the journey of implementing this idea and bravely “improving” the existing code base. You’re finally done and and excited to see your great idea come to life.
So… how do you know that your changes did not break anything?
The answer is Test Driven Development (TDD) and decent code coverage. Writing clean, modular code, is what makes it testable and understandable. So what happens if your code is testable and understandable? It becomes maintainable!
maintainable = testable + understandable