Can you use all-Chinese programming?

problem description

I wonder if anyone is trying to write code in all Chinese. If the Chinese code language is all Chinese, it will be convenient for more than a billion people to educate and popularize programming.

the environmental background of the problems and what methods you have tried

I think for some high-level languages, we can change Chinese transpile into English, just like js babel library. In fact, many variable names can be changed to a token.

related codes

//
function add(a, b){
    return a + b;
}

  {
      + ;
}

what result do you expect? What is the error message actually seen?

I am a Manon who works in the United States. I have been working and writing code in English. Recently, I suddenly thought that the English code still can not directly express the programming concept of the Chinese people. If we start writing code in Chinese, we may develop some different programming thinking. I wonder if you have any experience and comments in this area? Thank you.

Jul.30,2021

can be realized with define in C language
can be implemented not only in Chinese, but also in classical Chinese, Martian, emoji


your example is to translate simple words, what's the attraction? Does it have anything to do with programming thinking whether you use Chinese characters or English? What's more, this means that you can only use it with Chinese people, and you can't play on github , the largest dating website in the world. What's the point of making a lot of wheels over and over again?
you said something before, called easy language, you look at the size of the project, is the use of Cmursharp java dagger php or easy language more? For domestic, programming requirements for English level is not high, grammar is simple words, variable names are common to know, do not know can also refer to translation.


I think we can use classical Chinese.


found this a few days ago: https://github.com/program-in.

to tell you my own opinion, I support Chinese programming.

you may have seen and heard about training prisoners' programming skills in prisons in Europe and the United States. Why can't this be achieved in China?
it is very simple, because the prisoners' educational level is too low to read English.

I have several friends who are not too educated, their English is very poor, and they are also afraid of programming. It is true that the low level of education means that without systematic logic training, it is difficult to do too well in programming, but we have to admit that most of the brick-moving work does not require a high level of knowledge, database CRUD, front-end JQuery series, in fact, do not need any algorithms, what complex logic, as long as the people who can speak, it is not difficult to understand. And programming can be used as a tool to exercise people's thinking ability. Computer programming is a compulsory course in many majors in universities. If you ask the teacher why he learns this, the teacher answers you the same way.

now the country is promoting the low age of programming courses, and both junior and senior high schools may be learning it. If there is Chinese programming, primary schools can also learn it. The only reason I support pure Chinese programming is that people who do not have a basic knowledge of English can participate. So that younger children can participate.

Local Chinese programming is very supportive of me. When team members can't explain some strange variables in English, it takes less effort and effort to name them directly with Chinese names. Opponents need not say much. There is no difference between variable names and comments. If you can write notes in Chinese, you can use Chinese variable names without any spray points.

The

"Chinese js" code can be used to replace Chinese keywords with English keywords by convention through tools like webpack, which can be packaged and confused directly, and can be run directly on the browser without even needing a new interpreter. I think those who oppose it should think about it carefully. Although few people use easy language, who is using it? Why would someone use it? Who says programming must be swimming in the open source world?


Thank you for your reply. As a programmer in a foreign country, it is very happy to be able to communicate these questions with you in your mother tongue. I'll go back and study the resources you wrote to me.
in fact, Chinese has some programming advantages over English, such as shortening the line width (easy to read), no plural, no tense, and strong combination. The
programming language is just a tool, and we, as users and inventors of the tool, can make changes to the existing environment.


Chinese programming is fine both in theory and in practice. Easy language is a living example. However, habitually speaking, it becomes strange to see Chinese.


I think you can try it, and not all projects require multinational participation. Especially now that GFW is so deep, some things are not allowed to come in from abroad, so similar ones are specially designed for Chinese people. Such being the case, what's wrong with programming in Chinese in these places?

Menu