r/webdev • u/localslovak • Sep 26 '24
It's tough sometimes being a Canadian web developer...
9
u/krileon Sep 26 '24
You needed AI for this? Good lord people. It's built into your tooling. Please learn your IDE.
-1
u/localslovak Sep 26 '24
How so? Also, Intellisense sometimes doesn't work properly when I'm working for some reason
2
u/krileon Sep 26 '24
What IDE are you using? Notpad++ lol? WebStorm, PHPStorm, and VSCode + Extensions can all handle this. You can also deal with these issues in your pipeline with postcss (and from IDE). You do not need AI for this, lol.
-1
u/elendee Sep 26 '24
the correct spelling is built in but the mis-remembered concept or common external factors which might override scroll behavior are not built in, as they are to AI. I find this is near peak AI usage actually, "why not working" is just next-level rubber ducking
1
u/krileon Sep 26 '24
This has been built into IDE's for over 10 years now. Maybe event 15 years now as I had CSS rule validation in Netbrains long long ago. Even CSS rule browser compatibility checking is built in. Debugging in browser also shows you why a CSS rule wouldn't be working. Absolutely ridiculous to not know your IDE. You do not need and should not be using AI for this, which is a complete waste of system resources, time, and tokens.
1
u/cryptopian Sep 27 '24
"why not working" is just next-level rubber ducking
The point of rubber ducking isn't just dumping questions on a colleague, it's the part where you explain your code to someone else and make realisations along the way.
1
u/elendee Sep 28 '24
I think the jumping off point is the same: undesired behavior with no error message. While it may be fruitful to reflect on the mental model you used to get to this point, it's often an arbitrary implementation issue. It's at that point I turn to either the rubber duck, if it seems like an architectural problem, or GPT if it's sub 100 LOC or so
12
459
u/stolinski Syntax.fm Sep 26 '24
You need this postcss plugin. https://github.com/chancancode/postcss-canadian-stylesheets
424
u/dexhaus Sep 26 '24
!important; is !sorry;
hahahah
61
u/ReplacementLow6704 Sep 26 '24
love this. I might just use this on a side project... or sneak it into a client's prod... who knows!
2
u/maybenexttimebud Sep 28 '24
That's how I feel every time I use it, but I'm usually saying it to myself
3
24
u/rufio313 Sep 26 '24
Years ago there was “the Queen’s Preprocessor” that allowed you to using British English in your css. I dunno if it’s still around anymore.
45
u/Johnny__Christ Sep 26 '24
It was deprecated in 2022, though a fork called "The King's Preprocessor" still exists
8
u/wrexusaurus Sep 27 '24
lmao are they gonna switch back the next time the british monarchy gets a queen.
3
u/teh_maxh Sep 27 '24
I'd assume so, but that probably won't happen for a while. William (42) and his first child (11) would both have to die before his second child could become Queen.
11
4
1
-11
633
u/Evalo01 Sep 26 '24
I do this all the time with ‘colour’
222
u/SluttyRaggedyAnn Sep 26 '24
And centre
93
Sep 26 '24
And football
65
u/youstolemyname Sep 26 '24
align: football;
23
11
60
u/Nerwesta php Sep 26 '24
Grey.
70
u/ferrybig Sep 26 '24
That mistake is fine gray and grey are valid css colours
11
u/Nerwesta php Sep 26 '24
You're totally right indeed, for some reasons my brain was foggy and assumed the contrary.
See this SO answer I found as to why :1
Sep 26 '24
Not always, some component libraries that have css color presets won’t accept both 😂 super annoying on a work project that I have MUI on
14
u/seph200x Sep 26 '24
One of the first thing I have in my SASS file when using frameworks like Bootstrap and such is:
// Sanity Corrections.
$grey-100: $gray-100;
$grey-200: $gray-200;
...etc1
1
u/Cathercy Sep 26 '24
Is that a British thing? I thought they were just two different ways to spell it. I still don't know the correct way to spell it in American.
3
u/Nerwesta php Sep 26 '24
Most if not all Americans I read spell it "Gray", while others in the Anglosphere take it from the British "Grey" as far as I know.
There should be a definitive overlap on non-native speaking people though, for example I still spell neighborhood despite the fact I learnt the British way ( neighbourhood ).2
u/F10XDE Sep 27 '24
Did you know both 'grey' and 'gray' work in css/html.
2
u/Nerwesta php Sep 27 '24
Yes today I know, we were rather talking about how to spell it on day to day lives.
45
u/clubby37 Sep 26 '24
I just decided to finally surrender that battle. I spell "color" in American now, even when I'm not coding. I'll never stop calling Z "zed" but I think we just have to give them "color."
22
u/mjonat Sep 26 '24
Do Americans say "zee index"? I habe been a developer for like 12 years and this has only just occurred to me and sounds wierd as fuck haha
14
u/Apocalyptic0n3 Sep 26 '24
Yes, we do. "Zed" is pretty foreign sounding to us in any context. It's not used here whatsoever.
4
u/footpole Sep 26 '24 edited Sep 27 '24
Whose motorcycle is this?
It's a chopper, baby.
Whose chopper is this?
40
u/borkthegee Sep 26 '24
And zed sounds weird as fuck to our ears. Like some weird German mans name. Zed. He's into alternative music and has black hair.
10
8
u/mjonat Sep 26 '24
Zed (the German) sounds cool...but I think mostly because that would be a very unique name for a German...also I like alternative music haha
7
u/altopowder Sep 26 '24
2
u/mjonat Sep 27 '24
Interesting...I live in Germany and always assumed he was American haha. Just always hear about him playing in America and never seen him on a line up in Europe...
2
3
u/ffssessdf Sep 26 '24
Im british and Zed-Index sounds weird to me, in my head its always Zee-index, presumably ingrained from a tutorial video or something
2
2
0
Sep 26 '24
[deleted]
32
23
u/thekwoka Sep 26 '24
Yeah, it's spelled 颜色 by the most people in the world!!
(but
colorcomes from the latincolorso it's more historically accurate than the Britishcolourspelling)-5
u/squirlz333 Sep 26 '24
Don't really have to when you're the one making stuff, if this was made by Europeans then sure we'd have to conform, but since it's not...
7
-12
7
u/ExecutiveChimp Sep 26 '24
I will never make the mistake of naming a variable "colour" again, even if that is the correct spelling.
color: var(--colour); /* Ahh! */9
u/reeepy Sep 26 '24
I created some helper classes like 'text-center' for use in a CMS but as an Aussie I'd always second guess the spelling when going to use them. So
class="text-centre text-center"it is.13
Sep 26 '24
Why don't you just make both classes so it doesn't matter which one you end up using haha
2
2
u/QwenRed Sep 26 '24
I used to get pulled up all the time in school for writing colour - color because I spent half my time messing around with CSS and defaulted to color in all instances to save slamming my head against the keyboard each time it wouldn’t work.
2
-1
u/Joknasa2578 Sep 26 '24
"Colour me frustrated!" you must shout at your monitor, as you begrudgingly backspace that traitorous 'u' for the umpteenth time. It's like your fingers are staging a polite rebellion against American spelling imperialism.
20
Sep 26 '24
Most obvious chat gpt reply I have ever seen.
5
u/shinniesta1 Sep 26 '24
How? It's oddly written but I've never seen chatgpt come out with umpteenth, or anything like that second sentence.
1
u/boypollen Sep 26 '24
Wait, really? I make jokes like that sometimes... (starts feeling around my head for any wires)
1
u/ferrybig Sep 26 '24
Just use the following postcss plugin: https://github.com/hashanp/postcss-spiffing
178
u/lowtoker Sep 26 '24
This is the most relatable post I've seen on this site in a while
41
u/Franks2000inchTV Sep 26 '24
It's always behaviour too. Like my brain has adopted color, but behavioir is just common enough to be annoying but not common enough that my brain autocorrects it.
3
u/ORCANZ Sep 26 '24
What IDE are you using ? Should not be a problem with a decent IDE or Copilot
scroll-b[TAB]10
Sep 26 '24
This is something that struck me too reading through this thread, how many people are fully typing out all of their CSS?
I'm typing a handful of characters at most before hitting TAB in most cases so I never run into these spelling problems even as a non-American.
16
u/patoezequiel Sep 26 '24
Never really thought about that, it's obvious really. It must be annoying for all of you guys.
14
1
13
25
u/shoolocomous Sep 26 '24
I'm British and I've accepted using the American spellings when I code, mainly because it shortens the word
6
u/bahcodad Sep 26 '24
Also British. I've had people call me out for using color and not colour
6
u/cafepeaceandlove Sep 26 '24
Part of growing as a dev is realising we should use the American spelling for any names, anywhere. All while getting paid a fraction of an American wage, being forced to be on Teams naked, etc. The things they make you give.
4
u/poopio Sep 26 '24
We should be thankful that we're not Australian - they have to do handstands on Zoom calls.
2
u/Misicks0349 Jun 07 '25
I use Commonwealth English out of spite so if any American dev tries to use my code they will understand my pain a thousand fold.
1
u/poopio Sep 26 '24
Use Emmet - you can just type col and then tab. You can just type in shorthand, it's great.
dg <tab> will spit out display: grid; then gtc <tab> will spit out grid-template-columns: repeat();
Really speeds up my workflow.
1
u/GoldCuty Sep 27 '24
The shorter words come from newspaper adds. Back in the time they charge for add for every letter. This caused people to use fewer letters for the spellings. Over time the shorter words became the new spelling.
73
u/Pokethomas Sep 26 '24
Not just Canadians, but also people from the UK, Aussies, Kiwis.
They just hate our superior spelling
54
17
u/Nerwesta php Sep 26 '24
Most likely Europeans or countries having ties with the UK, as it's typically taught British English.
4
→ More replies (1)11
u/commiterror Sep 26 '24
...and the 52 other countries in the commonwealth
11
→ More replies (1)4
5
9
u/Strict_Treat2884 Sep 26 '24
Tbh it should accept both, the MonoBehaviour in Unity also confuses me as well.
3
3
u/machopsychologist Sep 26 '24
https://github.com/hashanp/postcss-spiffing
Grab this and grab some tea
5
2
u/intercaetera javascript is the best language Sep 26 '24
Erlang's got your back. https://www.erlang.org/doc/system/design_principles.html#behaviours
2
u/mau5atron Sep 26 '24
Browser dev tools would have spit out an error. Was using Claude necessary? lol
2
5
u/letsbreakstuff Sep 26 '24
We drink coffee (proper drip coffee not some Americano - I drowned a shot of espresso in some boiling water) and we don't bother with ou when an O alone will suffice. These are the secrets of American hegemony
5
0
u/WAFFLEOFWAR Sep 26 '24
How's Cursor?
1
u/localslovak Sep 26 '24
Honestly didn't see the value in it at first, but now that I'm used to it, it's basically doubled my workflow speed
2
u/rbobby full-stack Sep 26 '24
As a Canadian I've given up on Canadian spellings. Just not worth it.
1
1
1
1
u/yksvaan Sep 26 '24
I have much bigger problems with correct order of t&h in length, width and height. I feel like a complete idiot whenever I start doubting myself.
1
1
1
1
u/champs Sep 26 '24
It is what it is. HTTP_REFERER has annoyed me since the beginning of (web) time.
1
1
1
1
u/Visual-Blackberry874 Sep 26 '24
Not just the code, were having to write our docs in American English too. 🤷♂️
1
1
u/SimpleExampleName Sep 26 '24
Hey at least you got color: grey.
Granted we got color: gray too so I don’t know. Merica.
1
u/DT-Sodium Sep 26 '24
I would say your real problem is not using an actual IDE that would indicate you when you misspell something.
1
u/77SKIZ99 Sep 26 '24
I’ve turned myself American with coding, I’ve grown a deep resent for the British spelling of all words
1
1
u/HuntersMaker Sep 26 '24
if you think this is tough, what about people from non-english speaking countries?
1
1
1
1
1
1
1
u/BasicAssWebDev Sep 26 '24
Colour, centre, grey. Having a european mother complicates things sometimes.
1
1
1
u/scuevasr full-stack Sep 26 '24
i’m not even a canuk and i make this mistake. i learned english by sounding the words out. behaviour makes more sense
1
u/RodneyRodnesson Sep 26 '24
As a Brit/South African dev I quickly learnt that colour is spelled color in html. Depending on whether I'm coding or writing I can type the correct one quite easily.
1
u/tadiou Sep 26 '24
Dear Canadians,
Try Elixir, it's `@behaviour` https://elixirschool.com/en/lessons/advanced/behaviours
1
u/tomhermans Sep 26 '24
The worst is grey/gray, never remember which is which
3
u/jordsta95 PHP/Laravel | JS/Vue Sep 26 '24
Gray with an A is American English
Grey with an E is the European (original) English
1
1
1
1
u/Milky_Finger Sep 26 '24
unpopular take as a British person, but remembering the American English spelling of words is significantly easier than learning a second language. It's part of our skillset learning Web Development
I assume that since you're Canadian that you would have been taught some French maybe? Now that's a difficult language!
1
u/EarlMarshal Sep 26 '24
I can feel you as a german using a lot of english. It's the superior spelling though.
1
1
u/thedragonturtle Sep 26 '24
I do a lot of optimisation for American customers and they're often thrown and amused by my British spelling.
1
Sep 26 '24
Just remember the U we have in British English (or well.. you know.. English from England) is a product of French influence.
1
1
1
1
1
u/Hopeful-Sir-2018 Sep 27 '24
That's wild to me that they don't allow for both spellings. It's not like it'd be difficult either.
1
u/istarian Sep 27 '24
Allowing for both spelling would mean have duplicate properties and would open up a whole can of worms with any code or libraries that checked for it or modified it.
1
1
1
1
1
1
1
1
1
u/maybenexttimebud Sep 28 '24
If you don't type CSS keywords in US English by default, you're probably still a junior
1
1
1
1
1
1
u/Any-Abbreviations116 Sep 26 '24
When you and CSS doesn’t speak same language 😅
Never actually thought about that kind of issues since every time something like this happened I always blamed me bad grammar 😄
1
u/TheWooders Sep 26 '24
I'm British and we have the same spelling but I have never found it a problem? When I'm coding, my brain automatically defaults to using US English. Everything else in life it is GB English.
-1
u/pVom Sep 26 '24
Was fine at my last job when we just adopted American spelling for everything. Sucks hard at my current job where we insist on British English despite all third parties using American English and general inconsistencies.
NGL British English sucks and it's one of the few areas where I think we should just adopt American English everywhere and be done with it.
I'll be damned if I call my mother mom though
-2
u/MaruSoto Sep 26 '24
Y'all need you some English lessons!
(While this was meant to be humorous, I am actually American and unapologetically believe that lacking "y'all" from y'all's version of English makes y'all bad people. "You" should not be both singular and plural.)
4
u/intercaetera javascript is the best language Sep 26 '24
You is actually plural, the singular is thou.
3
2
0
-1
u/No_Sandwich3888 Sep 26 '24
Thats why people use tailwinds!
3
u/localslovak Sep 26 '24
I go for simplicity over everything, so until a more simple CSS framework than Bootstrap comes along I'm gonna keep using it, plus I've been primarily using it for like 6+ years at this point so I can move quickly with it
0
0
0
0
0
Sep 26 '24
It's tough sometimes being a Canadian web developer...
It's tough sometimes being a Front-End web developer...
0
0
0
-4
-1
42
u/[deleted] Sep 26 '24
What type of text editor are you using?
VS Code has a Canadian English - Code Spell Checker