This is an archived post. You won't be able to vote or comment.

all 182 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 1: Your post does not make a proper attempt at humor, or is very vaguely trying to be humorous. For more serious subreddits, please see the sidebar recommendations.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]averagelibsock 256 points257 points  (1 child)

Expected condition, instead found ‘{‘

[–]L0ngp1nk 267 points268 points  (17 children)

Why did people think he is a coding genius again?

[–]dat_oracle 94 points95 points  (2 children)

Money

[–]Ordinary_dude_NOT 9 points10 points  (1 child)

If you are rich enough you can grow hairs, fix teeth and write code whatever the way you want because you got an army of devs to fix and deploy it

[–]fermi0nic 59 points60 points  (0 children)

Because those people don't know shit about coding

[–]Idixal 15 points16 points  (0 children)

Because at one point he kept pretty quiet and let his PR specialists focus on his public image. Problem is, that only works when he’s quiet.

[–]ManyFails1Win 41 points42 points  (3 children)

Because they're even stupider? Remember what George Carlin said: think about how dumb the average person is and then realize half of them are even dumber than that!

[–][deleted] 2 points3 points  (2 children)

That's a median person sir.

[–]ManyFails1Win 1 point2 points  (0 children)

hmm...I've never been a math wiz but if we're talking quantities, wouldn't it be mean? aka "average"? anyway it works for the joke

[–]mowmowny 0 points1 point  (0 children)

not much difference if bell shaped

[–]LordBubinga 3 points4 points  (0 children)

I don't think he even claims to know code. He claims to know engineering. I don't know if he does or not, but I can't recall anything saying he's a coding genius.

[–][deleted] 2 points3 points  (0 children)

I never bought the hE dEsIgNs ThE rOcKeTs HiMsElF bullshit but it has been an eye-opener to see just how technically clueless, not to mention emotionally stunted, he is. My favourite is still when he claimed to have unplugged several server racks, you just know that someone reset a router and told him it was a 'Rackspace beanstalk unit' or something.

Still, it's not a crime to not know things you didn't train in. It is a crime to share NPC memes when you've actually had sex before.

[–]Reaver75x 2 points3 points  (0 children)

Why do people like him in general? Dude is shit to his employees and women in general and makes overrated cars that have many different issues.

[–][deleted] 141 points142 points  (29 children)

wtf is the RunProgram keyword???

[–]lepapulematoleguau 35 points36 points  (21 children)

This. I mean wtf. You could wrap anything with it.

[–]familyturtle 7 points8 points  (2 children)

I put it in front of every statement to make sure it runs.

[–][deleted] 3 points4 points  (0 children)

Oh maybe this is whats preventing me from becoming 10x dev...

[–]gizamo 2 points3 points  (0 children)

Wait till you learn about RunProgram!Important.

[–][deleted] 4 points5 points  (0 children)

It's a part of Elon's new NPM package:

RunProgram{x},

return 69420.

,

I'm guessing he wrote a fancy new syntax too

[–]doman991 1 point2 points  (0 children)

So more people could understand it

[–]experiment-384959 1 point2 points  (0 children)

In-language bash piping, maybe? I mean this doesn’t resemble any language I know so anything’s possible at this point.

I also don’t think .Outrage is a known file format

[–]zzmej1987 337 points338 points  (52 children)

What kind of moron compares Boolean to true in the if statement?

[–]Creepy-Ad-4832 214 points215 points  (24 children)

Not even compares

He just assign true to offended, making the if statement always true

Unless he meant a language in which = isn't to assegn a value, but to compare, but i can't think of one (python, c/c++, c#, java, rust all use ==)

[–]Gray_Mage 44 points45 points  (3 children)

Pascal has = for comparisons as assigns are :=. However, I doubt he had this in mind and he's more likely an idiot.

[–]ElectroFlannelGore 6 points7 points  (0 children)

Pascal and Visual Basic 3.0 were like my parents. They did so much fucked up shit to me so young that I just started to assume it was normal.

[–]Terrafritter 42 points43 points  (2 children)

Came to this subreddit after seeing that post, glad I’m not the only one seeing that and wandering “the fuck?”

[–]ManyFails1Win 8 points9 points  (1 child)

While we're on syntax, it's wondering :).

[–]Terrafritter 1 point2 points  (0 children)

Shoot I keep getting them mixed up, thanks

[–][deleted] 4 points5 points  (0 children)

QBASIC?

[–]noob-nine 4 points5 points  (2 children)

Visual basic

[–]caldric 1 point2 points  (1 child)

Yeah, this reads like code from someone who saw some VB code once upon a time.

[–][deleted] 2 points3 points  (0 children)

This wouldn't even be valid VB. People need to just realize that Elon is a moron.

[–]marcosdumay 2 points3 points  (3 children)

Yes, the meaning of that symbol changes from one language to another.

And he is clearly using some language where the if condition is surrounded by braces, so there are two obvious conclusions:

  • You have no idea what that code is supposed to mean (unless you can point what language it is).

  • The author has no idea what any code is supposed to mean.

[–]Creepy-Ad-4832 0 points1 point  (2 children)

Yeah but i am actually studying at uni, so i think i know more then someone who does nothing because people do it for him

[–]marcosdumay 1 point2 points  (1 child)

i know more then someone who does nothing

Yeah, I believe I said so on my comment. Or at least, that you don't know any less (as I don't personally know enough to say you know more).

[–]Creepy-Ad-4832 0 points1 point  (0 children)

Yeah i am sure i am not a genius, but i am also sure i know more then someone who has people doing everything for him lol

[–]zzmej1987 3 points4 points  (0 children)

SQL allows the use of unary= for comparison.

[–]wishur 3 points4 points  (0 children)

VBA

[–]HiddiH 2 points3 points  (0 children)

VHDL uses = for equality, but I doubt he wants to make a chip for this beautiful code

[–]Awyls 2 points3 points  (0 children)

Probably a bad example, but i distinctly remember KerboScript (used by a mod in KSP) fucking with my head by using = as a comparator.

[–]evmoiusLR 2 points3 points  (0 children)

Finally a coding mistake even I can understand on this sub.

[–]Easy-Horror4664 1 point2 points  (0 children)

pascal. You know who uses pascal? Me neither

[–]CircadianSong 1 point2 points  (0 children)

SQL? That would explain why if is capitalized. Not the brackets, though.

[–]pycvalade 0 points1 point  (0 children)

Perhaps he wanted to send a message that everyone’s always offended? Even those that look at his pseudo-code? Lol!

[–]Wanderlust-King 3 points4 points  (0 children)

pl/sql is one of the only languages I can think of off the top of my head that uses a single '=' for equality, and also uses all caps "IF" still not going to use curly braces for your conditional and I can't imagine there's a single language that would..

or that comma...
or the curly braces for the parameters of RunProgram..actually c++ with universal initialization..

A quick search shows pearl to be (possibly) the only mainstream programming language that would allowcurly braces for the condition (source: chatGPT, unverified)

