Package design principle

xiaoxiao2021-03-06  59

Design Principles of Package - "Agile Software Development" Reading Notes

Excerpt from "Agile Software Development - Principle, Mode and Practice" - Robert C. Martin

(1) The particle size of the reuse of the release equivalence is the particle size released. (2) All kinds of common reuse should be commonly reused. If you reuse a class in the package, you have to reusable all classes in the package. 1. Classs that are not tightly linked to each other should not be in the same package. (3) All classes in the co-closed principle package should be commonly closed for changes in the same type of nature. A variation is influenced to a package, the impact on all classes in the package, and no impact on other packets. (4) There is no dependence on the dependencies of the package. (5) Stable Dependency is dependent on a stable direction. (6) The abstraction of stable abstract principles should be consistent with other stability. 1. A stable package is abstract, and an unstable package is specific.

转载请注明原文地址:https://www.9cbs.com/read-112348.html

New Post(0)