Home > Back-end >  Abstract encapsulation can lead to excessive complexity?
Abstract encapsulation can lead to excessive complexity?

Time:10-17

In architecture design, found that always will function point to abstract, and encapsulated into a new class, and then by combining the relationship between class and class, nested ceaselessly, formed the chain, if a class implements the two interfaces, in space is equivalent to form a mesh, and there are many nodes in the network,

As shown in figure is a simple framework for the tomcat implementation,
Feeling will be a class, into subclasses, and then move into subclasses subclasses, but ultimately functions are encapsulated in the first category,
Form a mesh class diagram so, won't make code complexity get higher?

CodePudding user response:

When you study the tomcat code architecture complexity and the complexity of the development of tomcat is not the same, the location of the station is different, view of the problem is also different.
When just want to study goal as simple as possible, development nature don't want to development in the social phenomena that kind of architecture design
  • Related