How do people from non-English speaking countries write code?

647 viewsOtherTechnology

Especially in Mandarin & Japanese speaking countries – for example: how does variable & function naming work if the language primarily consists of symbolic characters?

In: Technology

27 Answers

Anonymous 0 Comments

> how does variable & function naming work if the language primarily consists of symbolic characters?

Works fine for *them*, UTF-8 support is basically default now. It’s complete ass for everybody else though, speaking from experience.

Anonymous 0 Comments

Usually you have to need some basic English skills to understand computer language concepts and syntax. And while it would be easier to an English native to guess what the function ‘concate’ does, but what you really need is to know how exactly this function works, what inputs you have to give it, what results you’d receive et cetera.

So, it’s not a big deal.

Regarding comments, some people are writing their comments in their native language. I believe, it’s a bad practice, because you can’t really know who would work with your code after you.

And, funny thing, there are several computer languages based not on English, but on my native language. So, all the classes, all the functions named in my language, and this language doesn’t even use Latin alphabet. Maybe, it’s a question of habit, but I personally had a hard time with that approach. All of this seemed to me too verbose and extremely unnatural, so when given a choice I’d prefer English-based code anyway.

Anonymous 0 Comments

Other people have answered your question, but on a related note, this is Ramsey Nasser’s programming language, Qalb: https://nas.sr/%D9%82%D9%84%D8%A8/

It’s a programming language based on Arabic, that serves as commentary about the cultural biases in computer science.

Anonymous 0 Comments

Here in Norway, you sometimes see projects where much of the definitions are in norwegian, but it’s usually seen as a bit awkward and unnecessary. As a norwegian I find it mostly grating to read `public static async Task<IEnumerable<SjaafoerLoenn>> RegnUtLoennAsync(string epost, CancellationToken cancellationToken)`

Anonymous 0 Comments

We use English keyword. My company has a coding practice policy of not using our first language for anything in code

Anonymous 0 Comments

When I started working there were some old folks who wrote variable and method names in Spanish. Nowadays no one does it, everything in English

Anonymous 0 Comments

The best practice, and what everyone learns to work as a programmer is knowing keywords and using English to name functions and variables, some people, mainly university professors and beginners use transliteration to name variables, but doing professional development it is vary rare and discouraged.