My understanding of Programming

Source: Internet
Author: User

Environment and Law

Programming languages are like laws. The same types of laws have different rules in different countries and have different applicability. The same part may be simplified and cumbersome. It seems that both C ++ and Java support class inheritance, but Java only allows one class to have only one base class while C ++ can have multiple, it is like Chinese law that stipulates the One-wife system. At the same time, Java does not support pointer operations. It is like Chinese law does not allow citizens to use guns at will. Although it brings a lot of inconvenience, it makes the overall social environment safer. American citizens are allowed to use the guns, however, it is not easy to master and use firearms rationally. Although these rules are different, there is no essential difference in people's way of life, because we are all human beings, and our living habits are determined by our living environment, the language compiled and executed in x86 follows the same x86 rules.

Efficiency and Mode

The rules are roughly the same, but some of them are more efficient and some are lower. This is not a fundamental solution of the law. It is like an algorithm optimization.
Similarly, some societies are more stable and some are chaotic. This is not something that the law can fundamentally solve. Because the law is the most general rule, it is necessary to further improve the law to solve this problem, A more reasonable activity mode can also be introduced. For example, supermarkets on the street further unify the interfaces between customers and sellers (toll counters). Under the same retail rules, supermarkets are more advantageous than ordinary stores. This is the value of the design model.

People and Law

1. The average person abides by the law.

2. Good people observe the law and always check whether they comply with the laws.

3. High people observe the law, check whether they comply with the laws at all times, and learn how to develop better living habits (design patterns ).

4. The master abides by the law, constantly checks whether he has followed the laws, and understands how to develop better living habits (design patterns ), and constantly try to improve your life efficiency (using better algorithms ).

5. The sage abides by the law, constantly checks whether he has followed the laws, and understands how to develop better living habits (design patterns ), and constantly try to improve our living efficiency (using better algorithms), and begin to study and change our living environment, or develop more comprehensive laws.

 

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.