编码原则 之 Stable Dependencies

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

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

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

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

 

“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.” – Anonymousci

相关文章
相关标签/搜索