编码原则 之 Stable Dependencies

The Stable Dependencies Principle states that “The dependencies between software packages should be in the direction of the stability of the packages.

That is, a given package should depend only on more stable packages.”

Whenever a package changes, all packages that depend on it must be validated to ensure they work as expected after the change.

Thus, the more packages that depend on an unstable package, the greater the disruption whenever it changes.

“Writing software that fully meets its specifications is like walking on water. For each, the former is easy if the latter is frozen and near impossible if fluid.” – Anonymous

上一篇:python模块与包


下一篇:PHP使用static关键字声明静态属性和静态方法