Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.

View Poll Results: Should javascript always be coded in english?

Voters
44. You may not vote on this poll
  • Yes, always!

    24 54.55%
  • Mostly, but diff language okay for internal applications.

    12 27.27%
  • Not feasible, non-english speaking scripters only know the english that is in javascript.

    1 2.27%
  • My primary language is not english, why should I accomodate the rest of you?!?

    2 4.55%
  • No.

    0 0%
  • Who cares.

    5 11.36%
Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Always code in English?

    I've run into this several times over the months, and just did again a little bit ago. I think most of us agree that functions and variable names should be, for the most part, semantically accurate towards what they represent or are being used for.

    As far as I'm concerned, I think it's equally important that variables and function names be in english as well. Not only because the ECMA script vocabulary is english (which is the most important point) but also because when someone comes here looking for help and their code is in spanish or something, it easily takes me 2-3 times longer to figure out the problem.

    What do you think? Should javascript code always be written in english?
    Last edited by beetle; 02-26-2003 at 06:31 PM.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Esperanto. All the way.

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't say English is the most important language and it's not my mother-tongue however, for programming and business please stick to one language: ENGLISH...

    Jerome

  • #4
    Regular Coder
    Join Date
    Feb 2003
    Posts
    345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Better English than Chinese, Japanese, Greek, Arabian...

    A foreigner survivor...

  • #5
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i think good coding practice is more important. brace style and such. generally, based on the code itself, you can figure out what it's doing. how many functions has anyone seen, where the variable and function names made enough of a difference, that you couldn't have figured it out anyway?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    joh6nn, I see a great difference between method names like getElementById() and gtElmBI(), or even xyz123_2(). IMO the first choice is the most readable, and I always take the time to name variables, classes and methods in such a way that describes their purpose in a good way. I even refactor my objects sometimes only to change method names.

    Back to topic: I always code in english, and in the company I work it's convention to do so. I think it makes a lot of sense because all programming terms and languages are in english anyway, and mixing languages leads IMO only to confusion.

    Comments may be written in native language. It's often easier and faster to describe a process if you don't have to translate it, but if I have the time, I try to write them in english. Maybe someday I get so used to it that commenting in english is done much more fluently than I do now.

  • #7
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I started doing some PHP development in this CMS/development framework application, and with their manual they published a coding standard. I never gave much thought to certain things, but since I've read it, I agree with them so much I've completely adopted it for PHP, and Javascript as well.

    P.S. Part of their standard was to use english names for everything, and they live in Norway
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #8
    New Coder
    Join Date
    Jan 2003
    Location
    Belgium
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think it should be done in dutch


    I agree with you, Beetle
    I always try to translate my functions (I also forget to translate half of it, but hey, nobody is perfect )
    SToFFeL

  • #9
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sanskrit! We musn't forget Sanskrit!

    nevermind
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Even though English is not my native language, I 100% agree that coding should be done in English only.
    My problem however, is having patience to spell out the variable names. Another day I needed to name an array of title strings and being on "autopilot" typed:
    tits = new Array();
    Fourtunately, my girlfriend, peeked over my shoulder and asked: "What kind of site are you working on " ...
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #11
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Vladdy
    Another day I needed to name an array of title strings and being on "autopilot" typed:
    tits = new Array();
    LOL
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #12
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Only 18 votes? ptbhhbhbbhb, I thought dozens of people came here daily....
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #13
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So what? 18 are one and half a dozen.

    While we are at languages, let me just say that coding in Hungarian Notation is definitely *not* coding in english - so stay away from that practice. Just adds to obscurity of your code.

  • #14
    Regular Coder
    Join Date
    Aug 2002
    Location
    Spain
    Posts
    420
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If I create a new function or a new variable, I do it in my language; after all, I am who is using it!
    However, if I have a problem and/or have to show my code to a non Spanish/Catalan person, I try to translate it for that person (but I still use the right version)
    Don't resist to assimilation. Billions of Borgs can't be wrong!

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, it seems that nearly 100% of the programmers here (if you don't count Borgtex) that don't use English as their "mother" or native language agree... it should be in English.

    I can't argue with that.

    P.S. I have never had a problem understanding Borgtex's code, and he seems to have no problem understanding code in English, so I guess that's a moot point.

    P.P.S. As far as I understand hungarian notation, is it not just camelCasing ?!?

    From a quick search of some very confused programmers websites, that seems to be the case...
    Last edited by whammy; 02-27-2003 at 02:26 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  
    Page 1 of 3 123 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •