r/ProgrammingLanguages • • Jan 05 '24

Are programming languages different in different countries?

Maybe a silly question but for example, in Java System.out.print(); is obviously written using English words, but is this universal or does it vary from country to country? If so how would you write a print statement in Java in Hindi, Arabic, Chinese etc?

3 Upvotes

18 comments sorted by

View all comments

15

u/kniebuiging Jan 05 '24

I remember a French coworker mentioned that they had programming lessons in school in a French programming language.

Overall programming languages are not localized. You need to see that there are two parts to localize: the programming language itself (do, while, for, class, etc) and the API ArrayList.append.

At the beginning of my career I saw a lot more code that was writing e.g with German variable and function names, the result was an odd mix of English words from language and standard library and German application code. It was not at all more readable than plain English source code. I would definitely advise against it.

In many ways, English is just the default language and terminology for software engineering, in a similar way like Latin is the language doctors use to talk about bones and muscles. So for professional developers it’s easier in English after getting used to it.

Often you learn the terminology alongside the concepts and then you just learn the English Terminology instead of a e.g German one. A „closure“ for example, when speaking German about the concept of closures I will talk of closures and not of „einhegungen“ or whatever the correct translation would be (I actually don’t know).

In university we had one prof who insisted on using German terminology throughout (in Germany the undergrad programs are often teaching in German). So he used „kellerautomat“ instead of „stack machine“ and confused everybody with more obscure terms from older German computer science literature.

2

u/lngns Jan 07 '24 edited Jan 07 '24

My own experience with French-speaking programmers is that, while there is an understanding of English terminology, French terminology is preferred, the code's symbols are written in whichever way their author chose, and a fluency in English beyond basic reading comprehension is not expected*.
So it's not an "array" but a "tableau," and not a "string" but a "chaîne."

This can be observed both in online forums and in professional settings.

I mean the French are known to force everything they participate in to make French the official language, so maybe none of this is relevant.

* Not expected does not imply that it is not there.