Three theorems of programming languages

Source: Internet
Author: User
[Csdn Compile]I have seen many articles recently. I have compared two or more languages to try to prove that his preferred language is better. I have carefully observed that these articles generally focus on the weaknesses of other languages (not the preferred language of the author). Sometimes, they will give examples to prove the length of other languages, it is concluded that your language code is less and simpler.

In my opinion, although it is for the "weakness" of other languages, it is understandable for the author to write such an article. After all, such an article is based on facts, at least you can know the advantages of one language and the weakness of another language, and it will attract the attention and debate of other "language people, no matter how you select a programming language, this is a reference. The three theorem of programming language will help you objectively. Basic Programming Language TheoremTo analyze programming languages, you must first understand why they exist. This gives me the basic theorem of my programming language: Programming languages exist to help people understand computer operations.The emergence of programming languages is to overcome the limitations of human cognition. Modern computers run binary commands. It is difficult for us to write programs with "1" and "0". We cannot order machines. So we invented the programming language, in this way, we can understand and communicate what we want to do with computers. Therefore, to compare any language, we should weigh the convenience they bring to our understanding of computer operations. Theorem 2 IfProgrammerHe will discard or rewrite a piece of code.What's more important than how fast you can write code is that the code you write can be understood by people later. For example, since no variable is declared for parm = 10, how can I determine whether this line of code is correct or not? The compiler is useless, because it can be fully executed, so I can only understand the meaning of this Code through the code below. So it's hard to understand why searching for the error code is so awesome, even if you know what went wrong. Third Theorem No language is applicable to all programming tasks.This theorem is very clear and I will not explain it much. When selecting a programming language, consider the following:L general features: performance, compatibility, operations ...... L team size L code size L Code life l application field L Tools:The last question about language selection is tool support. A proper editor plays no less role in your programming than the syntax of the language itself. [Compilation: Yu Lei]

 

Related Article

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.