我认为依赖倒置非常重要,因此打算转换对Guice的依赖。
I think Dependency Inversion is so important that I want to invert the dependencies on Guice!
依赖倒置或者倒置控制,在依赖关系实现方式里面更加知名。
Dependency Inversion or Inversion of Control are better know terms referring to the way in which the dependencies are realized.
通过应用依赖倒置,模块能够用修改依赖模块的方式简单的被其他模块修改。
By applying the dependency Inversion the modules can be easily changed by other modules just changing the dependency module.
依赖倒置原则声明了我们应该将高层模块和低层模块解偶,在高层类和低层类之间引入一个抽象层。
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.
移动你的所有视图和模型接口,所以你的演示项目不会有依赖于这两个组件(详情查看依赖倒置原则)。
Contracts. Move there all your View and Model interfaces, so your Presenter project won't have dependencies from these two assemblies (for more details check dependency inversion principle).
方面用于倒置依赖和解耦代码。
依赖性倒置原则的基本思想就是对象应该依赖于抽象而不是实现。
The basic idea behind dependency inversion is that objects should be dependent upon abstractions and not upon implementations.
更进一步,他倒置了依赖关系:我们应该基于抽象来写细节,而不是基于细节来写我们的抽像。
Further more it inverts the dependency: instead of writing our abstractions based on details, the we should write the details based on abstractions.
依赖性倒置注重依赖于抽象(而非实现),这样可以在同一个代码库中创建大量的灵活性。
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.
依赖性倒置原则被证明是编写可维护和可测试的高质量代码的必要条件。
The Dependency Inversion Principle has proved essential for writing high-quality, maintainable, and therefore testable code.
有些可能管理自己的数据,如TestCase;有些可能得益于依赖性倒置(dependencyinversion),在外部建立配置。
Some might manage their own data, as TestCase does; others might benefit from dependency inversion, where their configuration is established extrinsically.
通过倒置依赖原则和依赖于抽象的机制,可以使得系统系统更加健壮和稳定。
Trough Depedency Inversion Policy, we can make that all concrete depend on abstract, which makes the system more stable and robust.
通过倒置依赖原则和依赖于抽象的机制,可以使得系统系统更加健壮和稳定。
Trough Depedency Inversion Policy, we can make that all concrete depend on abstract, which makes the system more stable and robust.
应用推荐