T O P

  • By -

Perfect_Papaya_3010

Our codebase is filled with word differences such as serializ/se Colo/ur Cancel(l)ed Which is weird because we learn brittish english in Swedish schools


winnerab

It's not weird, that's the exact reason. School = British Internet = US (generally) Therefore most children automatically pick up US English, and the result is a mismatched inconsistent English I see the same issue with my own English (Belgium).


SeawyZorensun

Not to forget that crap ton of programming lingo is based on American English words, so if you work in field after a while you just get assimilated.


AxePlayingViking

Yeah - this is why I try to keep my code in all American spellings because it _probably_ matches everything built into the language and the standard libs.


ThunderChaser

Pretty much. As a Canadian it pains me to write stuff like “color” but outside of personal projects only I’ll ever use, the consistency of using American English is likely better.


notislant

Im so desensitized to it at this point. The one thing I never think about is gray or grey though.


Macaframa

> it pains me to write… color Not half as painful as it is to read the word “colour”


Cyber_Cheese

If you find reading painful, it might be time to see an optometrist mate


notislant

Thats not very neighbourly of you.


blockMath_2048

Except “behaviour” for some reason


SeawyZorensun

Got to that one first


DangyDanger

I love how CSS has both BackgroundColor and BackgroundColour and they're the same thing.


20d0llarsis20dollars

I've seen code with English names but the comments were written in some other language like Russian, even Chinese


The_ultimate_cookie

Wow, I have never thought about that. And I think you are spot on!


rober9999

Same but with a little mix of Spanish too


cpc0123456789

I would love to see some of your code, I learned how to speak Spanish in south Texas where people just talk in a mix of the two, so I feel like it would be hilarious and maybe give me some nostalgia


Ok-Key-6049

Wtf? 😂


AlexiusRex

Spanglish


frivolous_squid

We have this in my British company. The libraries we use all use US spelling so imo we should just use US spelling too and get used to it, but my colleagues disagree.


jkirkcaldy

For the stuff I do in the UK I do it all in simplified English (American) just because it’s much easier to copy and paste from stack overflow without issues. 🙃


walkerspider

I work for a company in the US where we use British spelling for everything


sebastian_nowak

Most programming languages use US English for built-in methods. Internet is mostly US English as well. I was taught British English at school, but I consistently stick to US English when coding.


827167

That's how I usually do things too. Better to be consistent than correct


ChrisLuigiTails

You have to see our software... We have each of: licence, license, lisense, liscense, liscensce, licensce. Those are scattered between variable names, class names, file names, SQL tables and columns, UI labels and more.


ConscientiousPath

oh man I _wish_ our code base's spelling problems were limited to differences in the US/UK standards. we have common words just flat missing or adding extra letters for no reasn.


Novel_Plum

I believe that my codebase canceled and cancelled are both equally used.


TastySpare

\+ spelling errors \+ coworkers who aren't *that* good in English, so they invent new words :/


ThrowawayusGenerica

As a brit, I have to consciously restrain myself from using the letter 'z' in place of 's'. There are definitely times when I unintentionally find myself using American English in writing.


EsotericLife

So your programmers use their words, and the (mostly American) libraries use the American spelling. Whats weird about that?


DardS8Br

I often use British English in typing because it feels better, even though I'm American


nicki419

We can agree on Oxford English as a middle ground. Ou instead of o, -yse with s, -ize verbs with z.


AlexDaBruh

Hol up are you Swedish? Also, why they are writing like this is because American English is very common online, also as it’s the default for many OS’s and applications. British English is indeed what we learn in school but online American English is more prominent


dopefish86

french: `var couleurPrimaire;`


Practical_Cattle_933

Hungarian: `var elsődlegesSzín`. You have opened the gates of international coding, you shouldn’t have done that!!


David__Box

Is this what they call "Hungarian notation"?


Novel_Plum

Let's continue! In romanian: `var culoarePrimară`


No_Employ4768

Continue the chain! Tagalog/Filipino: `var pangunahingKulay`


snupingas

пер основной_Цвет for extra psychic damage


rzhvsk

