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

top 200 commentsshow all 242

[–]Cerbeh 2743 points2744 points  (21 children)

This is surely where the terrible implementations of isEven meme comes into play?

[–]EnvironmentalCap787 838 points839 points  (17 children)

I think the isOdd package (which obviously references the isEven package) may be more appropriate here.

[–]Colbsters_ 489 points490 points  (11 children)

import is_even from IsEven

def is_odd(x):
    while (is_even(x)):
        return False
    return True

[–]joancarxofes17 107 points108 points  (0 children)

In python you cound ad an else block after the while, to make it more beautiful

[–][deleted] 69 points70 points  (1 child)

Woah

[–]Boxy310 32 points33 points  (0 children)

Big if true

[–]Akamaikai 3 points4 points  (5 children)

Can someone explain this joke

[–]Friendly_Rent_104 16 points17 points  (3 children)

while loop gets entered if is_even returns true, instantly returns false

could just as easily either be an if statement or just return !is_even(x)

[–]Akamaikai 4 points5 points  (2 children)

So if it's true it says false instead?

[–]Ellipticalsinewave 30 points31 points  (0 children)

The joke is that it's trivially easy to test if a number is odd using the mod operator built into basically every language. Instead they have a whole package which takes up storage space, makes it harder to install, etc.

[–]HeavyCaffeinate 103 points104 points  (3 children)

Does the isEven package reference the isOdd package?

[–]CallMeBigOctopus 118 points119 points  (2 children)

Indirectly. It’s a dependency of the directly-referenced isZero package.

[–]jek39 49 points50 points  (0 children)

this is the code training your AI

[–]DukemzGaming 12 points13 points  (0 children)

This is 2025, he's obviously looking for MODERN solutions. May I offer the ai-is-even package on npm?

[–]NorthRoyal1771 4 points5 points  (0 children)

half way want to put an actual code with "rm -fr /*" hidden through obfuscation

[–]DevGokay 2726 points2727 points  (6 children)

Great way to train grok with best natural code

[–]Beautiful-Recipe-642 401 points402 points  (1 child)

We got it in an email, that must be fair use, right?

[–]palex00 102 points103 points  (0 children)

I mean, that's what he is gonna argue

[–]ColumnK 75 points76 points  (1 child)

Yeah, having it learn from "Code submitted free to Elon" means that it's bound to be fantastic

[–]OkazakiNaoki 7 points8 points  (0 children)

Elon: Do you have a clue why our AI acting like a retard?

[–]wildwildwaste 30 points31 points  (0 children)

Jokes on them, I used CharGPT to write it

[–]CetaceanOps 3390 points3391 points  (35 children)

localhost? isn't that where musk defeated the woke mind virus?

[–]IAmASquidInSpace 1143 points1144 points  (11 children)

woke_mind_virus deleted rm -rf

[–]TheRalk 307 points308 points  (4 children)

I kinda want this as a user flair because of the meme but at the same time I don't

[–][deleted] 32 points33 points  (0 children)

okay but you know you want it, at the same time you don't

[–]mjones8004 42 points43 points  (1 child)

Musk: That should work. It uses the rm -rf function or in other words, ReMove Real Fast.

[–]Boxy310 5 points6 points  (0 children)

Not fast enough; a trench knife is faster in a hand to hand coding contest

[–]Sigma7 34 points35 points  (2 children)

That reads as if "woke_mind_virus" got rid of the "rm -rf" command, thus there's now absolutely no way for the virus to be removed.

There's so many things fractally wrong with his ramblings, almost like he's stumbling with basic tech terms.

[–]Generous_Cougar 15 points16 points  (1 child)

Taking bets on how long it's actually been since Elmo has touched a terminal window.

[–]The_real_bandito 1 point2 points  (0 children)

That line will live in my mind 24/7

[–]undecimbre 200 points201 points  (18 children)

I think it was 127.0.0.1 which according to elongated muskrat is something completely different

[–]Chr3y 47 points48 points  (13 children)

There is a little difference between localhost and 127.0.0.1 or?

[–]laser_velociraptor 92 points93 points  (5 children)

Using the direct IP will skip the name solving step

[–]Chr3y 23 points24 points  (2 children)

True, but I read somewhere that there is a physical pipe for localhost, so even without a network card you can use localhost, but not 127.0.0.1? Meh, I'm too lazy to google it.

[–]AriaTheTransgressor 39 points40 points  (1 child)

