Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Well JS supports all letter like UTF8 chars, so you can write variables names in most languages if you wanted.
Usually comments are the most localized code in code, after that variables, file names, .. -
It would be funny if you could only write Java in Italian, Perl in Russian, PHP in Hebrew, and Javascript in Somali. It's actually kinda strange that it isn't the case since things tend to be fucked up otherwise.
-
@C0D4 I mean... If, else, while, switch, etc -- these words are english. Did you code with them in german?
-
horus30612yDespite function and variable namens can be set in other languages as others mentioned, yes, all the build-in commanda are english always. I know that there were attempts to have programming languages based on russian and german in cold war but at one point even the soviets bought some IBMs and had to use english then. Expect from some very old computer pioneers i know no one who ever came in touch with such.
Appareantly there are ongoing attempts for arabic and hindi: https://en.m.wikipedia.org/wiki/... -
C0D4681952y@netikras variables and method / class names were all over the place.
1 class may have been "product" the next may have been "preisgestaltung"
I remember the pricing class because it was like:
price = new preisgestaltung()
I almost cried with that codebase. -
Voxera116402yThe Excel formula language have the actual method named translated to the local language so IF will be OM if your running a Swedish excel.
And I hare it ;)
But since almost everything regarding computers has its origin in England and the us and much of what was built on top of that comes from countries where English is almost a second language, not many developers have tried to stray away.
I am sure there have been attempts in France, Russia and some asian countries, especially China but even if they got something going its probably stayed local and not gotten enough wide distribution to be encountered. -
Before anybody tries to lecture me again how this is supposedly intolerant against people whose first language isn’t English:
My first language is German and dev related localization is a fucking pain in the ass. Every non-English-first speaker will confirm that. -
@netikras also all other reserved words, such class, function, private, public, etc. So despite our ethnicity and nationality, writing everything in English is the only thing that makes sense.
I use English even for comments. -
Voxera116402y@Lensflare And I am from Sweden so I also do not have English as my first language.
And I hate it sinceit means the formulas will have different names depending on the settings of the currently logged in user :/ -
In domain driven design it's often encouraged to write the language of the customer for your domain objects, whether it's entirely a good idea I dunno
But you mean language keywords right?
Related Rants
While writing your codes, have you ever noticed that all the programming languages you've ever come across are actually... English?
Has any of you ever coded in non-English (and non-symbolic, like ook, brainfuck, whitespace et al) language?
question
code
language
english