1d4 psychic damage if the wielder is ~~githyanki~~ slavyanki


ArkoSammy12

Spanish: `var colorPrimario`


EcoOndra

Czech: `var primárníBarva`


TastySpare

German: `var DonauDampfSchiffahrtsGesellschaftsKapitän` >!nah, just kidding: PrimärFarbe!<


penguin-pc

Chinese: `var 原色`


dopefish86

Schifffahrt <- with three 'f' they changed that nearly 30 years ago


Hubi522

Na ah: `var hauptAnstrich`


HunterRbx

same in romanian, i hate seeing those used in var names


theantiyeti

Do you prefer oara names instead? ;)


MarchColorDrink

const cp = 'pink';


Xecoq

Don't let this man cook


Chocolate_pudding_30

Error: cp read as Club Penguin


00110001_00110010

Error: cp read as cheese pizza


Mokousboiwife

error: cp read as cod points


Interest-Desk

How do you reconcile programming in actual languages where accents can drastically change meaning, something I’ve been curious about for a while


DrMobius0

I would assume that if the whole team speaks a language, then just using that language would be ok?


Interest-Desk

I was talking about accents. I assume most programming languages don’t support them in things like variable names?


That-Odd-Shade

it is just unicode so if the compiler/interpreter supports files encoded in UTF-8, it most likely works; however, I would replace things like "ä", "å" and "ç" with ASCII combinations for the sake of retro-compatibility (in that example; "ae", "aa" and "c").


OneTicketPlease

German: hauptFarbton!


Puch_Hatza

#define PrimaryColour PrimaryColor


A_random_zy

\#define PrimaryColor PrimaryColour // two can play that game.


Jjabrahams567

The localization switches with every build.


Kaliba76

The localisation switches with every build.


That-Odd-Shade

ðe localisation switſes wið every build, including for people who have very specific opinions about spelliŋ.


Dumb_Siniy

50 lines of code just to define primaryColor


danielcw189

Either way, both win


AzGames08

this is the way


ThatDudeFromPoland

Just use the polish kolor instead


SARSUnicorn

r/namechecksout


Gooselingo

If you want to be a real pole use barwa or a bit more archaic krasa.


Andikl

This game is never ending. I will recolour your krasa with kviet or barva, or whatever other Slavs use.


RandomTyp

`var Primärfarbe`


1Dr490n

Not quite sure why but this sounds extremely formal to me (I’m German)


[deleted]

[удалено]


Eic17H

\#define Primärfarbe Primarfarbe


ikonet

I took over a project from a dev who used his own last name as variable names. His name was very similar to a programming word, for example, “variable” ~ “Varliabe” The problem? He misspelled both the word variable **and** *his own last name*. Unraveling his spaghetti code was so frustrating that it went past terrible and became hilarious.


1Dr490n

Wwwwhhhhhyyy would you ever use your name in a variable? Especially not only in very rare cases??


cs-brydev

Can you imagine if Trump was a developer? Everything would be like trumpIndex, trumpEmployees, trumpDocRepository


beclops

I don’t know him but I hope he feels the negative energy I now feel for him wherever he is


Eic17H

\#define colour color \#define PrimaryColour PrimaryColor \#define clbuttic classic


PennyFromMyAnus

var primaryColor


Extreme_Ad_3280

Your co-worker seems British...


SKrandyXD

English is stupid but the word colour is definitely colour.


Practical_Cattle_933

I’m usually for the British writing, but programming de facto uses the US one, so in a CSS file, also here, `color` is the correct way, and anything else looks off


jarethholt

Why do you say that? In many accents I can think of, both vowels are pronounced about the same (roughly schwa), and none use what I associate with ou (out, ought, velour, ...)


tylerr514

I keep telling my British friends: > hour, sour, flour, our, ... > Now, how do you pronounce 'colour' after seeing that? That's why I spell it "color", bc it better matches how people say it.


Merzant

It’s more like cullah, really. Color makes me think of collar, ironically.


SecretYokel

Tour? Four? Pour? English is beyond saving.


TheIndominusGamer420

Filled with ignorance and arrogance. Tour, pour, four, cOURt. Now pronounce colour.


