Discussion on the reason of Linux controllable complexity __linux

Source: Internet
Author: User

a summary of factors influencing the control of complex degree

1) architecture. To have an absolutely good structure. Otherwise, the operating system of this "high-rise" is impossible to build, built to half across, and not strong.

2 module: Keep it clear and keep it simple. (Keeping it clean,keeping it simple).
The only way to write complex software without being defeated.
When it is not clear enough, give up and refactor until it is simple enough to be clear enough to localize. Reduce the problem to a small enough local range, so that it can be controlled, can be optimized, can be modified.
Communication between modules, communication between processes:
The modules are communicated through the application Interface (API)-a set of rigorous, well-defined program calls and data structures.

3) Code reusability is high.

4) naming mechanism. Good name, let it be clearer. When you can't find a good name, it means you don't know enough about the program.
5 The use of makefile "city map" to control the complexity;


second, reduce the complexity of the program design method summary

1 strengthen the understanding of the programming language itself can reduce the complexity of design. Because of the code error, due to the unknown code, due to the formation of the invisible pressure of the code will be greatly reduced.

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.