• Do you use American English for your code?
    55 replies, posted
  • I sometimes name variables very weird things for the offhand chance that someone else gets a hold of my source code. [i]"Why the hell did he name the health variable 'TOOTHPASTAONRYEBREAD' and the car object 'VROOMIDYVROOMKLICKCLACKVROOM'??"[/i] It's kind of like that xkcd comic where he randomly announces, [i]"I know you're listening,"[/i] when he's all alone for the offhand chance that some secret organization is listening to freak them out, because no one will know if he's wrong! :awesomelon:
  • I'm Australian and I usually code in American English for things like color and authorize (as opposed to colour and authorise) etc. When I'm doing anything other than programming I use proper aussie english mayte
  • Yes, and if an existing project uses spelling like colour or armour I would just use that, it's not hard to adapt...
  • If I was using libraries/functions that used US English, I'd probably use US English. I don't really mind either though.
  • [QUOTE=blankthemuffin;30269986]The best thing about Ogre3D is it spells things correctly.[/QUOTE] Nope, I see a bunch of extra 'u's everywhere.
  • I sadly use American English, which makes me die a little inside, but it's no big deal. Apples and oranges.
  • I use english... english. Although it does annoy me slightly when I have something like [cpp]sf::Color Colour;[/cpp]
  • [QUOTE=Chris220;30276791]I use english... english. Although it does annoy me slightly when I have something like [cpp]sf::Color Colour;[/cpp][/QUOTE] Haha, I can't imagine how trippy that'd be.
  • [QUOTE=gparent;30273242]Nope, I see a bunch of extra 'u's everywhere.[/QUOTE] Poor Canada, tries hard but at the end of the day it's just too close to the USA.
  • [QUOTE=Chris220;30276791]I use english... english. Although it does annoy me slightly when I have something like [cpp]sf::Color Colour;[/cpp][/QUOTE] Typedef/inherit? I do because otherwise I start writing Color everywhere then find inconsistencies in my own code such as: [cpp]sf::Color Colour; if ( Color.a == a ) Colour.a = 50;[/cpp]
  • I considered it but it's redundant. It doesn't bother me enough to justify typedef'ing it like that and, even if it was, I'd just change my original variable to be called Color instead of Colour.
  • [QUOTE=blankthemuffin;30276949]Poor Canada, tries hard but at the end of the day it's just too close to the USA.[/QUOTE] I used to piss off my English teachers by going back and forth with the spelling :v:
  • I'm fairly mixed, I spell 'Colour' as 'Color' but 'Armor' as 'Armour', I also prefer 'Centre' over 'Center'
  • [QUOTE=blankthemuffin;30276949]Poor Canada, tries hard but at the end of the day it's just too close to the USA.[/QUOTE] Actually you're completely wrong about that, we're taught both ways of writing english with no real preference (your results may vary) I just stick with what's logical; no point is making my code unnecessarily more confusing and less maintainable by using British English when most libraries are using American English. Other way around as well, I wouldn't write something in American English if it used Ogre3d, for instance.
  • [QUOTE=sim642;30278243]Use variable name Col then and no problem.[/QUOTE] So was that column or colour or collapse or collection or collectible or colon?
  • [QUOTE=sim642;30278243]Use variable name Col then and no problem.[/QUOTE] And then make my code less self-documenting? No thanks.
  • American-English, as it's shorter, easier and more phonetic. Although I do have to admit that it has less character than the standard English language.
  • Don't forget that the standard British English has changed in the past 60 years. Artisan used to be spelled Artizan. Don't believe me? Here's some proof in the form of some engineering mathematics books from the 50s that I have lying around. (sorry for the images. Couldn't get a video showing it off in a high enough quality :x) [IMG]http://i.imgur.com/fhw7B.jpg[/IMG] [IMG]http://i.imgur.com/9UNyu.jpg[/IMG]
  • Why of course not my fellow chap, I'll be damned if I am caught using nothing but the Queen's finest English. Care for a cup of tea?
  • What what, chocks away and all that. I say, we brits must talk like this at all times lest we be branded as something lesser! Of course.
  • I whole heartedly agree my fellow discussion board adventurer, my speech habits must surpass those of a lesser nationality; for our speech is our deadliest weapon! :v: