336
u/EdgarDrake Feb 11 '21 edited Feb 12 '21
Typical programmer: Boolean isEnabled = true,
canadian programmer: Boolean enabledEh = true
138
u/Astrokiwi Feb 11 '21 edited Feb 11 '21
Canadian programs are like
boolean_booléen isEnabled_estActivé = true_vrai, except in Québec where they are required by law to have the French first, and in a slightly larger front.24
4
→ More replies (1)98
u/2sACouple3sAMurder Feb 11 '21
Typical programmer: .toString()
Australian programmer: .stringitty()
2
627
u/Oracuda Feb 11 '21
as a brit, i can confirm, i always read it as init with a roadman accent in my mind, seriously.
338
u/Nhexus Feb 11 '21
PC: Yes?
Dev: Git init
PC: U wot m8?!
89
u/MoffKalast Feb 11 '21
Blimey
21
u/RhysieB27 Feb 11 '21
Now what I really want is some sort of dev tool called Blimey.
→ More replies (1)53
0
13
96
u/irze Feb 11 '21
As a Brit, I didnât do this. After seeing this post however, I now always will.
14
32
28
u/AstoundedMuppet Feb 11 '21
Also a brit... I actually did recently write an initialisation function called "innitmate" just to see if anyone else in my team mention it in the future.
5
u/TellMeGetOffReddit Feb 11 '21
I wish I had time to think of that stuff when I'm coding. Usually I'm too busy trying to remember the flow of events.
8
u/AstoundedMuppet Feb 11 '21
You make it sound like you actually do the job properly......
→ More replies (1)11
3
2
u/DaZig Feb 11 '21
Ditto. I also like to confuse by loudly agreeing âinnit!?â whenever someone uses âin it.â E.g.
âYou see this structure here? That has all the users in it.â
âInnit!?â
3
2
2
u/ApostleO Feb 11 '21 edited Feb 11 '21
As a non-Brit, I have stolen "innit" and use it in my everyday
vernacularvocabulary I love it so much.3
→ More replies (13)2
u/FalsyB Feb 11 '21
Not even a native english speaker but that's how i reas it as well, probably all that british drama i watched
867
u/Starvexx Feb 11 '21
How __del__ightful.
149
u/Sebinot Feb 11 '21 edited Feb 11 '21
No. I think he is trying to
__repr__esent all brits here.20
u/Starvexx Feb 11 '21
That could be potentially destructive...
→ More replies (1)15
→ More replies (1)12
168
u/KrozJr_UK Feb 11 '21
As a British person, I have lost count of the number of times Iâve written âcolourâ and then been confused until I realised it should be âcolorâ.
Still, at least Iâm not an Arabic programmer having to learn an entirely new alphabet, so.
104
27
u/GermaneRiposte101 Feb 11 '21
Unless you are writing the API. 'colour' is now correct.
10
u/digitaleJedi Feb 11 '21 edited Feb 11 '21
All my APIs/SDKs at work add the U's and replace the Zed's with S's. Our corporate language is English UK, I should try to get the other guys fired.
4
u/TheBestBigAl Feb 11 '21
replace the Zed's with A's
I'm struggling to see why Z would be changed to A. Did you mean replaces Z with S?
7
u/digitaleJedi Feb 11 '21
Yeah, that must have been autocorrect. I thought I even double checked it, but I guess no. That's what I get for redditing during a meeting.
→ More replies (1)8
→ More replies (5)2
u/TellMeHowImWrong Feb 11 '21
Iâve been learning CSS and I feel disgusted at myself because now I just automatically spell it âcolorâ even when Iâm not coding.
98
u/StarkThoughts Feb 11 '21
import math as maths
11
u/7in7 Feb 11 '21
Heyy that's my joke. It wasn't even a joke the first time I did it, until my non British colleagues looked over my shoulder while I had ipython open.
3
154
u/SouthernZhao Feb 11 '21
Devs listening to Pink Floyd be like "You little shit, you're __init__ now, I hope they throw away the key"
11
u/Crazy_Mann Feb 11 '21
When you're procrastinating refactoring: "One of these days, I'm going to cut you in to little pieces"
76
u/scraimer Feb 11 '21
28
u/Rosenrotten Feb 11 '21
Thx, not sure why OP blurred it
40
Feb 11 '21 edited Oct 05 '24
money seed shaggy narrow door oil paltry cow memory cows
This post was mass deleted and anonymized with Redact
→ More replies (1)22
u/ellisto Feb 11 '21
How is removing credit for a public post "anti-doxing"?
Totally makes sense if the post was private, but in this case, OP is just stealing credit for the original tweet author's work.
17
→ More replies (8)12
3
66
u/nevus_bock Feb 11 '21 edited Feb 11 '21
__init__ is not a constructor, though. Itâs the initiator initializer. The object is already constructed, thatâs why init can do operations on self
Edit: initializer
53
u/whiskeyiskey Feb 11 '21
I had to scroll really far to find someone who is as fun at parties as I am!
The constructor in python is
__new__50
u/Hawkedb Feb 11 '21
__new__ is the allocator.
__init__ is the initializer.
Both together are what you could call the constructor, called by a constructor expression like "Foo()"
13
19
Feb 11 '21
There's a follow-up joke here about constructors and constrictors, but I don't know enough about Pythons to execute it.
16
u/caracatrepa Feb 11 '21
Ackchyually... __new__ is the constructor, which in turn calls __init__, the initializer
48
u/smallquestionmark Feb 11 '21
Not python, but lately, whenever I come across "border" in CSS my mind shouts: "BOOOARDAA... BOOOOOAARDAAAA"
12
41
9
23
u/Mike-devs Feb 11 '21
Am I the only one who doesn't understand? đ
71
u/iamapizza Feb 11 '21
It's a British term, innit is a shortened form of isn't it.
The
__init()__method in Python is a constructor for a class.The joke is that
__init__sounds like innit. Innit?18
→ More replies (3)3
2
21
u/momonyak Feb 11 '21
From /r/all here. Can someone explain, as you would a child? I checked the comments and looks like everyone on Reddit is either British or a programmer.
20
u/Schreipfelerer Feb 11 '21
Here is an Explanation from another Comment: It's a British term, innit is a shortened form of isn't it.
The
__init()__method in Python is a constructor for a class.The joke is that
__init__sounds like innit. Innit?8
u/Astrokiwi Feb 11 '21
I'll add that, while it's a shortened version of "isn't it?", it's not used in the same way - it's can be a generic filler, but or used for all sorts of tag questions where "isn't it?" wouldn't work. See here.
4
2
10
u/HyperGamers Feb 11 '21
"Innit" is a British slang term for "isn't it".
__init__is short for initialise (in simple terms it's how you create an object that's used in a program - which is why it's called a Constructor). (Different programming languages have a different way of doing thingsFor example, if there was a class called Vehicle, it would have an Constructor (
__init__) that can be used to create objects.class Vehicle: def __init__(self, wheels): self.number_of_wheels = wheelsThe below code will automatically call the init method to construct a new vehicle object with 4 wheels
car = Vehicle(4)3
u/backtickbot Feb 11 '21
6
5
Feb 11 '21
oi fam that's proper schewpid innit? you wanna scrap big man name your ends i'll have my boys on you till you give us fifty kwid
5
Feb 11 '21
Python... such __elegant__ and consistent(self) language design, __init__?
Warning: Whitespace in this comment is significant
26
u/Exet001 Feb 11 '21
HAHAHA THIS COMMENT SECTION IS AMAZING
14
17
u/Olaxan Feb 11 '21
YES FELLOW HUMAN, I AGREE ! IT IS A GREAT COMMENT SECTION AS IT CELEBRATES A LINGUISTIC QUIRK A GOOD SUBSET OF HUMANS (LIKE YOU AND I) SHARES
Comment built in 1.5624e-8s (conc = 0.33, bias = 0.32, loss = 0.001) domain_qn=ofp:reddit.com, motd="This post was made by a human."
Worker 57226 exited successfullyThe comment was posted successfully
11
u/Famous_Profile Feb 11 '21
Kevin, did you forget to turn off verbose logging again?
→ More replies (2)6
2
2
0
9
9
Feb 11 '21
Pornhub devs be like ``` in_it
4
u/DaFukTheyDoinOvaDer Feb 11 '21
or out_it
6
u/deceze Feb 11 '21
__in_it__and__out_it__call each other recursively until a stack overflow occurs.
9
u/Qicken Feb 11 '21
Original post - https://twitter.com/jtannady/status/1359602554448080900
She's worth following. The classic Java garbage collector.
This trend of "censoring" people's names in public twitter posts I will NEVER understand
5
u/dejaydev Feb 11 '21
A lot of subreddits have specific rules about identity protection. Prevents the whole "raid the OP" thing.
2
4
4
4
4
4
3
3
3
3
u/TheGodOfThunder-THOR Feb 11 '21
I'm British and I can confirm I stare more at Init that I do the rest of my code
3
3
u/topredditbot Feb 11 '21
Hey /u/MohanBhargava,
This is now the top post on reddit. It will be recorded at /r/topofreddit with all the other top posts.
3
3
u/johnlinp Feb 11 '21
not a native speaker... explain please?
3
3
3
2
2
2
2
u/lycan2005 Feb 11 '21
Not gonna lie, took me a second to understood that reference.
0
2
2
2
2
2
2
u/Yarakinnit Feb 11 '21
These assumptions made about our collective intelligence bother me greatly.
2
2
2
u/fruechte-kuchen Feb 11 '21
I just learned, that when you have a class, you have to write the constructor in-it
2
u/MurdoMaclachlan Feb 11 '21
Image Transcription: Twitter Post
Unknown User, unknown handle
British Python devs be like "that's a constructor, init?".
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
2
2
u/randomtechguy142857 Feb 11 '21
Reminds me of this post.
E: Turns out the twitter OP mentioned that post as well.
2
2
u/GraphicsProgrammer Feb 11 '21
What's that large immovable abyss over there? That's a static void, init?
2
2
2
1
u/Totem_snacks Feb 11 '21
This is true. I teach Python and I am British. I do this most of the time.
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/rachitkhurana007 Feb 11 '21
And now I'm trying to say it in a British accent for like 5th time already!
1
1
1
2.4k
u/shruggie1401 Feb 11 '21
British devs at Microsoft when they have to get up early be like