Labels: design different software security space impact needs to pay attention
The principles are described as follows:
1) embed an object into another object, and then embed the two objects into the third object, and so on;
This principle is also called the Russian doll principle. It aims to avoid affecting the original functions:
A) when necessary, it can reduce the volume and convenience of the system, or reduce the weight of the system, such as the telescopic fishing rod;
B) does not impede normal operations, such as the landing gear of an airplane;
C) reduce the storage volume of objects in the supersystem, such as supermarket trolleys;
D) Make full use of the system space to reduce the space occupied by the system, such as sliding doors;
The nesting principle is similar to the combination pattern in the software design idea in the organization, but the purpose is still a little strange. The purpose of the combination pattern in the software design is to be consistent, and the purpose of the nesting principle is to save space.
When considering nesting, you can try to consider nesting from different angles: horizontal, vertical, rotation and inclusion. The purpose is to see whether space can be saved or the weight can be reduced.
It should be noted that, although this principle may sometimes weaken the functions of nested objects, this effect should be avoided as much as possible.
Note: Some books also use car condoms as nesting principles. I think it is far-fetched. Although a car condom is built on a seat, it does not save space, A combination principle can be used at most.
Series-innovative principles-7-nesting principles