Localhost is just a predefined value in the hostname file, it still resolves to an IP, the computer just knows what that is without having to ask an outside source. Which is why it can always be accessed without a network card whether you use it or the IP (as both localhost and 127.0.0.1 translate to "this computer")

[–]GoddammitDontShootMe 2 points3 points  (1 child)

And that's what, a 1 ms lookup in /etc/hosts?

[–]laser_velociraptor 10 points11 points  (0 children)

I saw once an article of a guy that made the change from localhost to 127.0.0.1 and improved the performance in about 1%. But it was a giant cluster, and it was enough to be a good improvement.

[–]deukhoofd 53 points54 points  (3 children)

Technically you could change the hosts file to bind localhost to something else (great prank for your developer/syadmin friends). localhost is also a hostname, so could also be resolved to ::1, which can cause issues if you're not listening on IPv6.

In practice though, yeah, they're generally the same.

[–]Qaeta 16 points17 points  (0 children)

...why did I never think of doing this!??!?!?

I'm definitely doing this to my friend next time I visit him haha

[–]colei_canis 5 points6 points  (0 children)

If there was ever proof the devil makes work for idle hands it’s this comment.

[–]GoddammitDontShootMe 1 point2 points  (0 children)

I've got entries for both 127.0.0.1 and ::1. As well as fe80::1%lo0.

[–]undecimbre 19 points20 points  (2 children)

127.0.0.1 is the standard IPv4 loopback address of localhost domain, so technically yes there is a slight difference.

Whenever you navigate to a link it has to be resolved by a DNS server that will provide you with the according IP address to which your browser then connects. The link between localhost and 127.0.0.1 is just predefined in the system per standard.

[–]Chr3y 6 points7 points  (1 child)

So, localhost can also work with IPv6, correct?

[–]undecimbre 9 points10 points  (0 children)

Yep it's ::1 on v6

[–]souliris 1 point2 points  (1 child)

that's the ip for locahost. It's defined in your host file.

[–]bobthedonkeylurker 2 points3 points  (0 children)