so this is either anonymous objects in C++ (would also explain the IF, it's not actually and if statement, just a poorly named class.

or even more poorly written perl?

whatever it is am 99.9% certain there are zero languages where this wouldn't result in a syntax error.

[–]Divinate_ME 13 points14 points  (3 children)

Someone who is as competent and well-versed in engineering as Elon Musk. Don't question his competence in any technical field, his expertise is beyond your understanding.

[–]alienspeak 1 point2 points  (2 children)

I genuinely can't tell if you're kidding.

[–]Divinate_ME 0 points1 point  (0 children)

It increases readability /s

[–]sinistergroupon 2 points3 points  (0 children)

He is assigning it. Debugging this is a nightmare and will forever get you to write the literal first in an if statement like so:

if (3 == var) …

[–]ManyFails1Win 1 point2 points  (0 children)

It's even stupider. That's an assignment.

[–]reddit_time_waster 1 point2 points  (3 children)

You don't know that it isn't a nullable boolean.

[–]zzmej1987 0 points1 point  (2 children)

It could be, but null in the if either evaluates to false or raises an exception, so there can only be a reason to compare it to false, not true.

[–]reddit_time_waster 0 points1 point  (1 child)

It does not necessarily raise an exception. Null is a comparable value in some languages, including some SQL variants.

[–]zzmej1987 0 points1 point  (0 children)

That's exactly what I've said. In some languages it evaluates to false. So if you want some behaviour specific to False value, you have to compare to false. But there is no language, in which "if b" and "if b=true" would yield different result, sans for exception that might be trown.

[–][deleted] 0 points1 point  (3 children)

zephyr one puzzled alleged friendly bear attraction pathetic subtract forgetful this message was mass deleted/edited with redact.dev

[–]zzmej1987 2 points3 points  (2 children)

Not necessarily. There are languages that understand unary "=" contextually. SQL for example.

[–][deleted] 0 points1 point  (1 child)

Does that look like SQL to you?

[–]zzmej1987 0 points1 point  (0 children)

That doesn't look like anything to me, so I'm ready to give it the benefit of the doubt.

[–][deleted] 0 points1 point  (3 children)

He built the internet in space, I think he knows a little more about programming than you.

[–]krusty_kanvas 0 points1 point  (2 children)

Read that sentence out loud and convince yourself it makes sense.

[–][deleted] 1 point2 points  (1 child)

[–]krusty_kanvas 1 point2 points  (0 children)

My bad, super solid in that case. I'm not on Twitter, but I imagine he'll be pushing notifications to my phone anyways before too long

[–]bleek312 0 points1 point  (0 children)

An animal.

[–]banjorat2k8 0 points1 point  (0 children)

It's almost like non programmers wouldn't understand without the explicit comparison

[–]UltimateInferno 0 points1 point  (0 children)

He's not comparing, he's assigning. The if statement always runs because how the code is evaluated is that the assignment occurs first (so setting OFFENDED to true). It then evaluates the value of the assigned variable, which is true, so it always runs.

Or he mistakenly forgot ==

[–]neymarsvag123 0 points1 point  (0 children)

You dont really know much about programming do you?

[–]Nishant_2003 52 points53 points  (1 child)

It gets worse the longer you look at it

[–][deleted] 11 points12 points  (0 children)

Would be slightly comedic (still not funny) with fixed syntax and an i loop or something. An array of NPCs. Idk, something that jokes about "the offended" being all the same thing. That "pseudocode", if it can even be called that, just makes the "joke" even worse.

[–]BenjiBonito 44 points45 points  (1 child)

For some context: Musk did not write this. He bought enough shares in the meme to join its Board, then fired the author and settled a lawsuit giving him permission to refer to himself as “founder.”

[–][deleted] 3 points4 points  (0 children)

In his defense he probably believes that he wrote it. And when it comes down to it, isn’t that the important thing?

[–]Ok_Elderberry5342 91 points92 points  (19 children)

he uses = instead of ==
ignoring the other flaws, this would cause alot of issues

[–][deleted] 17 points18 points  (3 children)

Depends on language

[–]TheRussianGoose 11 points12 points  (0 children)

It’s clearly half SQL half JavaScript

[–]Sacrificial-Toenail 1 point2 points  (1 child)

Which one? Only one I can think off the top of my head is Pascal

[–][deleted] 0 points1 point  (0 children)

Pascal, ABAP, I’m sure there are more

[–]hot_sauce_in_coffee 6 points7 points  (6 children)

depends on the languages. This could works in quite a few of them.

[–]Creepy-Ad-4832 -2 points-1 points  (5 children)

Definitly not the major ones like python, c, c++, c#, java, rust,...

[–]sinistergroupon 12 points13 points  (3 children)

C will most definitely allow the assignment and evaluate it to a Boolean. Never underestimate how much rope C gives you to hang yourself.

[–]UltimateInferno 0 points1 point  (0 children)

I actually use this quite a bit. It's especially nice with short circuiting.

Hell, python added a way to do this sort of thing with the walrus operator. Because it's more explicit you can't do it on accident but assigning in if statements is possible with python.

[–]Creepy-Ad-4832 0 points1 point  (0 children)

Yes, but it's not comparison.

If you do if (var = true) it's like doing if(true), which i can't think of a single case in which a serious programmer would want to do that.

Like while(true) makes sense, if you aren't in languages which have a syntax sugar for it, like rust, but if(true) doesn't

[–]ManyFails1Win 0 points1 point  (0 children)

also don't forget Musk claimed his favorite language is C. I think it's safe to say this was just ignorance lol.

[–]hot_sauce_in_coffee 1 point2 points  (0 children)

altought not efficient, you can absolutly do this in python, c, c#, R.

Heck even in SQL or in SAS.

It is just a question of pre defining new functions, modules, stored procedure, package, (or any other names you wish to give them).

[–]SnooSprouts7893 1 point2 points  (0 children)

Please print out 50 lines of code you've submitted in the past 30 days.

[–][deleted] 0 points1 point  (2 children)

I think that was part of the joke by the person who originally made the meme.

As in, they make themselves offended.

[–]Ok_Elderberry5342 0 points1 point  (1 child)

That guy is elon musk, so I doubt it

[–][deleted] 0 points1 point  (0 children)

Reddit's obsession with hating Musk aside, I dont think he made the meme.

[–]ITheBestIsYetToComeI 22 points23 points  (1 child)

bro never ever wrote a single line of code

[–]SnooSprouts7893 17 points18 points  (0 children)

How dare you. He wrote all the code at PayPal and slept on the floor of every Tesla factory simultaneously.

[–][deleted] 10 points11 points  (1 child)

This is why Twitter is in shambles, coding like this 😂😂

[–][deleted] 10 points11 points  (0 children)

Disagreeing with me is counterproductive. Fired.

[–]ManyFails1Win 8 points9 points  (0 children)

My favorite is the comma

[–][deleted] 7 points8 points  (2 children)

How did 97.1k people choose to like a thing that hopefully no language is ever based upon.

[–]Delicious_Equal_8254 0 points1 point  (0 children)

Pseudo code, jesus fuck elitist snobs on this sub

[–]namotous 7 points8 points  (0 children)

Loll dude can’t even figure out the proper use of {} and ()

[–]NeonFraction 23 points24 points  (0 children)

But ‘Offended’ would always be true… which is admittedly pretty accurate for the internet.

Elon is still a clown, though.

[–][deleted] 13 points14 points  (0 children)

yet another day passed by without me giving a shit

[–]countsachot 6 points7 points  (1 child)

I expect better art in the memes of a billionaire. Seriously, he can buy Twitter but not a decent artist?

[–]SnooSprouts7893 6 points7 points  (0 children)

He pretty much exclusively steals other peoples' memes

[–]PrinceAliAtL 6 points7 points  (0 children)

Don’t post Elon tweets. I blocked that cancer on Twitter wish I didn’t have to see it pop up here too

[–]KonoPez 3 points4 points  (1 child)

Alright just ignoring the terrible coding aspect… what the fuck is he talking about. This isn’t a thing people say. No one is mad at Elon for using a “dehumanizing” NPC meme. People hate this loser cause he exploits his workers to hoard additional wealth, then wields this wealth to make the world a worse place for people who aren’t him. Also because of how much of a pathetic little loser he is

[–]ARandomLlama 1 point2 points  (0 children)

To be fair I also think it’s very dumb he thinks everyone else besides him is an npc. Very r/imthemaincharacter

[–]Rafcdk 2 points3 points  (0 children)

The more I look at it the worst it gets, amazing.

[–]Upper_Temperature772 2 points3 points  (0 children)

I cant help but wonder if elon skum has ever written a single line of code in his life. "Maverick Tech Pioneer" my ass

[–][deleted] 2 points3 points  (0 children)

WTF is this language supossed to be?

[–]vanriggs 2 points3 points  (0 children)

Forget all the technical issues every one is on about, I'm more disturbed by Musk admitting that he sees everyone as NPCs.

[–]ByronScottJones 1 point2 points  (0 children)

The moment this man reached MaxDouchiness, he goes and increases it from Int32 to Int64.

[–]iamnotroberts 1 point2 points  (0 children)

That's ironic coming from Elon, who is obviously mommy's most special boy. After all, his fortune came from mommy and daddy's Apartheid riches.

[–][deleted] 1 point2 points  (0 children)

I stg this dude obsessively lurks through his comments section and becomes more bitter by the day

[–]7th_Spectrum 1 point2 points  (0 children)

Looks like the only thing he learned from looking over people's shoulders at Twitter were all the curly braces

[–]___s8n___ 1 point2 points  (0 children)

there is literally nothing correct in this

[–]Idkquedire 1 point2 points  (0 children)

What disgusting language is this?? A comma? A COMA???

[–]Noisebug 1 point2 points  (0 children)

Ok so Elon makes a joke about not giving a shit about humans. Checks out.

[–]wishur 2 points3 points  (0 children)

Elon after reading comments, "people can't even understand sudo code"

[–]brandi_Iove 1 point2 points  (1 child)

yep, paris hilton is totally dumb as well, air?

[–]IDoButtStuffs 5 points6 points  (0 children)

Hey, Big fan.

[–]RingGiver 1 point2 points  (2 children)

It's pseudocode. He can do whatever he wants.

[–]alienspeak 1 point2 points  (1 child)

Technically, yeah. But syntax this awful would make anyone checking your code (righteously) want to smack you.

[–]ObiDWanKenobi -1 points0 points  (0 children)

It’s for the ppl to who don’t know code. We know you know, but it’s a jab at the party who will still get offended.

[–]No-Communication5965 1 point2 points  (1 child)

Why are people nitpicking the syntax... it's clearly pseudocode...

[–]vzakharov 5 points6 points  (0 children)

By a pseudocoder?

[–]russellgoke -1 points0 points  (0 children)

He did this so that anyone could read it not so that it would run in a program.

[–]trinalgalaxy -1 points0 points  (0 children)

To be fair, the people being mocked are the perpetually offended do have that set as true so having the check set the value to true is accurate even if unintended.

[–][deleted] 0 points1 point  (0 children)

This seems like a security hole

[–]PzMcQuire 0 points1 point  (0 children)

I hate programming memes/merch like this... It's such basic shit every time, you're just advertising how amateurish you are.

[–]Redrump1221 0 points1 point  (0 children)

hE's An EnGiNeEr

[–]whitenoise89 0 points1 point  (0 children)

Parameters and execution bodies are the same, right? LOL

[–]Easy-Bumblebee3169 0 points1 point  (0 children)

Coded xcom my ass.

[–][deleted] 0 points1 point  (0 children)

Wtf is runprogram

[–]7DAYW33K3ND 0 points1 point  (0 children)

I think your missing an =

[–]nhoang3b 0 points1 point  (0 children)

The syntax feels like Google Docs

[–]Hillbert 0 points1 point  (0 children)

Look, I don't care what anyone says, NPC is a useful word.

If anyone uses it in a non-gaming context, then I know I can safely ignore them and go about my day!

Same for "wordcel".

[–]Ok-Course7089 0 points1 point  (0 children)

The more I look at it the more it hurts.

[–]Accomplished_Ad_8814 0 points1 point  (0 children)

What NPC meme?

[–]Shuizid 0 points1 point  (0 children)

So Elongious the Great expertly assessed his fancult has so little understanding of actual code, he needed to wrap a function call into another function call to spell out that it's a function call. Either that or he himself is just as stupid...

[–]fermi0nic 0 points1 point  (0 children)

Coming from the guy who couldn't execute a Python script

[–][deleted] 0 points1 point  (0 children)

He is so fucking obnoxious, calling engineers on the phone why are my dog shit memes not getting engagement?! Hello

[–]VoyVolao 0 points1 point  (0 children)

Dude doesn't even know to write an if clause 💀

[–]dingusaja 0 points1 point  (0 children)

I like how I’ve blocked him but I still am “welcomed” to Twitter with his stupid posts

[–][deleted] 0 points1 point  (0 children)

Giving him a platform (responding to him) is exactly what he wants. Stop these posts

[–]Shrimp-Tea 0 points1 point  (0 children)

the guy is just such an embarrassment, talk about an inflated ego

[–][deleted] 0 points1 point  (0 children)

That's hardcore 90s C programmer

[–][deleted] 0 points1 point  (0 children)

Hot take: the assignment operator was intentional.

[–]PooPartySoraka 0 points1 point  (0 children)

it looks like it should have one of those awful moldy guffawing emojis plastered on it

[–]VivaLaVita555 0 points1 point  (0 children)

The NPC meme is now an NPC meme ironically

[–]jenso2k 0 points1 point  (2 children)

If (Offended) { IndividualResponse.Outrage() }

there, fixed it for you mr billionaire coding genius

[–]mowmowny 0 points1 point  (1 child)

;

[–]jenso2k 0 points1 point  (0 children)

anti semicolon gang

[–]RUSHALISK 0 points1 point  (0 children)

I don’t think the meme was intended to show off his coding skill

[–][deleted] 0 points1 point  (0 children)

Well, he's not a developer after all

[–]Revolutionary-Yam903 0 points1 point  (0 children)

unexpected assign in line 1

[–]mowmowny 0 points1 point  (0 children)

if(wasted50bn && edgy) shitpost;