LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Programming around the world (http://www.linuxquestions.org/questions/general-10/programming-around-the-world-4175477156/)

szboardstretcher 09-14-2013 06:50 PM

Programming around the world
 
Greetings,.

I was just wondering if everyone in the world programmed their particular flavor (C, C++, Java, PHP, etc...) in English?

I've personally never seen code in another language, although I'm completely aware that there are keyboard layouts for many languages throughout the world.

Would I be right in assuming that everyone codes in english? Thought it might be an interesting question to ask.

gnashley 09-15-2013 02:36 AM

Do you mean using English when naming variables and writing comments? I've seen lots of code done using French, Japanese or Spanish for comments and variable naming. Of course the code itself is C, C++ or whatever.

H_TeXMeX_H 09-15-2013 10:22 AM

I've seen variable names and comments in German, French, and Russian. Special characters were only used in comments or not at all.

DavidMcCann 09-15-2013 11:40 AM

It can make for problems, seeing that many programming languages need symbols like []{} which are largely restricted to English-language keyboards.

273 09-15-2013 11:51 AM

Quote:

Originally Posted by DavidMcCann (Post 5028033)
It can make for problems, seeing that many programming languages need symbols like []{} which are largely restricted to English-language keyboards.

You mean "Latin" keyboards, surely? Apologies for being pedantic.
Edit: I see I am wrong -- I obviously didn't pay enough attention when using AZERTY keyboards so I didn't notice that it's just QWERTY keyboards which have easy access to various kinds of braces/brackets.

pan64 09-15-2013 12:06 PM

I think the macro language of MS excel/word is language dependent, so the keywords will be replaced if you change the settings. Therefore you can write the program in hungarian, but I do not think it is useful at all.

szboardstretcher 09-16-2013 08:35 AM

Anyone have a link to some code written in German, French, Arabic.. etc?

H_TeXMeX_H 09-16-2013 09:23 AM

Here's the Russian one:
http://www.viewizard.com/astromenace/index_linux.php

main.cpp
Code:

//------------------------------------------------------------------------------------
// настройки
//------------------------------------------------------------------------------------
// настройки игры
GameSetup Setup;
// возможности железа, получаем через рендерер
eDevCaps *CAPS=0;

and there are lots of comments.

DavidMcCann 09-16-2013 10:29 AM

Quote:

Originally Posted by 273 (Post 5028043)
... it's just QWERTY keyboards which have easy access to various kinds of braces/brackets.

No, it really is just English (excluding Canada) and American Spanish and Portuguese, although you can sometimes get the brackets with AltGr.

Quote:

Originally Posted by szboardstretcher (Post 5028499)
Anyone have a link to some code written in German, French, Arabic.. etc?

Code:

1130 DEF PROC pfeil (wer$,sev)
1140  IF weiter AND dr<3 THEN fenst wer$,sev
1150  abst=(INT((sev/2)+1)*7)-4
1160  AT #3,0,abst : PRINT #3,CHR$(191)
1170  hoch=-4+sev*7
1180  REP suche
1190    a$=INKEY$(-1)
1200    IF a$=CHR$(192) THEN abst=abst-7:bim 3
----
1380    IF weiter AND a$=CHR$(10) THEN bonus wer$(zal),werk$,zal : IF weg THEN steinweg wer$,zal : CLS #3 : RET : ELSE CLS #3 : RET
1390    CLS #3
1400    AT #3,0,abst:PRINT #3,CHR$(191)
1410  END REP suche
1420 END DEF pfeil

No prizes for guessing the language (and I don't mean German), although I bet you can't!

szboardstretcher 09-17-2013 02:41 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 5028530)
Here's the Russian one:
http://www.viewizard.com/astromenace/index_linux.php

main.cpp
Code:

//------------------------------------------------------------------------------------
// настройки
//------------------------------------------------------------------------------------
// настройки игры
GameSetup Setup;
// возможности железа, получаем через рендерер
eDevCaps *CAPS=0;

and there are lots of comments.

That is very interesting to see.

English does seem like the common programming language from what I've seen now. Odd thinking how that works out in other countries -- if you want to be a programmer in Russia, you have to learn English, Or at least a subset of it.

DavidMcCann 09-18-2013 11:26 AM

In most countries, learning English is part of getting a higher education, just as learning Latin was up to the 18th century. Remember how Linus wrote his thesis in English, in a compromise with his professor.: Swedish was Linus's first language, Finnish his second, but the professor only spoke Finnish.


All times are GMT -5. The time now is 08:24 AM.