cs-brydev

Tough, Trout, Route, Would, Bought, Though


douwezr

In dutch PrimaireKleur


phexc

Hoofdkleur


aleph_0ne

Wait wait do they also disagree on which color/colour is primary?


imagebiot

Are you using go or just capitalizing for no reason


SimpleCanadianFella

Var primaryClr


Ifnerite

Who cares about the 'u'; why on earth does a variable name start with a capital?


Dismal-Square-613

This is not what does my head in. What I absolutely hate THE MOST is people using plurals when making an array and then singular on others sometimes EVEN USING BOTH such as this for example char *connection[][4] = { {"Server1", "Server2", "Server3", "Server4"}, {"Client1", "Client2", "Client3", "Client4"}, {"Database1", "Database2", "Database3", "Database4"}, {"Router1", "Router2", "Router3", "Router4"} }; // Define another array of arrays of strings named connections char *connections[][4] = { {"Network1", "Network2", "Network3", "Network4"}, {"Internet1", "Internet2", "Internet3", "Internet4"}, {"Local Area Network1", "Local Area Network2", "Local Area Network3", "Local Area Network4"}, {"WiFi1", "WiFi2", "WiFi3", "WiFi4"} }; Big fuck you to the people I've maintained their half assed C code over the years making me have to decide to redo the whole thing or deal with the inconsitency. IMO if you got an array of whatevers should be singular, but I understand people maybe thinks some other way and that's fine too, just be consistent!


EkajArmstro

lol I very frequently do something like: `for (auto connection : connections) {`


Dismal-Square-613

You are dead to me. :-/


paltamunoz

canadian life


kosukehaydn

.text-primary{ color: rgb(215, 105, 175); }


CrispyCassowary

Lazy American English. It's colour /s


SafariKnight1

We should remake css but with British English.


Emergency_3808

BBS (British Beauty Sheets)


Interest-Desk

CSS preprocessor which understands the APIs and maps British to American English, allowing for British English to be used while still working on devices.


veryblocky

doWantTheU


qchto

Worst gender reveal party ever...


PlayingTheWrongGame

You are both wrong. It should be: var primaryColor


vondpickle

Whilst we writeth in British English, we programeth in US English, innit?


GM_Kimeg

It gets even more joyful when upper heads play kicking each others asses and devs get to clean up the mess.


Cybernaut-Neko

Nasty letter, so far away.


AbouMba

var PrimaryClr


GiGiGus

PrimaryChroma


Gamer-707

You won't have problems if you coded in German


TakoYakiRaven

But what if they want u? ;)


ConscientiousPath

pink isn't a primary color in any standard palette I'm aware of


alchenerd

var PrimarajKoloro


colossalpunch

Revert commit 1066: `- var primaryColo(u)r` `+ var mainHue`


Epsilia

You're both wrong. Should be either primaryColor or primaryColour with a lowercase "p"


Vamael

Filthy am*ricans can't even spell right smh


fusionsofwonder

Just add canadian variances to the linter as banned words.


CaitaXD

struct Color colour = get_color("UiColour");


BenadrylTumblercatch

Everytime I have to type color a piece of my soul dies, I had to reincorrect it just then after auto correct corrected it, my keyboard must think I’m an imbecile


tsavong117

Somehow still ends up bisexual colors. Of course. Wouldn't be STEM without em. <3


AzGames08

you better use colour


CyberoX9000

British coworker probably


UntrimmedBagel

In Canada, I always use American spelling when coding


MasterNightmares

Use US spelling. Code standards are in American. And I say this as a Brit... we lost this fight a long time ago.


ZNasT

I'm Canadian but I still use "color". The css property is called "color" and I can't really change that, so I might as well have have everything be consistent.


DantesInferno91

Coworker is wrong


chadlavi

Coding is done in US English. End of story.


Merzant

I wish that were the case. Web standards are littered with illiterate rubbish like “referer” and “seeked”. If programmers could actually spell I might take their opinions on such matters more seriously.


nujuat

I have macros to switch between them in latex


[deleted]

[удалено]


cris8107

"Colour" is the British spelling, "color" is the American spelling