Some might manage their own data, as TestCase does; others might benefit from dependency inversion, where their configuration is established extrinsically.
有些可能管理自己的数据,如TestCase;有些可能得益于依赖性倒置(dependency inversion),在外部建立配置。
The Dependency Inversion Principle has proved essential for writing high-quality, maintainable, and therefore testable code.
依赖性倒置原则被证明是编写可维护和可测试的高质量代码的必要条件。
Dependency inversion stresses reliance on abstractions over implementations, which creates a great deal of flexibility within a code base.
依赖性倒置注重依赖于抽象(而非实现),这样可以在同一个代码库中创建大量的灵活性。
One thing developers have come to agree on is that well-written code is maintainable, and the Dependency Inversion Principle is a sure way to design for maintainability.
开发人员所赞同的一点是:编写良好的代码易于维护,依赖性倒置原则是进行可维护性设计的可靠方法。
Dependency Inversion Principle 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.
依赖倒置原则声明了我们应该将高层模块和低层模块解偶,在高层类和低层类之间引入一个抽象层。
Dependency Inversion Principle 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.
依赖倒置原则声明了我们应该将高层模块和低层模块解偶,在高层类和低层类之间引入一个抽象层。
应用推荐