Which design supports low grip?

Design # 1

Design # 2

Which design supports overall low connectivity? and why?

+5
source share
3 answers

The first payment is included in the sale. In the second, it is related to register and sale. I would say that the former has a lower connection because the Region has no concept of payment. Payment can be completely eliminated completely and does not require changes in the Register. In the second case, if you have eliminated the payment, both the Register and the Sale will have to change.

+1
source

First Paymentcreated Sale, so it’s more connected.

- http://en.wikipedia.org/wiki/Dependency_injection, , , . Payment Sale .

+1

I do not see the point in the first example. Register not needed?

In the second example, you can use any type of payment. (Visa, cash, etc.). Therefore, it is more loosely coupled.

+1
source

All Articles