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?
-
C0D4681382y@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. -
Voxera115852yThe 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. -
Voxera115852y@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