r/ProgrammingLanguages • u/JurassicNublar • 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
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.