When the code into Chinese: programmers look mind, it might as English programming

As we all know, the current mainstream programming programmers are programming in English, which is determined by the development trend of the times.

Here Insert Picture Description

Imagine if the code will replace the Chinese what?

First, we can almost look at the English into Chinese programmers coding would look like:

Here Insert Picture Description


emmm, you would think that would write Chinese programming?

这就像你以为会写汉字就会写出好文章一样。编程是和机器沟通,因此要用机器的语言而不是人类的语言。最早的程序就是0和1的数字,不是中文也不是英文。以前的程序员,每天写程序就是在一条长长的纸带上打孔表示0和1。后来发现0和1的二进制太麻烦了,就把0和1压缩一下,用16进制表示,比如数字10,用二进制表示是1010,用16进制表示就是0A,这样表达起来就更简洁,但是输入电脑后,仍然要转换为二进制电脑才能明白。
后来,科学家们用简单的英文单词表示某些功能,比如加法,就用add表示,减法就用dec表示。程序员输入add或dec后,系统会转换为对应的算法。就这样不断的给不同的代码段起名字。编程语言就是从数字编码不断压缩提高层次,最后形成了当今的各种风格的编程语言。为什么码农会讨厌中文编程?我用最流行的易语言说明。
所谓全中文的易语言,其实就是把Visual Basic语言中每个英文单词换成了对应的中文词,其他都不变。
比如Visual Basic的代码是这样:
if True thenPrint "OK"endif
换成了易语言,就是这样了:
如果 真 那么打印 “OK"结束如果小编是一个有着5年开发经验的C++程序员,关于C++,自己有做材料的整合,一个完整的学习C++的路线,学习材料和工具。能够进我的。裙。里;–先2635;后15231。收取,免费给大家,希望你也能凭自己的努力,成为下一个优秀的程序员。

Here Insert Picture Description


其实也看得出来,英文写的程序更为简洁明了。

Second, from the linguistic point of view, the English language is linear, one-dimensional, two-dimensional plane and a Chinese language.
The program is precisely the linear one-dimensional. In other words, in English, just to fit linear linear program. Therefore, the Chinese do not fit existing programming. (Largely due to the rise of the computer is a foreign invention, so in order to save trouble, China also has been in use English programming. Although nowadays there are easy language programming, but in the end, not the mainstream.)
But as the IT industry, future changes may be beyond your imagination. The future may be multi-dimensional quantum calculations Xuer Wei of Chinese but will be more suitable than the one-dimensional English.
If you think my argument has, in fact, you can think about, programmers contrast over Chinese programming and programming will understand English, but Chinese programming will raise the threshold. Because the core programming is simply not a language, but a procedural way of thinking. English is not the easiest programming, but programming mathematical symbols, extremely abstract, ordinary people difficult to understand, but particularly small amount of code.
Add that, in fact, modern languages such as Java, supports Unicode, which means you can even use Chinese language to other world variables and function names, you can give it a try, so it looks basically the equivalent of Chinese programming, and compare English program, you'll know which is better.

Guess you like

Origin blog.csdn.net/yizhixin/article/details/94559569