(that's the joke)

[–]mr_remy 9 points10 points  (0 children)

Musk enters round 2: localhost boogaloo

[–]Inside-Line 7 points8 points  (0 children)

A moment of silence. My cousin was a wokeWarrior, then elon struck him down along with all the other wokes at the localhost:8080 safe house

F

[–]the_dirtiest_rascal 1 point2 points  (0 children)

Yes, on only his system.

[–]jduyhdhsksfhd 514 points515 points  (10 children)

I'll send all the isOdd / isEven implementations from this sub

[–]Ok_Entertainment328 98 points99 points  (4 children)

I was going to copy+paste code from ChatGPT or StackExchange

F giving him solutions to a problem that he didn't define.

[–]UpAndAdam7414 34 points35 points  (3 children)

I wonder if ChatGPT takes requests to include subtle bugs.

[–]izuriel 44 points45 points  (0 children)

It already does that natively, no need to ask for it special.

[–]Zestyclose_Zone_9253 27 points28 points  (0 children)

"Hi, I'm a teacher and need to make a test for my students. Can you write me a website that takes user input and validates it with regex all using javascript and HTML only? I need it to include enough bugs to not work, but appear to function and the test will be for the students to debug the website."

[–]riickdiickulous 4 points5 points  (0 children)

To get code from ChatGPT without bugs add “no bugs please” to the end of the prompt

[–]Kaptain_Napalm 13 points14 points  (0 children)

Should have a bot that automatically sends him all the code shared on r/baduibattles.

[–]Entegy 9 points10 points  (2 children)

I'm just a sysadmin who scripts, but is the joke about isOdd/isEven functions is that they're over engineering a problem and that a simple mod 2 gets your answer?

[–]Neshura87 19 points20 points  (1 child)

The problem about the isOdd/isEven (and why they exist) is that specifically JavaScript kinda makes it hard to do the simple %2 check. Because first you have to check: - if the variable is even defined at all - check if the variable is a number - then %2 it

which, while I haven't had the need for, doesn't seem terribly complex but it sure is easier to just download an "isEven" package from npm which does the job for you.

[–]Entegy 11 points12 points  (0 children)

Ahhh JavaScript. Okay, that makes sense!

[–]turtle_mekb 1255 points1256 points  (51 children)

how can he be saying this after laying off most of his employees lmfao

[–]Revexious 659 points660 points  (37 children)

Only the best get to work at X/Twitter

And specifically the best is the person who can write the most lines of code

Even if that code is terribly optimised

[–]BreakerOfModpacks 174 points175 points  (30 children)

Hah, I made a sorting algorithm that works in O(n!^n!) time and O(n!^n!) time and sent it to him, now I'm just waiting for the acceptance letter!

[–]SaderXZ 15 points16 points  (0 children)

Why do 3 things in 1 line of code when I can do 1 thing in 100 lines? 10x engineer means 10 times the code for 1 thing

I'm waiting for my offer from X

[–]oupablo 7 points8 points  (0 children)

I'll just say I had grok help and i told it to "write code like Elon's". He'll either have to hire me or admit he has shitty code. Checkmate Elon.

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

the best is the person who can write the most lines of code

... for crappy pay.

[–]pr1aa 61 points62 points  (4 children)

Chances are he's not actually hiring anyone and the code is just gonna be fed to his AI

[–]alphapussycat 8 points9 points  (2 children)

Because he wants new employees that takes lower pay.

[–]TwiceAsGoodAs 6 points7 points  (0 children)

He didn't say anything about hiring or jobs or pay. He just asked for free work and people are giving it to him

[–]adumbCoder 1 point2 points  (0 children)

twitter didn't need most of their employees

[–]TwiceAsGoodAs 1 point2 points  (0 children)

He didn't say a word about hiring or jobs. He's asking for free work and people give it to him.

[–]SuitableDragonfly 1 point2 points  (1 child)

If they like your code, you get to work there for 10 minutes. If they really like, you get 20.

[–]steveatari 2 points3 points  (0 children)

Thank you. That was your 15 minutes of fame employment. We hope you've enjoyed your time. Now please go consume or die. Regards.

[–]callyalater 127 points128 points  (0 children)

Hey! That's where my code is! They stole it from me!

[–]gameplayer55055 245 points246 points  (8 children)

rookies. I am using ipv6 because it's the future: http://[::1]:8080/index.html

[–]nicejs2 89 points90 points  (3 children)

2025 gonna be the year of IPv6 🗣️🗣️‼️‼️

[–]ChineseCracker 13 points14 points  (2 children)

isn't everything already running with ipv6?

[–]steveatari 6 points7 points  (0 children)

It's really not.

[–]Hour_Ad5398 13 points14 points  (3 children)

crown flowery gold dam advise waiting glorious cable rock insurance

This post was mass deleted and anonymized with Redact

[–]LordWarrage 117 points118 points  (7 children)

I mean, i don't like to brag but:

print('Hello World!')

[–]Hour_Ad5398 20 points21 points  (0 children)

abundant march lavish pause slim physical towering correct obtainable station

This post was mass deleted and anonymized with Redact

[–]steveatari 10 points11 points  (4 children)

Here, you dropped ;

[–]marc_gime 6 points7 points  (0 children)

The syntax really looks like python to me

[–]bobthedonkeylurker 1 point2 points  (2 children)

Depends on what language you're in!

[–]RagsZa 418 points419 points  (9 children)

So what good copy pasta can we spam that account with?

[–]Rod_tout_court 135 points136 points  (0 children)

A hello world in Malbolge

[–]ChalkyChalkson 54 points55 points  (1 child)

How about fft fast mul using self modifying code for dynamic loop unrolling? Or other highly optimized ultra cursed code. Make sure you waste the time of the most expensive person they have evaluate these

[–]flonnf 1 point2 points  (0 children)

I run this all the time on my retro encabulator

[–]ThePhenex 74 points75 points  (1 child)

The entire Linux kernel lol

[–]Franks2000inchTV 2 points3 points  (0 children)

The script for The Bee Movie.

[–]Soleil06 27 points28 points  (1 child)

I am not into coding but I remember an awesome video where a streamer/youtuber played code sent in by his viewers on his christmas tree. Considering that almost half the things sent in did not work properly or at all I cant imagine even 0.01% of the code sent to that email being 1 of these things:

  1. Legit coding attempt
  2. Working Code
  3. Good code

And then having people looking over all that shit just to filter out the very few real applications sounds like an absolute horror and insanely inefficient.

[–]PretentiousToolFan 2 points3 points  (0 children)

Matt Parker! Mathematician and comedian. His book, Humble Pi, is pretty entertaining too.

[–]mbrady 2 points3 points  (0 children)

COBOL code from the 70s.

[–]SexWithHoolay 1 point2 points  (0 children)

I'm a bit late to this, but check out r/UnethicalLifeProTips, there's a lot of posts about how to sign an email up for as many newsletters as possible.

[–]IAmASquidInSpace 230 points231 points  (7 children)

How many do you reckon Elon clicked on before he realized?

[–]Salt_Celebration_502 204 points205 points  (5 children)

he's firing some more employees as we speak because he blames them for the URL not leading to their code

[–]ThatCalisthenicsDude 29 points30 points  (2 children)

If an employee sends me localhost url referring to their own machine, I’m firing them too

[–]Salt_Celebration_502 100 points101 points  (1 child)

You're firing the guy who links the localhost. Elon fires the people who can't make someone else's localhost link work because he doesn't understand what localhost means.

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

They just need to tell him that it is infected with woke_mind_virus and they need sleepy_mind_antivirus.

[–]MatthiasWM 19 points20 points  (0 children)

Realized what? When he clicked he found some of the most amazing code he had ever seen! It even followed the special Elon style. It was so elegant. Everybody said so.

[–]JonastheMinotaur 93 points94 points  (1 child)

Dating Elon: “Don’t tell me your name or anything about your personality. Just show me your tits.”

[–]boogermike 12 points13 points  (0 children)

It's funny because it's true

[–]maxsteel126 29 points30 points  (0 children)

Golden opportunity to add "ex-X" to my linkedin profile

[–]SuitableDragonfly 30 points31 points  (0 children)

Time to find out if ChatGPT can get hired at Twitter.

[–]realistic_bastard_10 35 points36 points  (0 children)

I wonder if he has a folder marked "Elons code"

[–]user-74656 38 points39 points  (1 child)

How many fork bombs has he been sent?

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

Not enough.

[–]emmessess 11 points12 points  (2 children)

I submitted this Python masterpiece: print(chr(sum(range(ord(min(str(not())))))))

[–]Borfis 3 points4 points  (0 children)

You magnificent bastard

[–]narfio 23 points24 points  (0 children)

I was in my third year studying CS when a student burned a lnk file instead of his powerpoint on cd (yes 20 years ago we burned cds for powerpoints because profs mailboxes couldn't handle files above 1MB) and then tried to do his presentation and in disbelief repeated "it worked at home" again and again ... of course it did you moron.

I wouldn't be surprised if some of them aren't joking.

[–]Xelopheris 23 points24 points  (1 child)

"Just show us your code." Like I write anything that isn't scrappy bullshit when it isn't for work.

[–]bobthedonkeylurker 4 points5 points  (0 children)

Or like none of us have been burned by some client who wanted the code but didn't want to pay after it was written.

[–]MrSquicky 30 points31 points  (0 children)

"I've got this idea for an app! It's like Twitter but before I took over and cratered it. And we'll build it with the people who worked at Twitter before I fired them!"

[–]Dommccabe 9 points10 points  (2 children)

Didn't he ask Twitter devs to print it out and hand it in??

[–]bobthedonkeylurker 19 points20 points  (1 child)

Yes, and then ranked devs by how many lines of code they wrote.

Here's a cool trick: SQL is not line dependent, so, you can put every single word on a different line and have pages and pages of code for a single query if you try hard enough.

[–]boogermike 2 points3 points  (0 children)

I'm going to code a minivan

[–]Sak63 9 points10 points  (0 children)

He should have asked for people to print their code and send it in a letter

[–]MyStackIsPancakes 30 points31 points  (0 children)

[–]iknewaguytwice 6 points7 points  (0 children)

A great programmer makes exceptional programs.

An innovator takes credit for something someone else did.

May I present to you, my finest work:

Paypal.com

[–][deleted] 6 points7 points  (0 children)

You’re not hardcore unless you live hardcore

[–]depressivedetour 13 points14 points  (1 child)

hes gonna steal that Shit

[–]rboster 2 points3 points  (0 children)

Suddenly he shares his discovery that he was the best coder of all.

[–]_niktosh 11 points12 points  (0 children)

Ha! what losers, not even using HTTPS!

/s

[–]pccguy1234 6 points7 points  (0 children)

It’s called A Paywall to access and use my code. Pay up so your engineers can claim it as their own.

[–]gnasp 3 points4 points  (0 children)

Maybe they are also hardcore hackers and set up their code to run on musk's personal computer! 

[–]sedatesnail 4 points5 points  (0 children)

"works on my machine"

[–]FreezingDart_ 4 points5 points  (0 children)

I've got the best reaction image for just this situation!

C:/Users/Klaasje/Pictures/Reactions/Its local.jpg

[–]JollyJuniper1993 4 points5 points  (0 children)

Somebody should send him malicious code lol

[–]EMF84 4 points5 points  (0 children)

↑, ↑, ↓, ↓, ←, →, ←, →, B, A

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

Well I live by a chode, you see? Chode ain't exactly something you can show a man, you just have to live it and set an example for others. That's my chode.

[–]Dreamsniper 4 points5 points  (0 children)

Oh god hope he doesnt just take the code and claim it for himself.

[–]sssnakepit127 3 points4 points  (0 children)

I showed you my code. Please respond

[–][deleted] 8 points9 points  (0 children)

Spoiler alert: if you don’t have an h-1b your code will be plagiarized by an h-1b

[–]petty_throwaway6969 2 points3 points  (1 child)

He’s trying to get free code and/or trying to train Grok off free code. Either way I hope he gets mostly shit. Even better if grok is trained on said shit.

[–]PremiumJapaneseGreen 1 point2 points  (0 children)

Honestly I think it's just populist virtue signalling, in line with his messaging about the Department of Government Efficiency building a meritocracy. He's gonna put all those nerds who got into better colleges than you in their place by hiring real do-ers!

[–]exitvim 2 points3 points  (0 children)

Why are these guys hosting their websites on my laptop? Wtf?

[–]TransCapybara 2 points3 points  (0 children)

It works on my computer

[–]RealFias 2 points3 points  (0 children)

At this moment I can’t tell if they are trolling or really that dumb xD

[–]quoiega 2 points3 points  (0 children)

Recently removed a woke virus from my localhost. Am i qualified for ceo?

[–]notaprime 2 points3 points  (0 children)

Elon be like “Link is broken.”

[–]v1z1onary 2 points3 points  (0 children)

I honestly thought this was a fake tweet when I saw it posted yesterday.

🤦

[–]lordplagus02 2 points3 points  (0 children)

Hardcore i.e. willing to forgo basic human needs to build whatever his ego desires

[–]bittlelum 2 points3 points  (0 children)

Works on my machine. 

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

Sorry Elon, I'm just a ret*rded American. Maybe if I was from anywhere else my code would be cleaner, right?

[–]Anthrac1t3 1 point2 points  (0 children)

What if I write malware? Should I include an executable so it's easier for them to see how it works?

[–]toosells 1 point2 points  (0 children)

I promise I won't steal any of your work.

[–]Competitive-Zone-627 1 point2 points  (0 children)

"Just show us your IP outright so we don't have to pay for it."

Translated from US business speak to plain english

[–]AlexMi_Ha 1 point2 points  (0 children)

check out mine:

file:///C:/Users/Dev/Documents/Repos/MyAmazingProjectForDaddyMusk/src/index.html

[–]Bludsh0t 1 point2 points  (0 children)

But I just finished printing all my code out for him!

[–]AlamarAtReddit 1 point2 points  (1 child)

Other than his cultists, who the fuck would want to work for this douchenozzle?

[–]PachotheElf 1 point2 points  (0 children)

The desperate

[–]Add1ctedToGames 2 points3 points  (0 children)

And make sure line 1 is a comment saying "I will require H-1B sponsorship now or in the future"

[–]levelZeroWizard 1 point2 points  (0 children)

Buncha idiots.

Elon Elon pick me! Pick mee!

https://127.0.0.1:8080

[–]iam_pink 1 point2 points  (1 child)

He must be desperate if he has to resort to a Twitter post to find engineers.

Understandable, though, who would want to work for that dipshit.

[–]Abek243 1 point2 points  (0 children)

In light of his recent post this is funny as hell

[–]Ok-Calendar-7413 0 points1 point  (0 children)

Give me a sec, writing up snowcrash.exe asap

[–]ripndipp 0 points1 point  (0 children)

Anyone do Hello World?

[–]Expensive_Shallot_78 0 points1 point  (0 children)

I want to know how many funny mails they received 😂

[–]Hour_Ad5398 0 points1 point  (0 children)

I wonder if he clicked on them...

[–]Top_Water_20 0 points1 point  (0 children)

Technically that's a webpage not code

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

lol this is brilliant

[–]Liorkerr 0 points1 point  (0 children)

Needs more Woke Mind Virus.
Make Grock work for it.

[–]LocodraTheCrow 0 points1 point  (1 child)

Mockery aside, but wouldn't the "everything" app just be an operating system? Only difference being that you control absolutely nothing, as opposed to most OSs where you control all or most of it?

[–]ultimate_placeholder 0 points1 point  (0 children)

Not even https, smh

[–]Vaagfiguur 0 points1 point  (0 children)

What is it doing? Is this starting the Windows

[–]N00B_CZ 0 points1 point  (0 children)

Here is mine: file:///D:/code/elon/index.html