Advertisement

How do Japanese program?

Started by October 18, 2010 03:54 PM
37 comments, last by Antheus 14 years ago
I've been wondering how exactly Japanese and other nationalities program a language like C++ when it's using English characters? Or for that matter how exactly does the internet work for them? I'm guessing that they have their own version of the internet over their but I can't see how they could make entirely different versions of programming languages with completely different syntax for each language...
um... They use English?

How do I program in Hungarian?

I don't see any "függvény", "üres", "mutató", "változó", "ha", "amíg", "visszatér", "egész", "lebegőpontos", "igaz", "hamis", "csináld" stb. But I can code anyway...(to some extent)
Advertisement
What's a "lebegőpontos"? A dangling pointer, maybe?
Quote: Original post by fnm
What's a "lebegőpontos"? A dangling pointer, maybe?


floating point

Hmmm, so you have to know English to program? Interesting, I suddenly find myself looking down on other none English speaking nations...
Quote: Original post by SteveDeFacto
Hmmm, so you have to know English to program? Interesting, I suddenly find myself looking down on other none English speaking nations...


No. The keywords used are from the English language, but they are not used in the context of the English language. You can know that "if" in C++ is a conditional branch without knowing what "If" means in the English language.

Variable names and whatnot can and are often declared in the native language, unless international cooperation is required. In the case of Japanese, romaji suffices.
Advertisement
Quote: Original post by Rycross
Quote: Original post by SteveDeFacto
Hmmm, so you have to know English to program? Interesting, I suddenly find myself looking down on other none English speaking nations...


No. The keywords used are from the English language, but they are not used in the context of the English language. You can know that "if" in C++ is a conditional branch without knowing what "If" means in the English language.

Variable names and whatnot can and are often declared in the native language, unless international cooperation is required. In the case of Japanese, romaji suffices.


Yes. And it's so much fun to look back to my old code sometimes. The mixture of English and mostly Hungarian names is just adorable :')

EDIT: hey, I think I could pick up chicks with that cute code....
C# to the rescue. ;)
Too bad you have to stick with
Main
and the English keywords.
This reminds me the time when I've read Andrei Alexandrescu's "Modern c++ design" in romanian. I had to translate all the terms in english to actually understand something of that book.
There are programming languages that use foreign languages as the basis. For example, there's a Chinese version of BASIC.
10 卜=020 入 水, 火30 從 日 = 水 到 火40 卜 = 卜+對數(日)50 下一 日60 印 卜

(Accepts two numbers and prints the sum of the logs of the range from one to the other.)

And there are programming languages that don't use any natural language as their basis. APL is one nightmarish example.

This topic is closed to new replies.

Advertisement