Question: First, make it clear, what is loose coupling? What is tight coupling?
Answer: For example, two modules, a module and B module, when the correlation between the two is very much, it is called tight coupling, and vice versa, is loose coupling.
The way to achieve loose coupling, using the interface abstraction, when the association of two modules is only based on a few interfaces can be achieved, then, it should be called loose coupling, to achieve loose coupling is very necessary.
By the way, in the software design, should be separated from the level as far as possible, a few layers, each layer to do their job, cohesion poly, low coupling, at the same time, can be two modules of the relationship also abstracted out, for example, Ioc/di design mode, some people say spring ioc/di is meaningless, I do not agree, Because of the use of dependency injection, you can abstract the relationship of two modules, so that with some abstraction, such as the IOC container, more focused on a point, that is, spring in the IOC container focus on the new object, so that the various modules differentiated more clearly, each module focused on their own things.
Loose coupling and tight coupling