Details should depend upon abstractions.
细节应该依赖于抽象。
Depend upon Abstractions. Do not depend upon concretions.
依赖抽象,不要依赖具体。
Abstractions should not depend upon details. Details should depend upon abstractions.
抽象不应当依赖于细节,细节应当依赖于抽象。
High level modules should not depend upon low level modules. Rather, both should depend upon abstractions.
高层模块不应该依赖底层模块,两者都应该依赖其抽象。
Abstractions should not depend upon details, details should depend upon abstractions. Program to an interface, not an implementation.
抽象不应该依赖于细节,细节应该依赖于抽象,要针对接口编程,不要针对实现编程。
High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions.
高层不应该依赖底层模块,两者应该抽象(无法被实例话的接口,类啥的);抽象不应该依赖细节;细节应该反而依赖抽象,换句话说也就是面向接口编程。
High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions.
高层不应该依赖底层模块,两者应该抽象(无法被实例话的接口,类啥的);抽象不应该依赖细节;细节应该反而依赖抽象,换句话说也就是面向接口编程。
应用推荐