编码原则 之 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

原文地址:https://www.cnblogs.com/panpanwelcome/p/10773690.html