The DependencyInversionPrinciple has proved essential for writing high-quality, maintainable, and therefore testable code.
依赖性倒置原则被证明是编写可维护和可测试的高质量代码的必要条件。
2
One thing developers have come to agree on is that well-written code is maintainable, and the DependencyInversionPrinciple is a sure way to design for maintainability.
开发人员所赞同的一点是:编写良好的代码易于维护,依赖性倒置原则是进行可维护性设计的可靠方法。
3
DependencyInversionPrinciple states that we should decouple high level modules from low level modules, introducing an abstraction layer between the high level classes and low level classes.