Decrease grip and grip according to the facade pattern

For my Software Design class, I need to find out if grip and grip can be reduced at the same time using the Facade pattern?

As you all probably know, when there is a low connection, class cohesion is high and vice versa.

For me this is a controversial state, but I still think that it is possible, but cannot find enough evidence to support this.

My answer is this. The reason for this is that if we give some instructions for classes that are cohesive, they will not function the same if there were no instructions. Given this, let's say that we have the same facade with instructions that have the ability to get attributes from classes with low or high coupling. If so, the classes will not be so dependent on each other, and the connection will also be reduced. Thus, we have a facade that at the same time reduces the grip and cohesion of the classes.

+4
source share

Source: https://habr.com/ru/post/1526639/


All Articles