"Design Mode Analysis" second part of the traditional contrast of object-oriented design

xiaoxiao2021-03-06  102

the second part

Limitations of traditional object-oriented design

Partial overview

In this part, I use standard object-oriented methods to solve problems in a real world. This is a problem I have been studying when I started learning design mode.

chapter

Discussion theme

3 L Describe CAD / CAM Problem: From a large computer-aided design / computer-aided manufacturing (CAD / CAM) database analysis to get a complex expensive analysis program. l Since the CAD / CAM system continues to evolve, this problem urgently needs a flexible code. 4 l My first solution for CAD / CAM issues, using standard object-oriented methods. l When I actually study this problem, I haven't comprehend the essence of the principles behind many design patterns. This leads to an excessive relying on inheritance initial solution. It is easy to design and operate, but it ends due to some special circumstances. l My program has a major problem - it is difficult to maintain and not flexible - this is precisely using object-oriented design to avoid things. L Later, in the fourth part, Chapter 12, "Solve CAD / CAM issues", I will re-examine this issue. I will use the design pattern to build the architecture of the app and the details of it to solve this problem. By doing this, I created a more easily maintained program and more flexible.

This part is important. Because it illustrates a problem caused by a traditional object-oriented design - unnecessary high inheritance hierarchy, high coupling, low cohesion.

转载请注明原文地址:https://www.9cbs.com/read-104506.html

New Post(0)