JavaScript For the Rest of Us
First time accepted submitter my2iu writes "The JavaScript programming language is both widely available and very powerful. Unfortunately, since only 6% of the world's population are native English speakers, the other 94% of the world are forced to learn English before they can start using JavaScript. Babylscript is an open source project that aims to translate JavaScript to all the world's languages, including French, Spanish, Chinese, and Arabic. The project has recently completed its 12th translation, enough so that the native languages of over 50% of the world's population are now supported!"
Because having local-language versions worked out so well for VBA - and that isn't even on the internet.
How is this different than every other programming language I've ever encountered? And doesn't writing javascript in, say, Arabic, just make it inaccessible to 99% of the people who like look at your code?
Life needs more saving throws.
Considering current situation with XSS prevalence, javascript obfuscation techniques and content filters bypassing, this will only make matters worse
---------
Thinking never hurt anybody --MacGyver
Javascript keywords are English words but it's quite a leap to suggest you need to know English to learn Javascript! In fact, it might be an advantage to have the keywords as foreign words because they represent abstract concepts that ought to be considered apart from their real world meanings. IMHO.
The programming language is the language, not the english language. You need to learn keywords, they could be klingon, do not need to make any sense for you. On the other hand, documentations are usually written in english.
C'est pas vrai!
Someone pulled this idea out of his ass and thought it was a genius idea.
Sig? Heil
I just took a look at the french translation:
charAt carÀ
charCodeAt codeCarÀ
indexOf indiceDe
lastIndexOf dernierIndiceDe
split fendre
substring souschaîne
I foresee thousands of text encoding bugs appearing everywhere this is used.
Such as wondrous Slashdot which still sucks at Unicode...
I would hazard a guess and say that it's easier for a non-English speaker to learn normal JavaScript than it is for anybody to deal with this kind of nonsense.
I don't really see the advantage in this. You would be deliberately segregating yourself from the wider development community, and for what? Anglophones have to learn a lot of this stuff too. An asterisk doesn't mean multiplication to us, yet we learn that. Double ampersands don't mean "and", yet we learn that. Parentheses don't mean "do something", yet we learn that. The equals sign means "equals" in English, yet it's the assignment operator in JavaScript.
There are languages which are designed to more closely match natural language. AppleScript and Basic, for instance. There care also language which aren't very readable at all in English, such as LISP or Perl, that are still very successful. Natural language isn't really valued in the programming world for a variety of reasons. Sure, function calls might have some correspondence with English, but in the end, they are labels, not sentences, and everybody needs to learn what the labels mean precisely, even English people.
Bogtha Bogtha Bogtha
The translations look terribly inconsistent and even completely erroneous. The German one, for example, strangely mixes verb forms: "throw" is "wirf" (informal imperative) but "catch" is "fangen" (infinitive). "char" is translated as "aeichen", which isn't even a word in German. Are the "translators" just people with no knowledge of the target language who are simply looking up words in a dictionary? If so I don't see how this project is possibly going to be of use to anyone.
Decades back I used a research OS that was developed pretty much along UNIX lines except that it was written in this Pascal variant where all the keywords were in French (Pascal was popular back then as a first language). It never achieved any traction & disappeared because neither the OS nor the language proposed anything really useful that you couldn't get already from Unix/C or just plain Pascal.
On a more recent level, one of the biggest PITA I and many others have with Office in non-english locales is that they translate the function names.
=sum(a1:a6) becomes =somme(a1:a6). I'ts easy enough to find websites that will help perform actions in Office, but I often spend twice the time finding out lust what wierd name MS has come up with for some VB function.
Is "pour" so much better than "for" for someone who is not a native english speaker? No, as by the time you have become proficient in the computer language, the subset of a foreign tongue it uses become well known & the difference irrelevant.
It looks to me that Babylscript is just a tool for the language bigots out there. Give it a few months & people will have forgotten it.
Democracy is a sheep and two wolves deciding what to have for lunch. Freedom is a well armed sheep contesting the issue
For god's sake! Please lets stop translating computer languages.
I've always hated the argument that English is not the most widely spoken language because of "native" speakers. It is the most common second language that is learned throughout the world. And honestly, is the idea of having a single language that can be understood across the world so bad?
I'm all for translating documentation into a native language for more people to learn, but the programming language itself needs to be consistent across all uses. Otherwise, it's not the same programming language--just a copy cat with similar structure and syntax, but not very easily followed by someone who knows the original.
This is the most idiotic idea I've ever saw.
Will they also translate all the libs, the docs, the books out there?
IMHO This makes JS even less accessible and seriously increases the confusion factor.
Finally use English programmers change the appearance of GUI widgets by their colour property!
This might be a bit imperialistic, but is a programmer who is not comfortable with English a good programmer? Since there is so much technical info in English, if your English skill aren't they good then you are going to miss out on a lot of good info. I seem to recall an interview with Linus Torvalds where he said that because all source code, etc, he ever saw was in English it never even occurred to him to code in his native language. Someone who wants JavaScript in their native tongue has probably only just picked up "Learn JavaScript in 24 hours"...two hours ago.
English is also the language in which most of the computer-related neologisms originated. Leaving the terms in English makes them unambiguous whereas translating them has constantly been shown to do nothing but confuse people. This guy probably things he originated the idea of translating computer programming languages, but this has been done before many times and all such efforts have pretty much died out and for good reason: they suck.
in the original Klingon.
"My God...it's full of trolls!"
I work for a Swiss company. Our official internal language is also English.
I can't wait to see the result of the code for the project that my company decided to develop offshore, in India. I am sure that our clients will be pleased to learn that we will not be able to debug a fucking line of code on site.
What a fucking great idea ! yeah !
Why don't you just write it in our beloved Universal Language "Esperanto" ? It should be even easier to maintain... It is UNIVERSAL !....
I believe that sometimes, if nobody invented a specific thing, maybe it's because this thing is fucking stupid. Try it, figure out by yourself that it is so stupid that even your mother would disown you, then trash it forever.
I'd go even further. When first learning to program, I was thrown more than once by thinking that a keyword meant something like its English definition would suggest. I would have learned quicker had the keywords been randomly selected from Dr. Seuss books.
This is not the first time somebody does this either, there is an entire industry in Russia built around a business platform (1 s) that prides itself by the fact that they have translated BASIC into Russian, I shit you not.
You can't handle the truth.
The German translation isn't good. They could've easyly improved on the syntax. let ist translated into 'sein' (to be) rather than 'lasse' (let). There are a few other instances were they could've actually improved on the language as a whole but messed it up.
Besides, as others have pointed out: The PL being in a different language than the native is an *advantage*. Less mixing of words. It's great to have native Variables and english keywords - it gives you way more flexiblity with your code.
My 2 cents.
We suffer more in our imagination than in reality. - Seneca