Series-innovative principles-7-nesting principles

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.