你看,客户端和服务段都耦合在一起。
将模块松散耦合在一起是件好事情;它是允许您封装更改的属性之一。
Loosely coupling your modules is a good thing; it's one of the properties that allows you to encapsulate change.
在这个示例里,验证逻辑和使用它的对象紧密耦合在一起。
In this example, the validation logic is tightly coupled to the object in which it's being used. The weaknesses of this approach should be fairly obvious.
应用推荐