Home > Common Problem > body text

Yi language is a terrible language

(*-*)浩
Release: 2019-09-23 15:29:32
Original
4596 people have browsed it

Easy Language, or Chinese programming, is nothing new. Programming in "non-English programming languages" is not unique to China. Here is a Japanese programming development tool called "nadeshiko": https: //code.google.com/p/nadesiko/, I believe there are many other "non-English" programming languages, you can take a look if you are interested.

Yi language is a terrible language

If you have never used a Chinese programming language, you can try it. There are many similar things in China. One thing to point out is that the so-called "input problem" of the Chinese programming language "There is no difficulty as imagined. They often come with a development environment. You only need to enter the first letter of the pinyin of a word to complete the input (for example, if you enter b, a completion menu will pop up, which includes "play music" and "save page". ” and other options, the same as what you see when pressing . in common IDEs). (Recommended learning: web front-end video tutorial)

Take C language as an example. The environment of C language is that software developed in assembly language cannot be transplanted on different hardware, but that The hardware of the period often had low performance, so there was a computer compiler (interpreter in the early days) that could recognize (compile or interpret) and at the same time meet the needs of the operating system developed at that time to directly operate the memory (pointers with arithmetic capabilities). ).

If you are careful, you can find that many features of the C language catered to the needs of that era. There are register, auto, and inline keywords in the C language, indicating that the compiler level at that time was very poor and could not be efficient. Handles register allocation and inlining.

int, short, long, char, unsigned, signed, etc. also describe the common types of numbers processed by registers in that era.

Yi Language

Let’s take Yi Language as an example and write a Hello World program:

#包含 "某语言系统.接口"
整数类型 主函数()
{
输出("你好世界");
返回 0;
}
Copy after login

In fact, the essence is the same as C Language:

#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
Copy after login

There is almost no difference in appearance. The only visible difference is that the keywords and identifiers have been "Chinese".

So how much help can these Chinese translations help people who “do not understand English”?

You can try to show the above "Chinese version of C language program" to a person who has never learned programming. It is almost impossible for him to understand it, and it is impossible to write it immediately in this language. For other similar programs, although the Chinese keywords and identifiers are written in Chinese characters, they still do not describe what they represent in the actual computer program.

For example, #include, those starting with # are often preprocessing macros, and the function of the preprocessing macro program is the so-called preprocessing of the program before compilation. For example, the include function is similar to declaring it in stdio.h Everything is "copied" to the current file, so that the current file can see the function prototypes and other contents in stdio.h.

And int represents an integer type, or the integer type with the default width considered by the current computer system C language compiler, rather than any integer type with infinite precision.

So what about changing these two to "include" and "integer" types?

The meaning of include is still the same as that of include. People who understand the include process (or people who just understand its function) will certainly write this line of code without any scruples. And people who don't understand still can't write it. The same goes for the Chinese translation of other identifiers and keywords. In the final analysis, people who write programs don't use Chinese or English because they understand the meaning of these symbols in Chinese or English. He writes programs in English programming language because he understands the meaning of these symbols in this computer system and programming language environment.

Don’t think it’s funny that these two statements are almost identical and the languages ​​correspond to each other. In fact, many so-called “Chinese programming languages” are really just modifications on the preprocessor, using keywords and some functions of the standard library. Chinese, and then released it as a graphical interface development environment, without any very significant technological content.

Their underlying (especially back-end) essence is still a common implementation of existing common programming languages ​​(such as GCC or Mono), and some even do not follow the open source software licenses they quote. With the certification, closed source can still be sold for money.

The above is the detailed content of Yi language is a terrible language. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!