依赖、耦合、面向对象、依赖倒置、控制反转、依赖注入、面向接口编程
The hallmark of a bad design is when any change to the system affects the client.
Löwy Juval • Righting Software
Coupling and cohesion are two concepts used to describe objects. A highly coupled object (such as Addy) requires lots of other objects to perform basic jobs, like math. An object with high cohesion is far more independent: it can perform most functions independently. Objects with high coupling have low cohesion, and the reverse is also true: object
... See moreEric Conrad, Seth Misenar, Joshua Feldman • CISSP Study Guide
Low cohesion results in unclear responsibilities.
- Solution : Apply loose coupling and high cohesion. In a loosely coupled system, each component is independent and changes in one will not affect the others. High cohesion means that each component i
Muaath Bin Ali • Microservices Design Principles
One of the main points of object-oriented programming is that data and actions are encapsulated in objects. You’re supposed to have to query objects for information and to request that they perform actions.
Joe Leo • The Well-Grounded Rubyist
Deliver the Bare Minimum
btxx.org
The hallmark of a bad design is when any change to the system affects the client.