LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 09-14-2013, 06:50 PM   #1
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,274
Blog Entries: 1

Rep: Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056
Question 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.
 
Old 09-15-2013, 02:36 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,766

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
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.
 
Old 09-15-2013, 10:22 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I've seen variable names and comments in German, French, and Russian. Special characters were only used in comments or not at all.
 
Old 09-15-2013, 11:40 AM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,127

Rep: Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793
It can make for problems, seeing that many programming languages need symbols like []{} which are largely restricted to English-language keyboards.
 
Old 09-15-2013, 11:51 AM   #5
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
Quote:
Originally Posted by DavidMcCann View Post
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.

Last edited by 273; 09-15-2013 at 11:56 AM. Reason: I realised my error.
 
Old 09-15-2013, 12:06 PM   #6
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,928

Rep: Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305Reputation: 1305
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.
 
Old 09-16-2013, 08:35 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,274
Blog Entries: 1

Original Poster
Rep: Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056
Anyone have a link to some code written in German, French, Arabic.. etc?
 
Old 09-16-2013, 09:23 AM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
Old 09-16-2013, 10:29 AM   #9
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,127

Rep: Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793
Quote:
Originally Posted by 273 View Post
... 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 View Post
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!
 
Old 09-17-2013, 02:41 PM   #10
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,274
Blog Entries: 1

Original Poster
Rep: Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056
Quote:
Originally Posted by H_TeXMeX_H View Post
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.
 
Old 09-18-2013, 11:26 AM   #11
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,127

Rep: Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793Reputation: 793
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Howdy World! A Funny Unix/Linux Programming Joke LXer Syndicated Linux News 0 09-06-2008 11:10 AM
LXer: Does anybody still develop Windows applications? Or, the programming world has LXer Syndicated Linux News 0 07-26-2008 03:40 AM
New to programming world Abhishek87 Programming 14 10-24-2007 02:44 PM
c programming hello world in linux? how? keiwu Linux - Newbie 8 02-13-2005 02:13 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration