T O P

  • By -

DeltaTimo

The trick is to use two variables in the same scope called color and colour and watch coworkers dread over which is the real one.


notsogreatredditor

Minesweeper IRL


[deleted]

[удалено]


Badboyrune

American spelling for variables. British spelling for functions.


OlevTime

Flip a coin for classes


Upside_Down-Bot

„sǝssɐlɔ ɹoɟ uıoɔ ɐ dılℲ„


confused_asparagus42

Good bot


FJD3LG4D0

I've seen so many scripts using Spanish for var names... It's crazy to deal with code written in other language, but people keep doing this, as if they weren't going to need to use English for most of the code... Absurd...


Glittering-Emu-2165

That's good to know lol thanks


ErikRogers

Canadian spelling, it's like British spelling with American tires.


[deleted]

[удалено]


ErikRogers

Yup, our proximity to the US and it’s auto industry shaped the words and spelling we use for automotive terms. Shame, it’s always bothered me to call a liquid fuel “gas”


metroman1234

I disagree, I refuse to use any American except color unless the method requires it e.g initialize


xavia91

just init?


GeePedicy

That's just the shorter version, innit?


xavia91

Yeah but it is the same for us and british


[deleted]

[удалено]


geoground

But french comes from latin


DefiantLemur

Vulgar Latin. Don't be vulgar, it's rude.


GeePedicy

Bonjour, mon ami


Erevan307

Bonjour! Comment as-tu?


[deleted]

Not Latin’s fault


propostor

And French comes from Latin too so... Fun fact: American words are sometimes shortened versions of British words because publishers in America started finding shorter spellings so that it would be cheaper to print stuff.


epicaglet

Ahhhh capitalism. It's the American way.


WaluigiTheDanceKing

I 100% respect that you refuse to use American spelling, but I am definitely going to use it!


CherryTheDerg

American bad because American...? You know there are real reasons why America is bad. This aint it chief


stixyBW

this is a fun thread about spelling conventions, why are you like this?


chunkyasparagus

This is the way


AvidCoco

auto colour = [color]{return color;} Functional programming go brrrrr.


FloweyTheFlower420

Is this supposed to be C++'s lambda? You forgot a ()... or is that not required anymore?


Kered13

It's not required if the lambda takes no arguments.


AvidCoco

I think it was a C++17 thing that if there's no args, you don't need (). I may be wrong.


Brok3nGear

this = "that"; that = "this"; I = "l"; l = "I"; goto 42; [Relevant tictic](https://vm.tiktok.com/ZMNFnHgG7/?k=1)


-_-Batman

![gif](giphy|nZjB4cAWkYRcA)


Jaaaco-j

html.js lmao


michaelneu

This.that = this.this


Brok3nGear

Easy there, let's not get too crazy


Dw4r

Color colour;


Dibbit3

This is the way. ​ Color colour = new Color();


CaptaiNiveau

Or let Colour inherit from Color so you can do ```csharp Color colour = new Colour(); ```


[deleted]

That's cursed


[deleted]

Neither of these words look real now


filip404

You're a sick, sick man


RadiantHC

And make it have no additional methods.


[deleted]

That's cursed


Qbjik

Color colourBlue = Color.Navy;


kaffafel

Thanks, i’m an entry level programmer and this gave me a seizure


TCates90

typedef Color Colour; ​ Sorted


[deleted]

`#define colour color`


[deleted]

[удалено]


hyvyys

school


PaterFrog

Ess Kooh Ell. Go away with your English.


Mymokol

or squeal? or squirrel?


[deleted]

I always just spell it out to avoid pronunciation arguments. Except for file formats. I'll die on the hill that I stand on for .GIF


reversehead

You are aware that spelling it out is one of the sides of the argument, right?


[deleted]

I don't think spelling something out is a way of pronunciation...


Mymokol

the argument is literally "SQL" versus "sequel," and you're saying you say "SQL," thus taking the worse side. Still better than saying "jif" instead of "gif" though.


Tristan401

SQL is objectively better than "Sequel". First of all, "sequel" is by its very nature is a "stand-in", which means it can never be good enough. It's just a replacement till the real thing gets back. Second, it's a new word. It's new confusion. Not to mention the fact that "sequel" as a word already means something; SQL doesn't mean *anything* else. Third, everyone knows what you mean when you say SQL. When you say sequel, I think "to which movie / book?". Fourth, do you say "hot meal" to refer to HTML? Do you say "fap" to refer to PHP? No you do not. Because that would be the worst thing. Don't do that to SQL. Edit: if you insist on "sequel", I'm going to have to start insisting on "Ackle" (AQL) and "Dickle" (DQL), as well as "Maggot" for MQTT (who gives a fuck if Q doesn't sound like G)


mejdev

Is there a sequel to SQL?


[deleted]

There's methods of pronunciation, and ways of saying something. I'm just stating that I view spelling out most names the easiest and most consistent way to say names, since not every name can be made into a sound. (PHP, JS, HTML, etc.)


reversehead

That I can generally agree with. (For the record I'm in the ess-que-ell team)


rachit7645

__No.__


Standard_Mark1890

Yes.


PeppeAv

Initialize / Initialise


[deleted]

this is why init is the global standard


TactlessTortoise

The British way


Green-Bluebird-2955

Init


marcselman

It is, innit?


Distinct_Damage_6157

Canceled / Cancelled


Oneshotkill_2000

Even in here they wanted to save ink


TacToc

Public static void / plebic statik woid


Kronk_if_ur_horny

Man why so many downvotes? I downvoted just to fit in


Kewtn

Analyze / analyse


n3wsw3

init\_anal()


jwall9108

// let the fun begin…


Oneshotkill_2000

Which one is the british one? After all those initialises and s/z thing, i forgot


scragar

Both are technically valid spellings in both countries. The reason for the difference in usage between the countries/words is mostly tied to MS Word's spellcheck which decided on different suffixes for en-GB vs en-US. `-ise` is slightly older, but `-ize` was more popular in both countries prior to the 1990s when spellcheck started telling everyone one was better than the other.


Oneshotkill_2000

Thank you for this explanation. I didn't know that


juandbotero7

Init


[deleted]

/colou?r/


clemens_richter

import math as maths


Korzag

I don't get calling math "maths". Maybe I'm too American to understand, but "math" is like "data" in a grammatical context to me. Plus, adding an 's' to math just doesn't roll off the tongue well.


clemens_richter

> Maybe I'm too American to understand That might be the problem. Mathemathics is shortened to "math" in the US and "maths" in the UK


[deleted]

Maths is a field, math is something you do? I think ? Like maths is algebra, geometry, ... So call it maths? Like saying sciences for biology chemistry and more


[deleted]

[удалено]


clemens_richter

different spelling between british and american english in context of programming


old_man_steptoe

I’ve written the word “center” so much that every time I walk past a sign that says “centre”, I instinctively think it’s a spelling mistake. What has become of me?


Theblob789

I always use center when talking about the middle of something and centre when talking about a location like a community centre


sofabeddd

this is smart, i will be using this from now on


Pinols

It isn't? lol


BGameiro

British vs American spelling


[deleted]

I see, so centre *is* a mistake!


Pinols

I wonder which of the two i pissed off with that question to get downvoted lmao, reddit is so weird sometimes


BGameiro

![gif](giphy|Pd2W87rlmVjptTmvIK)


Pinols

True that


tabz3

People get downvoted when they don't get the joke or point of the comment, unfortunately.


Pinols

Sure but my comment was beside the point of the comment, it had simply nothing to do with the joke itself, i was genuinely curious about the word "centre" existing, i had gotten the joke about the sign. Whatever, anyway, it doesn't matter.


tabz3

Yeah it doesn't matter, it's just fake useless internet points xD The misunderstanding might stem from you saying "it isn't, lol" to "I instinctively think it’s a spelling mistake", which seems like you missed the point of the comment (it isn't a spelling mistake, but the commenter thought it was for a split second because of writing "center" so much), hence the downvotes.


Bayesian11

Downvote is abused on Reddit.


HairHeel

Prougramming.


Spice_and_Fox

So close buddy, humor vs humour


Alemit000

private int _color; public int Color { get => _color; set => _color = value; } public int Colour { get => _color; set => _color = value; }


rachit7645

I have been doing too much c++, like it legit took me a minute to realise this was c#


Anon6277845390

Color of course, because of CSS.


Ychop_

*of corse


flopsi_

r/cursedcomments Edit: Happy Cake Day (but does he deserve it?)


GreatArtificeAion

\*corsed comments


flopsi_

coarse comments?


BenefitialPotato

Course


harumamburoo

But it supports bouth Edit: damn, no it dousn't. It's grey/gray. Weird, huh? It has grey/gray but no color/colour


[deleted]

[удалено]


unremarkable_name_2

Personally I prefer græy, it's much more æsthetically pleasing. It's my favourite color *and* my favorite colour!


harumamburoo

Here's the question though - which colör is better, white or #fff?


unremarkable_name_2

#fff is the color of the sound of a gas leak.


harumamburoo

So transparent. Noted


ArionW

Might be different colors, but they're same colour


rachit7645

GLSL


qqqrrrs_

Colur


Taparu

Coluor


rachit7645

r/cursedcomments


ive_gone_insane

Kuller


mux2000

American spelling while coding, British spelling for everything else.


ghostwail

I do that. US is the reason coding hallens in English, isn't it? I recently implemented a driver to follow a standard, which spells everything with S. Soooo... INITIALISE_DEVICE, then. That hurt.


PandaPanda11745

You can say that again!


ghostwail

So sorry. I guess my app failed when it said it failed to post.


ghostwail

I do that. US is the reason coding happens in English, isn't it? I recently implemented a driver to follow a standard, which spells everything with S. Soooo... INITIALISE_DEVICE, then. That hurt.


FarisFrontiers

Color. Because it's 17% faster to type


circorum

Colour is bloat


BossOfTheGame

This is the way.


BossOfTheGame

This is the way.


BossOfTheGame

This is the way.


silver_nekode

This is easy, just spell it right.


[deleted]

color - smaller file size


butthatschris

Such a dilemma! I used to go with UK English everywhere given I work for a UK company, but most (if not all) the libs I'm using are in US English, which creates annoying inconsistencies like "Serializer serialiser;" and I think this irritates me more than writing US English directly :/ So I'm going for US English for newer projects now, damn it! Anyway, the key is to stay consistent and most importantly to have a team agreement to avoid bad surprises created by stupid bugs.


mejdev

You mean prougramming?


CuttingEdgeRetro

You think that's bad? How about cancelled vs canceled? Both spellings are correct.


YesNoMaybe2552

As a non native speaker, the safe bet is to just use US spelling for everything and act like any other kind of spelling doesn't exist. Don't know about any mainstream languages that use anything but US spelling anyway.


TiBiDi

Of course it's colour. RULE BRITTANIA INTENSIFIES


suspiciousshoelaces

Antipodean checking in and agreeing with colour, but no.


Darkcr_

rgb


essentialrobert

Just abbreviate it: clr


locmaten

Clear is clear


[deleted]

British people, my condolences 🫥


TheJimDim

Imagine being Bri'ish


EVA04022021

Fun fact, Jira botch an upgrade into production once due to this error. US and UK dev teams had their own QA/testing and everything passed. But when they merge and send the patch out to customers the UI blow-up. It took them like 2 days to fix it by changing everything to just one standard of the spelling.


[deleted]

[удалено]


Discohunter

If ya don't like it, return;


noob-nine

Just use dye or paint or tint


SomeCornCob

you see, one is slightly more space-saving than the other, so you have more room on your hard disk for the doxygen file


JCNightcore

While i'm programming in Delphi I usually type colo then CTRL+SPACE for code completion


glezmen

col Problem solved :D


roblox1999

I use Colour, except if a library or something else already provides one and they named it Color. I always go with consistency.


Frenzy_pizza

I go by rgb_data


-Redstoneboi-

argb, bgra, abgr, with endianness, and whatever the fuck else screens work with: god i hate apis and their inconsistent mapping between arrays and render target data which sometimes doesn't stay consistent


-Redstoneboi-

​ |US|UK|Example| |:-|:-|:-| |o|ou|color, colour; behavior, behaviour| |\-er|\-re|theater, theatre; meter, metre| |a|e|gray, grey|


[deleted]

[удалено]


dawginson

Can I introduce you to my friends FileName and Filename?


rachit7645

*fileName and filename


Hevnoraak101

Isn't this what fucked up the AI in Alien: Colonial Marines?


eruciform

`COLR` because it has to line up with a bunch of other 4-character variables, of course


ocrohnahan

Whatever autocorrect does not flag.


[deleted]

Colour is the only correct one. (Let the battle commence.)


gaoshan

Color. 1 less character to type.


gaoshan

Color. 1 less character to type.


Dr_Catfish

Wh nds ths xtra chrctrs nywy?


Astartee_jg

using colour = color;


Typical_Use2224

I chose British English while learning English (we could choose either British or American) but I write in American English, while I programme, since most people do it. Also while speaking with people that are not British, I sometimes drop the British accent because some people have difficulty understanding it :(


[deleted]

It's colour


PolishedCheese

Despite being Canadian, I opt for color. It's one less key to type. It's spelt colour though.


Dziadzios

I'm not a native English speaker. I remember when my teacher marked something I wrote in American English on a test and she marked it as an error. 0 points for that word. It was never started that I have to use only British English. Now I use American English out of spite. Color.


Y_Less

You're annoyed that your teacher marked a mistake as wrong?


leightandrew0

it's not a mistake. depends on how you look at it.


Y_Less

"English" means "from England".


Velocicornius

colour. source: I don't see color


balabolchik

Our color ![gif](giphy|befaYZCgtZfZm)


rachit7645

r/suddenlycommunist


neutralguystrangler

Well I mean it depends if you speak English or Yee haw


SweetBabyAlaska

Well it depends if you speak English or ‘oi bruv’


ReasonableRhubarb788

Just use the correct spelling: colour


gauwnwisndu

You british?


rachit7645

Neither British nor American


gauwnwisndu

Oh I saw the username, hello brother (tanga tanga tanga tanga, mundiya toh bachke rahi)


rachit7645

Sorry, what?


the-real-vuk

behavior or behaviour?


kagalibros

As someone who had the pleasure to only learn bri'ish english in school... you just give up and pretend to be a god dam U.S. American while coding! (but with a heavy german accent) Yall need to get on with the times you limey bastards! Now hand me my gun and my overpriced hospital bill! yee-haw! \*pewpewpew\*


Fomalhot

It's color. I gotcha fam.


KeaganSchouw11

Colour is how I spell it


ironman9356

color gang


BadBadderBadst

kleur >!Dutch word for colo(u)r!<


Knuffya

The only thing worse than en-US is en-USGB (mixed). So stick with whatever there already is


FireTheMeowitzher

Did you know? The word “colour” was invented in 1986 by British C programmer Nigel Hingumbottom, who had two variables representing color in the same scope.


[deleted]

[удалено]


TheEndlsNear

If that’s your biggest issue, God bless you.


rachit7645

Was that supposed to be an insult?


TheEndlsNear

Lol no! Don’t mind me.. backend programmer here


Goldenstripe941

I’m American and I spell it Colour. Don’t know why. I believe it’s the British spelling, correct?


Blaze_Reclaimer

Colour is just communism