Three theorem of Programming Language

Source: Internet
Author: User
I have seen many Article , The author compares two or more

Language To prove that his favorite 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, draw a conclusion about your languageCodeLess 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". In any case, how can this be chosen for you? Programming Language is useful for reference. The following areProgramming LanguageWill help you objectively.

Basic Programming Language Theorem

To analyze programming languages, you must first understand why they exist. Thus, the basic theorem of my programming language is derived: the existence of programming language is to let 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 "1" and "0 ". Program We cannot give orders to machines, so we invented programming languages to understand and communicate what we want to do to computers.

Therefore, to compare any language, we should weigh the convenience they bring to our understanding of computer operations.

Theorem 2

If a programmer is puzzled by a piece of code, he will discard or rewrite it.

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: parm = 10

Since no variables are declared, 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:

◆ General features: performance, compatibility, operations ......

◆ Team size

◆ Code

◆ Code life

◆ Application fields

◆ Tool: the last question to consider when selecting a language is tool support. A proper editor plays no less role in your programming than the syntax of the language itself.

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.