Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2003, 10:31 PM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 997 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 12 h 50 m 48 sec
Reputation Power: 76
Interestingly, all programming is done in English, but...

I asked myself a question a few years ago: "Do people in Japan write code in Japanese?" I think I have found my answer, and that is No, they write code in English. If I am correct, I believe all programming is done in English.

This means everyone probably need some English tutorial before starting to program, although I can certainly imagine some Russian genius being able to sweep through a language without knowing what FOR, IF, and WHILE mean. However, life can still be miserable to read code written from a Non-English programmer. Consider comments written in Chinese, for example, which I have thrown in a little bit of in this piece of code.

Code:
open (file, "jog.txt");
# 但事际上, 有从未是任何
@array = <file>;
foreach (@array)
{
  #为什么, 狗有毛皮?
  print "有它吗?\n";
}


With all the big companies having divisions in many countries, I wonder how they maintain their code on an international level. Certainly makes re-using code more difficult. I also wonder if it's more difficult for non-English speakers to pick up programming languages.

Reply With Quote
  #2  
Old June 23rd, 2003, 12:18 AM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
I've edited code that was in german before. Comments I could make do without, but it's the variable names that threw me. Should consider myself lucky, at least they use most of the same character set. :/

Reply With Quote
  #3  
Old June 23rd, 2003, 12:40 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
Many other countries have close neighbouring countries that have a different language. It is not uncommon for people overseas to speak more than one language, children are taught English in many Eurpoean primary schools.

Knowing more than one language may come as weird to us since in the UK, US, Australia its not that common (except in some parts of the US where quite a few speak Spanish).

I know 2 languages but thats because I was born overseas and have been raised with that language all around me in my family. I do encounter so many people that are like 'What you know another language, wow!' Its something different for us here, but its not that way in the other countries.

Reply With Quote
  #4  
Old June 23rd, 2003, 01:26 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 18
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
^^ he talks with animals. g0ats to be specific

vb.net, sorry to disapoint you - no there aren't any russian geniuses like that, every signle one of them knows what 'if','for', and 'while' mean. And I work for multicultural company with employees from 9 countries, yet we all code and comment in english. This is sort of 'duh' standard - thou I did have a miserable experience debugging code in spanish That was just horrible. I think everyone should comment in language that I can read best.

BTW, since domains are coming in differnet flavours now, may be it's not far untill we see compliers that accept different languages....
__________________
And you know I mean that.

Reply With Quote
  #5  
Old June 23rd, 2003, 08:55 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
Programming in English has to do with the history of programming... most of the languages used today, or their 'ancestors', were invented in the USA - Fortran (IBM), C (Bell Labs), BASIC, etc etc. Now, this is not to say that there are no languages used today that were developed outside the US (PHP would be a good example )...

I had the same question that vb.net had - I got the answer from my boss, who is a native of Venezuela. I was surprised at first as well, but the historical aspect of it makes sense (sort of).
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #6  
Old June 23rd, 2003, 09:07 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 36 m 16 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
The hardest part about doing anything across a language barrier isn't the comments, which can usually at least be translated to some degree, it is always the variables.

I deal with a lot of German developed programs, and the hardest part of dealing with them is the variable names. They are abbreviated German. So while some I can translate easily (MENGE, ARTNR, etc...) others can really be a pain in the arse (KDTLNR, KZ_IOART, etc...).

When people use abbreviated names for variables it really sucks. I could understand this for the very old programs, but now size limitation really isn't a concern, so why do it?

Reply With Quote
  #7  
Old June 23rd, 2003, 09:25 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
saves typing

I hate it when MS Access programmers who only ever use the Query Builder wizard name columns in a table.... see things like

Table tblProducts
tblProduct_ID
tblProduct_Details_Summary
tblProduct_Details_Detailed_Description
tblProduct_Details_Wholesale_Cost_Price

After typing one SQL query in VBA you have had enough of the long names

Reply With Quote
  #8  
Old June 23rd, 2003, 10:10 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 36 m 16 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
I know that it saves typing, but it still sucks majorly and it doesn't really help that much anymore. Even when you go back to your own code several months or in rare situations a year or two later you will be stuck trying to figure it out yourself what that abbreviation means.
There is also no reason to give names that are 50 characters long. That's just crazy.

Reply With Quote
  #9  
Old June 23rd, 2003, 10:16 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
I do agree that variables should be descriptive, but also not stupid in length.

Don't do things like a Flintstones naming convention...

PHP Code:
 $fred=0;
$barney=file("text.txt");
$wilma=count($barney);
#........... cont. 

Reply With Quote
  #10  
Old June 23rd, 2003, 10:23 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 36 m 16 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
I agree also.

Reply With Quote
  #11  
Old June 23rd, 2003, 10:28 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 11 m 27 sec
Reputation Power: 27
Or if you want to be a troll use really long variable names and have them very similar

PHP Code:
 $ahjfhdnsadcfvnufdnbukstbnsurtnvsez=0;
$ahjfhdnsadcfvnufdmbukstbnsurtnvsez=file("text.txt");
$ahjfhdnsadcfvnufdnbuketbnsurtnvsez=count($ahjfhdnsadcfvnufdmbukstbnsurtnvsez);

for (
$ahjfhdnsadcfvnufdmbutstbnsurtnvsez=0;$ahjfhdnsadcfvnufdmbutstbnsurtnvsez<$ahjfhdnsadcfvnufdnbuketbnsurtnvsez;$ahjfhdnsadcfvnufdmbutstbnsurtnvsez++)
 {
  print 
$ahjfhdnsadcfvnufdmbukstbnsurtnvsez[$ahjfhdnsadcfvnufdmbutstbnsurtnvsez];
 } 



Reply With Quote
  #12  
Old June 23rd, 2003, 10:30 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 36 m 16 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
oh the horror

Reply With Quote
  #13  
Old June 23rd, 2003, 10:30 AM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,675 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 12 m 10 sec
Reputation Power: 219
Send a message via ICQ to computer
lol... which one sof those are different andreas?

Reply With Quote