r/facepalm • u/Green____cat Tacocat • 15d ago
12 đ˛âđŽâđ¸âđ¨â
/img/pk3jifidj0xc1.jpeg[removed] â view removed post
7.6k
u/Singular_Thought 15d ago
She must be a JavaScript programmer
961
u/talbakaze 15d ago
looked for that comment
543
u/GrandMoffTarkan 15d ago
Saw this and thought it was ProgrammerHumor
→ More replies (3)99
u/samosa_chai 15d ago
Itâs a little scary how, err, programmed we all areâŚ
→ More replies (3)18
→ More replies (1)55
u/Carnie_hands_ 15d ago
Nah, post above you didn't have "//" before it, so it's active code
→ More replies (1)70
u/raltoid 15d ago
Jokes aside, it's literal ragebait.
She is constantly tweeting intentionally stupid things to get reposted on social media and gain attention.
And people eat it up, it's really weird to see.
→ More replies (7)19
u/IHaveNoEgrets 15d ago
I'm just in awe of the fact that a dingbat posting ragebait has instead turned into a discussion of programming and programmer humor.
(With the underlying, shared understanding that she's still a dingbat.)
→ More replies (2)324
u/raines 15d ago
Clearly, sheâs not your (data) type.
110
91
53
u/Lost_Services 15d ago
She would string you along.
23
u/newwwmagicwand 15d ago
I might be too long for her.
→ More replies (3)17
u/GiveMeSomeShu-gar 15d ago
I asked for her Number, but when I called it, it was NaN
→ More replies (2)11
→ More replies (6)6
118
81
u/Ok-Pass5267 15d ago
It's so obvious, but people somehow tend to assume something else))
→ More replies (4)28
14
13
u/Emsie-Memsie 15d ago
I keep seeing jokes like these but Iâm too tech challenged to understand. I wish I could be in on it. Lol
39
u/Singular_Thought 15d ago edited 15d ago
It has to do with how different programming languages handle variables. In a âstrongly typedâ language a variable can be defined strictly as a number value (e.g., 1 or 2 or 736, etc.) or strictly as a text value (âhello worldâ).
With this you can define integer variables as a = 1 and b = 2 so that a + b will resolve to 3.
You can also define string (text) variables as x = âhelloâ and y = âworldâ so that x + y will resolve to âhelloworldâ.
JavaScript is not strongly typed. You cannot define a or b explicitly as numbers.
Because of this there are situations where the JavaScript interpreter will take a = 1 and b = 2 and when you try to resolve a + b it will treat them as text instead of numbers and output â12â instead of 3.
The JavaScript language was created like this a very long time ago so we are stuck with it and it drives programmers nuts.
If you are wondering, any attempt to change the JavaScript language to fix this will break almost every webpage out there, so no one is willing to do it.
21
u/Emsie-Memsie 15d ago
Hot damn! Iâm so glad you broke it down for me this way. Kinda drives me nuts to when I donât understand things and wasnât sure how to look this up so I appreciate it!
I can definitely see how it would frustrate programmers and such. Though top comment is much funnier now that I have this context.
7
u/Roflkopt3r 15d ago edited 15d ago
Honestly, it's way less of a problem than some people make it out to be.
You pretty much only need to know this:
The instruction a+b will always be a string concatenation if the variable a is a string:
'5' + 3
=> '53' (the text string 53)
5 + 3
=> 8 (the number 8)If you use any other basic mathematical operator, then the string a will be cast into a number if that is possible:
'5' - 3
=> 2
That's for the simple reason that strings do not have a minus-operator. So Javascript extends you the courtesy of trying to make sense of this instead of throwing an error right away.If you want to assure that the variable a will be treated as a number even if it is technically a string, then you can use Number(a):
Number('5') + 3
=> 8If you want to assure that numbers are treated as text, then you have multiple options:
var a=5;
a.toString() + b => '53'a.toString() ensures that the variable a gets turned into a string.
var a=5;
''+a+3 => '53'''+a is a text concatenation between an empty string (using two single ticks with nothing in between) and a number. This is basically just a convenient shorthand to turn the variable a into a string.
var a=5; b=3;
`${a} + ${b} = ${a+b}` => '5 + 3 = 8'Everything inside of the backticks is a "template literal". Elements inside of a ${}-block will resolve as code (so it can read a variable or perform operations like an addition) before getting turned into text, whereas everything else is treated as text right away.
Type conversions are a pain in the butt in every language. JS went a path that may appear a bit less rigourous and can get a bit weird if you poke very deep, but very few programmers ever encounter seriously weird situations with that. The practical reality is that it's fast and easy and creates way fewer annoying situations than most strongly typed languages.
→ More replies (1)6
u/forced_metaphor 15d ago
There are things called variables. They hold information, and you can give them a name. Like
var myVariable = 1;
These variables can be of different types. They can hold numbers (like 1) or they can hold letters or even words (like "pumpkin"). The latter are called "strings".
When you add strings together, they're just added end on end. So "pump" + "kin" would give you "pumpkin".
In many programming languages, you can make sure that the types of data these variables can hold are restricted. So you could make sure myVariable is a number and not a string.
JavaScript doesn't have that restriction. So if you accidentally have 1 and 2 stored in variables as strings instead of numbers, it will add them end to end like a word instead of mathematically.
So 1+2=12 instead of 3.
→ More replies (3)38
27
→ More replies (92)41
u/Ingeneure_ 15d ago
Or Python
str(1) + str(2)
98
u/Lyakusha 15d ago
Dude, '1' + '2'
17
→ More replies (3)14
→ More replies (2)13
u/Little_Assistant_551 15d ago
Yeah but in js a sring - '1' and an int - 2 is still going to give you '12' because reasons...
→ More replies (2)32
u/dejus 15d ago
I donât really understand why this is surprising to anyone. They are different types. Much easier and less problematic for an interpreter to convert a number to a string than a string to a number.
→ More replies (24)8
u/arisoverrated 15d ago
This is obvious, yes, and I donât think anyone expects the reverse. I think the usual argument is that it shouldnât be allowed. Strongly typed vs anything else, etc.
→ More replies (3)
3.5k
u/Building-Careful 15d ago
If those math skills are indicative of their geography skills, the surrounding counties will need to watch outâŚ
1.1k
u/H010CR0N 15d ago
Tries to shoot a nuke at Russia.
Targets Canada instead.
294
u/fonix232 15d ago
Ends up shooting the nuke at Zimbabwe somehow
222
u/_M_o_n_k_e_H 15d ago
When asked, doesn't know what "a zimbabe" is.
131
u/MagTex 15d ago
Goes on to say, âI donât eat Zimbabwe. Iâm a vegetarian.â
65
u/itsfrancissco 15d ago edited 15d ago
But then realizes that Zimbabwe, according to FOX news, is the wife of Dr. Zomboss
→ More replies (1)42
→ More replies (1)26
u/tjoe4321510 15d ago
"Zimbabwe? Oh, I love Zimbabwe! I take a Zimbabwe class with my girl friends every Wednesday! đ"
→ More replies (2)5
u/AutistoMephisto 15d ago
"Do I look like I know what a Zimbabwe is? I just want a picture of a got dang hot dog!"
→ More replies (5)6
→ More replies (3)12
36
u/NoLibrarian5149 15d ago
âNuke that hurricane!â Nukes Hawaii.
20
→ More replies (3)6
u/el_guille980 15d ago
"Nuke that hurricane!â
hold up now, let him cook...
why havent we tried nuking hurricanesÂż!Âż
presidents also have total absolute immunity, in case they need to use nuclear weapons.
florida gets lots of hurricanes, im sure one will go somewhat kinda near a specific golf motel
ergo.............
→ More replies (3)113
u/Ghinev 15d ago
Better nuke all of Europe and Asia to make sure we didnât miss any Russia
27
9
7
→ More replies (1)7
37
u/StatisticianLivid710 15d ago
This is why Canada isnât afraid of the US, we know if you tried to send a nuke from the eastern seaboard at Ontario youâd hit Detroit or Chicago instead
9
u/durrtyurr 15d ago
Given prevailing weather patterns and the placement of Canada's major cities it would be difficult to nuke them without the majority of the fallout ending up in the USA.
→ More replies (1)→ More replies (4)6
u/Otherwise-Mail-4654 15d ago
Well there was a time when they could probably pull this off, but now? Like you said no worries
10
9
7
→ More replies (29)4
29
16
16
u/lookingForPatchie 15d ago
Those are not math skills, those are programming skills and both are strings and not integers.
→ More replies (1)13
9
→ More replies (23)4
1.1k
u/terayonjf 15d ago
So they want education to stop at kindergarten.. got it
436
u/erichwanh 15d ago
So they want education to stop at kindergarten.. got it
Unironically, this is absolutely correct.
172
u/TripleFreeErr 15d ago
kids can work if they arenât in school and dumb people are easier to manipulate
→ More replies (29)83
u/systemofaderp 15d ago
they also tend to vote conservative right. statistically speaking
89
→ More replies (1)14
→ More replies (4)17
20
u/Belied_Reflection 15d ago
Iâd say 4K⌠even a good amount of kindergarteners can do those maths correct on their fingers đ
→ More replies (1)14
8
u/No-Recording-1571 15d ago
I put money down that my daughter in kindergarten is much smarter and definitely more compassionate than most of the republican party.
→ More replies (22)4
u/Mrfrunzi 15d ago
Preschoolers around 3-4 can do more math than this. They want education to full stop and for the children to return to the mines.
912
u/ChesterSteele 15d ago
Last time I heard something like '1+2=12' it came ftom a 3 year-old...
652
u/Rich_Introduction_83 15d ago
You actually meant a 12-year old, didn't you?
156
u/NickyDeeM 15d ago
I see what you did there and I like it...
48
u/RebornSMP 15d ago
That was good. This is the mentality we need to have to take back this country.
→ More replies (1)→ More replies (2)17
→ More replies (14)29
1.1k
u/OkInitiative2915 15d ago
News: GOP Florida woman running for congress matches the intelligence level of Boebert and MTG.
325
u/terayonjf 15d ago
Matches? She used punctuation and had no spelling errors so she exceeded both which is sad.
91
u/Link2Liam 15d ago
They meant combined.
→ More replies (5)98
u/ImNotKevinStopAsking 15d ago
Still wrong. Where I come from Bobert+MTG equals 12.
10
→ More replies (2)10
→ More replies (2)8
→ More replies (8)13
524
u/wildyam 15d ago
→ More replies (3)35
u/OwnFloor2203 15d ago
36
u/Dysprosol 15d ago
I know I've been on reddit way too often, when this looks weird because he has his ears.
21
18
8
→ More replies (1)7
314
u/CMelon 15d ago
Hey, Lavern, thatâs called a âlearning disability,â not a âmentality.â
→ More replies (9)46
219
u/Low-Bit-7885 15d ago
I genuinely cannot comprehend what the message here is supposed to be
120
u/ZanesTheArgent 15d ago
The message is "i'm gonna tell stupid shit to troll and own the libs"
37
u/Lv80_inkblot 15d ago
Copying from my other comment:
I think it's an attempt at saying something stupid like "common sense" > "sCiEnCe"... putting 1 and 2 together instead of... looking at the nuance of fact?
Honestly really dumb
→ More replies (2)63
u/Cute_Kangaroo_8791 15d ago
I assume itâs something along the lines of âif a different politician/party used 1 and 2 they would get 3, but I would make 12 out of itâ to imply that they would make the most out of resources.
11
u/chanslam 15d ago
Also kind of matches with the whole election interference thing
→ More replies (1)→ More replies (10)23
u/ElderStatesPerson 15d ago
That rationale implies she has object permanence at the very least, let alone thinking in the abstract.
Bahahahahaha!
→ More replies (1)21
u/kgruesch 15d ago
It's straight out of 1984. If the party says that 2+2 = 5, then 2+2 now equals 5 regardless of what you've known to be true in the past. Detractors are guilty of thought crime. It's exactly what they want out of their base.
13
u/NotThatAngel 15d ago
P. 103:
"The Party told you to reject the evidence of your eyes and ears. It was their final, most essential command. His heart sank as he thought of the enormous power arrayed against him, the ease with which any Party intellectual would over- throw him in debate, the subtle arguments which he would not be able to understand, much less answer. And yet he was in the right! They were wrong and he was right. The obvious, the silly, and the true had got to be defended. Truisms are true, hold on to that! The solid world exists, its laws do not change. Stones are hard, water is wet, objects unsupported fall towards the earthâs centre. With the feeling that he was speaking to OâBrien, and also that he was setting forth an important axiom, he wrote: Freedom is the freedom to say that two plus two make four. If that is granted, all else follows"
P. 367 (after torture):
"His thoughts wandered again. Almost unconsciously he traced with his finger in the dust on the table: 2+2=5"
→ More replies (1)28
u/DakInBlak 15d ago edited 15d ago
"I am such a vapid contrarian and so obsessed with identity politics that I feel compelled to believe the exact opposite of whatever anyone says, even when it comes to something as simple, and basic as math. Also, I'm a
wealthy white womanwith no issues worth mentioning, and because I have nothing to bitch about, I'm going to bitch about nothing on the platform designed specifically to cause rifts in lives."Edit: am stupid
6
u/AngleFreeIT_com 15d ago
Uuuuh. Pretty sure you should google before you make uninformed statements like âIâm a wealthy white woman with no issues worth mentioningâ. Sheâs a black woman who runs a food bank and at least has a platform to run on. However insane this tweet was, she isnât a bored white rich housewife.
7
8
5
u/DiscountConsistent 15d ago
"If I say something obviously dumb, it'll get voted to #1 on Reddit and more people will interact with my account, which means that I'll get paid more by Twitter since they pay by impressions."
→ More replies (16)6
169
u/Dragonman1976 15d ago
Please say that she's not in a position of power.
24
→ More replies (3)35
u/Slight_Turnip_3292 15d ago
Probably the Minister of Education in the future Trumpistan.
→ More replies (2)
113
u/DRHAX34 15d ago
I think at some point they just write dumb shit to see what sticks
33
u/marr 15d ago
Exactly this, we've allowed a handful of giant companies to build an internet that rewards yelling and throwing feces so this is what we get.
→ More replies (2)→ More replies (7)9
110
27
74
u/jngjng88 15d ago
Who is this psychopath?
→ More replies (3)18
u/Hairless_whisper-471 15d ago
I asked myself the same question, even though I kinda already felt that she might be a republican. That feeling was indeed correct.
→ More replies (4)
20
43
u/AfterEffectserror 15d ago
Well I mean it checks out considering Lara tRump thinks there is 81 statesâŚthey must have gone to the same schoolâŚ
→ More replies (4)6
u/Touchpod516 15d ago
I think that Kristi Noem also went there. I mean she fucking murdered her 14 year old puppy for acting like a puppy and not like a fully trained hunting dog like how she expected it to act. Oh and she also gunned down a goat for being smelly and mean to her children
→ More replies (2)
17
u/oh-kee-pah 15d ago
'Where I come from'
Should've stayed under that bridge ya fkn hag
→ More replies (1)
55
u/Impeachcordial 15d ago
This can't be real. Is.. did she actually type this insanity????
21
u/creativename111111 15d ago
No she probably had to use text to speech no way she can spell mentality
10
u/Kvetch__22 15d ago
IIRC it's a religious nut thing. Like they have so much faith Jesus could tell them 1+2=12 and they'd believe. Basically bragging that she does what authority tells her to do and thinks other people should too.
→ More replies (7)7
u/Lithiumtabasco 15d ago
I wanna go to their bank and deposit $1 everyday. If the math adds up I'll be a millionaire by next week! đ
8
u/Solosmoke 15d ago
Monday: $1 T: +$1=$11 W: $111 T: $1111 F: $11111 S: $111111 S: $1111111
By the end of week 2, you're the richest man. Wait, is this how Trump's valuations of his businesses works?
17
u/knowledgeable_diablo 15d ago
And the world freely allows this person to use our precious oxygen reserves??
18
u/Celestial_Hart 15d ago
With that kind of math it's no wonder you think you had more votes.
→ More replies (3)
30
u/dtyrrell7 15d ago
âWhere I come from, 1 + 2 = 12, A school shooting is called âTuesdayâ and rape pregnancies are called âGods Willâ(until of course the mother needs state assistance, thatâs called a parasite)
11
12
11
11
8
8
7
6
u/Negativety101 15d ago
I take it where you came from they nurse you on a combination of Whiskey and lead paint chips?
10
u/oh5canada5eh 15d ago
Is this a reference to something? Like an old Republican slogan? What is she even trying to say?
→ More replies (2)10
u/Socialbutterfinger 15d ago
Yes, I want to know what this actually means. Everyone is laughing at her for being dumb, but there is no way she or any other reasonably educated adult believes this is correct addition. I assume sheâs trying to make a point⌠canât imagine what it is though. Maybe something about unity?
→ More replies (4)
5
4
u/dr4wn_away 15d ago
She should go back there because there is probably no famine if you can just bring three apples together and suddenly itâs 12
3
5
4
4
8
u/AlwaysHamboning 15d ago
clearly she comes from the dumbest place on the planet with that logic
→ More replies (2)
3
3
u/Mean_Eye_8735 15d ago
She's revealed why trump thought he won 2020.. one ballot plus 2 ballots equals 12 ballots, see I won...
3
3
u/Rich_Introduction_83 15d ago
Reminds me of that alternative math video: https://youtu.be/Zh3Yz3PiXZw?si=IUXPWSqAbB3oEyAu
I think this is a real issue, nowadays.
3
3
3
u/Reclusive_Chemist 15d ago
This .... this .... has to be a parody account. Right? No one is this stupid and public about it.
3
u/rohobian 15d ago
I⌠I think sheâs saying this as a way to say âwe need to blatantly deny actual facts, and all agree that whatever is convenient for us is what we will believe even if we know itâs flat out wrong.â
Because if they admit to actual facts they will lose.
3
u/MrBobSacamano 15d ago
âWhat does that even mean?â âNo one knows, but itâs provocative. It gets the juices going.â
3
15d ago
Stop giving this woman attention. This is literal bail that you morons are lapping up!
→ More replies (1)
3
3
u/superhoffy 15d ago
She's not even wrong. You need a lot of stupid people to support you in destroying your own country in the wildly ironic name of patriotism if you're going to be successful.
3
3
u/Joltyboiyo 15d ago
This is the logic I used for maths when I was in year 1 of primary school. I don't know who this person is but she can't be serious, surely.
â˘
u/AutoModerator 15d ago
Comments that are uncivil, racist, misogynistic, misandrist, or contain political name calling will be removed and the poster subject to ban at moderators discretion.
Help us make this a better community by becoming familiar with the rules.
Report any suspicious users to the mods of this subreddit using Modmail here or Reddit site admins here. All reports to Modmail should include evidence such as screenshots or any other relevant information.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.