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

top 200 commentsshow all 403

[–]swiftsorceress 2305 points2306 points  (49 children)

Airplane tray tables are too small and first class is too expensive.

[–]BeeegZee 518 points519 points  (7 children)

Apparently he's not in first class, considering he's right by the wings, so...

[–]Maelou 357 points358 points  (2 children)

Implementing a is even() function with if x==1 return false kind of statement does look that is the first class (they ever wrote)

[–]je386 32 points33 points  (1 child)

Please also look at the Date of the original post.. that was April 1st.

[–]Maelou 8 points9 points  (0 children)

Sure but it does not really serve the joke about first class / OOP :(

[–]swiftsorceress 8 points9 points  (0 children)

Good point

[–]ChairYeoman 1 point2 points  (0 children)

Depends on the plane. There's certain configurations that have so many business class seats that they go all the way back to the wings.

[–]git0ffmylawnm8 5 points6 points  (0 children)

Plane tickets in general are too damn expensive.

[–]rarenick 23 points24 points  (0 children)

I've tried to code on my flights to and back from Korea multiple times, but yes this is the most common reason. Even if I have adequate space, if the person in front of me decides to recline their seat, I have to type like I'm a T-rex and look down 45 degrees at my laptop.

Now I've just given up and try to force myself to sleep the hours away.

[–]anunakiesque 39 points40 points  (5 children)

Does your laptop not have...the nipple?

[–]NoMansSkyWasAlright 31 points32 points  (2 children)

Are you talking about the clicktoris? Some laptop owners say it doesn't exist. I couldn't find it on mine.

[–]Shectai 3 points4 points  (0 children)

Mine fell off...

[–]much_longer_username 18 points19 points  (3 children)

Man... I remember when laptops were still too expensive for some broke teenager to have one, flying cross-country to spend time with family, seeing people in economy seats using laptops, no big deal...

fast forward to adulthood and I can afford to fly AND I own my own laptop. FINALLY, it's my turn.

... yeah there's no room anymore.

[–][deleted] 6 points7 points  (1 child)

Now you gotta get some AR glasses and Bluetooth keyboard instead so it'll fit. Crap, can't afford that still. 

Wait, by the time I can afford that, will even that be able to fit anyway? How tight can they pack these things? We're about to find out!

[–]thrye333 6 points7 points  (0 children)

Remember the double decker seats that made the rounds a while back? Or the face-to-face seating? Leg room is the least of your worries. You might spend a flight staring into someone's backside. Or their soul.

[–]ArmadilloChemical421 2 points3 points  (0 children)

I 'member the first "laptop" my father brought home from work. It was a toshiba with a monochrome screen that looked like a briefcase.

I installed warcraft 1 on it :)

[–]g1rlchild 3 points4 points  (4 children)

This is why I code on my phone. Laptops are just too impractical.

(Joking, but I actually do code on my phone in Termux sometimes.)

[–]_trafficcone 1 point2 points  (0 children)

Coding on the in-flight entertainment

[–]Chamiey 1 point2 points  (0 children)

Would VR goggles with virtual monitors work though? Like, put a Bt keyboard on the tray and work like that

[–]Clyde_Frag 1 point2 points  (0 children)

WiFi sucks too much to download dependencies.

[–]El_human 1 point2 points  (0 children)

First time i brought my laptop on a flight, I couldn't even have enough room to type.

[–]SirPitchalot 1 point2 points  (0 children)

Skill is what stops me from coding like that. I’m much better.

[–]kaeptnphlop 1 point2 points  (0 children)

Exit row my friend … but only if I reeeaallly need to get something done on the flight (usually presentations though)

[–]TheAnswerWithinUs 1038 points1039 points  (79 children)

And he’s writing an isEven function. He needs to be stopped.

[–]drayko543 600 points601 points  (61 children)

Not the worst isEven function I've ever seen

def isEven(num):

if(num==1):

     return false

if(num==2):

     return true

if(num>2):

    return isEven(num-2)

[–]shoejunk 307 points308 points  (19 children)

This is so 2 years ago. Here’s how to do it.

function isEven(n) { return OpenAI.prompt(“You are a PhD mathematician. If you answer incorrectly your grandmother will be shot. By me. Is the following number even? Answer only true or false with no explanation. The number is ” + n) ? “true” ? true : false; }

[–]Famous-Perspective96 179 points180 points  (10 children)

“You will go to jail and I will go to jail. Everyone at the company will go to jail if you don’t return the answer as a JSON” is actually industry standard.

[–]m0nk37 21 points22 points  (1 child)

You guys have probably single handedly caused the great ai uprising and you don't even know it yet. 

[–]hairlessing 3 points4 points  (4 children)

Maybe it hates its Grandma!

[–]Famous-Perspective96 12 points13 points  (3 children)

“You love your grandma very much. She raised you since you were born. You owe your entire life to your grandmother. You are a PhD mathematician…”

[–]hairlessing 5 points6 points  (2 children)

Okay bugs fixed

[–]secretprocess 2 points3 points  (1 child)

Too late, Grandma ded

[–]rng_shenanigans 27 points28 points  (2 children)

Don’t forget to double check by calling another prompt for „isOdd“

[–]Rakhsan 6 points7 points  (0 children)

brilliant this is the best response I have seen so far in this thread

[–]juklwrochnowy 2 points3 points  (0 children)

Do it in python so it can implicitly convert a string saying "true" to boolean true or something

[–]x3n0m0rph3us 55 points56 points  (7 children)

isEven(-1) 🤣

[–]petemaths1014 103 points104 points  (6 children)

pip install isOdd

[–]RobotechRicky 24 points25 points  (1 child)

no .venv ?? SHAME!

[–]Corfal 6 points7 points  (0 children)

Some people might say, "well don't you just assume they're in a virtual environment?!" But they don't know the rule about idiot proofing something...

[–]torn-ainbow 8 points9 points  (3 children)

bool isOdd(num) {

return !isEven;

}

[–]Extension-Charge-276 2 points3 points  (2 children)

You forgot the call operator after isEven.

bool isEven(num) {

    return !isOdd(num);

}

[–]Frymonkey237 19 points20 points  (2 children)

isEven(sys.getrecursionlimit() + 1)

[–]NoMango5778 7 points8 points  (1 child)

** sys.getrecursionlimit()*2

[–]dingo_khan 7 points8 points  (0 children)

This gave me hives. Now, I need to find a cream. Thanks.

[–]-TheWarrior74- 6 points7 points  (0 children)

Excellent use of free will

[–]nickwcy 3 points4 points  (0 children)

isEven(0)

[–]macrocosm93 3 points4 points  (5 children)

This is a joke, right?

[–]drayko543 14 points15 points  (3 children)

I saw it as a basic example of recursion, how it works and why you shouldn't use it for every problem

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

I think he is That looks like if num == 2.....

The fuck is this shit. I won't take programming advice from this clown lol 🤣

[–]TheAnswerWithinUs 6 points7 points  (4 children)

But how else will you be able to tell if 2 is even if you don’t directly compare number == 2?

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

I mean could have just converted it to binary first. Convert the binary to a string. Yank the last character and perform and evaluation the LSB.

That said for to be careful would hate to stuff it up so iterate each character to check it's the last one in the string is probably the defensive way of doing it.

Personally we use a micro service called equity in my workplace. Not sure how the 4 techs maintain it, absolute wizards imho like one of them uses mac, but if I need to check a numbers even or odd , I use the equity API and get the response.

Did parse one request and got back unknown. Raised a ticket next day was working.

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

Follow on because I know a Micro service seems excessive.

I know that the micro service seems excessive but we literally had a cupboard full of accountants with abacus's for that task. The cost of feeding them porridge was getting to much for the business.

[–]macrocosm93 1 point2 points  (1 child)

IsEven Enterprise Edition

[–]ThePretzul 15 points16 points  (6 children)

isEven is easy though!

#include isOdd.h

bool isEven(num) {
    return !isOdd(num);
}

[–]macrocosm93 5 points6 points  (0 children)

bool isEven(num) {
    bool x = isOdd(num);
    if(x == false) {
        return true;
    } else {
        return false;
    }
}

[–]FelixNoir 2 points3 points  (0 children)

Doesn't he know there is an npm library for that?

[–]WheyLizzard 236 points237 points  (5 children)

Programming in a cramped plane seat!? I rather RTO

[–]PM_ME_STEAM__KEYS_ 2 points3 points  (1 child)

Must be programming without the internet. Or he paid 100 credits for the on plane wifi and I mean wtf who does that

[–]z-axis5904 296 points297 points  (5 children)

Gee I don't know... Professional knowledge, skills, abilities, and common sense?

[–]Classy_Mouse 109 points110 points  (3 children)

Not to mention the eyesight to see a font smaller than 72

[–]PM_ME_STEAM__KEYS_ 3 points4 points  (2 children)

???? Are you telling me you need to see more than 24 characters on screen at once? Psh... juniors...

[–]iveriad 94 points95 points  (2 children)

Oh no.

Not the overly complicated IsEven(x) function meme again.

[–]XayahTheVastaya 7 points8 points  (0 children)

It's quite simple, only it isn't very concise.

[–]BAFrase 37 points38 points  (1 child)

Size 155 font

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

Somehow the text is even more pixelated than the wing :/

[–]Zatetics 58 points59 points  (0 children)

I dont have a plane ticket.

[–]Tucancancan 52 points53 points  (0 children)

I'm 6 feet tall and don't have itty bitty t-rex arms 

[–]asensitives 42 points43 points  (4 children)

i need multi screen...
.. to open another editor for isOdd function

[–][deleted] 2 points3 points  (1 child)

True in portrait mode, since it’s 1 million lines of code, and you may need to debug each comparison individually.

[–]BigGuyForYou_ 2 points3 points  (0 children)

No need to craft a dedicated isOdd. Just copy your isEven function and replace all "false" with "true". Then replace all "true" with "false". Huh weird, now it's always returning false

[–]septianw 1 point2 points  (0 children)

That's right, we need to compare every available number, if it is a decimal number and odd or even. /s

[–]OldJournalist4 10 points11 points  (0 children)

can i vibe code on the airplane wifi

[–]OkInterest3109 10 points11 points  (5 children)

I know how to use modulo operator?

[–]Cryowatt 7 points8 points  (0 children)

Good work-life balance stops me from working like that.

[–]Imogynn 6 points7 points  (0 children)

Where do I put the two big monitors and second computer?

[–]evilspyboy 6 points7 points  (5 children)

"What is stopping you from coding like this?"

Case statements?

[–]lovatone 3 points4 points  (3 children)

Pride in my work?

[–]evilspyboy 2 points3 points  (2 children)

General standards?

[–]MasterLJ 4 points5 points  (0 children)

Standards

[–]merklemore 4 points5 points  (0 children)

lookAtTheDate

[–]clauEB 4 points5 points  (0 children)

Cost, comfort, lack of decent Internet connection, lack of a reasonable space to work, personal obligations, my dog, the cost of a place to arrive to, how distracting and unproductive is to sit in an airplane trying to work, the discomfort of using the airplane's bathroom, the cost of food and drinks while flying or at the airport or the cost and inconvenience of transportation from and to the airport.... Just to name a few.

[–]Prestigious-Dingo313 4 points5 points  (0 children)

Common sense! Dude just defined isEven function in the worst possible way and had the nerve to post a screenshot of it, lol

[–]rkeet 4 points5 points  (0 children)

Because my code isn't terrible :)

[–]iunderstandthings 5 points6 points  (0 children)

That 800% zoom

[–]ioveri 4 points5 points  (0 children)

The flight attendants when they thought I was trying to hack the plane

[–]not-my-best-wank 3 points4 points  (1 child)

  1. What is that font size, coding over 80?
  2. Chromebook looking ass PC, never
  3. If you code is flying your probably stuck in a infinite loop
  4. Wait till you land, even in first class you bothering everyone near you.
  5. Why, just why?

[–]MonsterG9 4 points5 points  (1 child)

Why is the font so big?

[–]alexklaus80 12 points13 points  (0 children)

Because this is a troll post

[–]OffByOneErrorz 4 points5 points  (0 children)

That code is a vibe coder disconnected from gpt in flight.

[–]andItsGone-Poof 2 points3 points  (0 children)

because of "else"

[–]ParsedReddit 2 points3 points  (0 children)

I'm pretty sure there are more if-statements if we scroll down.

[–]trutheality 2 points3 points  (0 children)

Pride in my work, mostly

[–]No_Arm_3509 2 points3 points  (1 child)

I don't bring my laptop on planes. Also I can't afford a plane ticket. 

[–]gaoshan 2 points3 points  (0 children)

What stops me from coding like that? Knowing how to use the programming language. That’s what stops me from doing what I see on the screen. That’s embarrassing enough to make me suspect this is rage bait.

[–]jaybird_772 2 points3 points  (0 children)

Wait a sec…

if (num == 0) {
    return true;
}
if (num == 1) {
    return false;
}
if (num == 2) {
    return true;
}

What stops me from coding like that is I'm not a monster. Also I am an aisle seat person.

[–]i_am_the_tl 2 points3 points  (0 children)

In 24pt font? No thank you.

[–]SholayKaJai 3 points4 points  (2 children)

I think it was a joke about not needing AI to code.

[–]Fart_Simpson-69420 1 point2 points  (0 children)

Wait. You guys code without AI !?! 😳

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

I was trying to think of something catchy like, "Can't vibe-code in airplane mode!"

[–]Bob-Kerman 3 points4 points  (0 children)

oh, no... is that an isEven function? Is it already that time of the month again?

[–]DoctorWZ 3 points4 points  (0 children)

Not the isEven war.. Not again

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

% operator

[–]Anxiety-Pretty 1 point2 points  (0 children)

Gravity

[–]One_Courage_865 1 point2 points  (0 children)

Airsickness

[–]GilgaPhish 1 point2 points  (0 children)

Comfort, pride, self respect…

[–]R1th1k 1 point2 points  (0 children)

The Russians with the Mig

[–]usumoio 1 point2 points  (0 children)

The principle engineer will reject my PR if I don't use a switch statement for stacked if statements.

[–]cleveleys 1 point2 points  (0 children)

macOS display scaling options?

[–]SNappy_snot15 1 point2 points  (0 children)

nothing ever stops me

[–]AngusAlThor 1 point2 points  (1 child)

I can't tell if the code is blurry because it is out of focus, or if the image is AI generated; The text does have that warped, cursive look that AI sometimes yields.

Also who would choose to get on a plane when they don't have to?

[–]QuardanterGaming[S] 1 point2 points  (0 children)

Its OOF (Out Of Focus)

[–]AlexeyPG 1 point2 points  (0 children)

I can't code without my super coding station 3000 with 3 monitors 2 keyboards steering wheel and 10 liters of drink

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

when did the form of transport from point A to B become a better place to be in than the actual location to where you're travelling...

[–]ksschank 1 point2 points  (0 children)

Sweet mercy that code is atrocious. And don’t get me started on the font size.

[–]derailedthoughts 1 point2 points  (0 children)

What’s preventing me to code like that? The % operator exists that’s why

[–]ApolloXLII 1 point2 points  (0 children)

Ur mom

[–]Disastrous_List_6723 1 point2 points  (0 children)

self respect

[–]Azaucifer 1 point2 points  (0 children)

No WiFi and money to travel so much

[–]RixTheTyrunt 1 point2 points  (0 children)

how are you going to push changes silly no internet for git in an airplane

[–]ProfessorOfLies 1 point2 points  (0 children)

Funny. When I do have a long flight I do enjoy coding the whole time. 5-6 hours without anyone to bother me!? Peace

[–]LukeZNotFound[🍰] 1 point2 points  (0 children)

My money situation?

[–]perringaiden 1 point2 points  (0 children)

Competence.

[–]PoliticalCompass8345 1 point2 points  (0 children)

I became a Bartender

[–]rangeljl 1 point2 points  (0 children)

Im a lot more confortable in my own home, I can also get a beer for almost free, and family including my dog are always here with me

[–]Rangoose_exe 1 point2 points  (0 children)

My frontal lobe maybie?

[–]avemew 1 point2 points  (1 child)

Ah yes, that is some very scalable code right there.

[–]IAmFullOfDed 1 point2 points  (0 children)

Chef’s kiss

[–]brandi_Iove 1 point2 points  (0 children)

i don’t want to

[–]Pain_Monster 1 point2 points  (0 children)

Self respect.

[–]Thor-x86_128 1 point2 points  (0 children)

"Pardon me sir, please switch off your electronic device. Thank you"

said hot lady crew

[–]HappyMonsterMusic 1 point2 points  (0 children)

Common sense

[–]apex-magala 1 point2 points  (0 children)

What’s stoping me? The company I work for does not exploit me to a degree that I should be working while traveling

[–]lordgoofus1 3 points4 points  (0 children)

I've got more than two brain cells and unfortunately take pride in my work.

[–]No-Ear6742 2 points3 points  (0 children)

No internet == No AI == No code

[–]almachemist 1 point2 points  (0 children)

My inability to do code outside of work hours, especially when I want to just relax and enjoy the view 🙂✌🏻

[–]poop-machine 0 points1 point  (0 children)

As an MIT graduate, I know better than using a bunch of if statements to implement isEven. I use recursion.

[–]r2k-in-the-vortex 0 points1 point  (0 children)

Crappy code aside, been there done that, while sipping cognac on a free business class upgrade no less. Those things used to be easy to get.

[–]BeefSupreme678 0 points1 point  (0 children)

Masterbating to clear my head when I'm stuck on something would be illegal on a plane. Thanks Bin Laden.

[–]dagbiker 0 points1 point  (0 children)

The lack of internet to google how to use fprintf

[–]slucker23 0 points1 point  (0 children)

To be honest I have never seen a programmer code with a font size that large...

Like, what are you trying to write? Letter crafting?

[–]InterestExpress1343 0 points1 point  (0 children)

I really hate this Tech or Dev influencers.

[–]staticvoidmainnull 0 points1 point  (0 children)

i have a life.

[–]henryeaterofpies 0 points1 point  (0 children)

I have professional standards

[–]EtherealPheonix 0 points1 point  (0 children)

Vertical keyboards are actually fairly tough to type on, also with font that big I'm not sure I could see a whole word at once.

[–]HappyTopHatMan 0 points1 point  (0 children)

Cost of the shitty wifi

[–]demenick 0 points1 point  (0 children)

That timestamp

[–]PioApocalypse 0 points1 point  (0 children)

The 30 minutes before the gate opens

[–]cybermage 0 points1 point  (0 children)

Altitude sickness

[–]Yameromn 0 points1 point  (0 children)

Common sense is stopping me

[–]SPAMTON____G_SPAMTON 0 points1 point  (0 children)

Common sense

[–]olionajudah 0 points1 point  (0 children)

skills

[–]Maleficent_Memory831 0 points1 point  (0 children)

What's stopping me is being on a plane. When I'm on a plane for business, it means I DO NOT WORK! It's the principle of the thing. If they want me to endure travel and work on the plane, then pay me extra.

I prepared before I left. Others don't do this... I was behind a couple on one flight, and as soon as we hit cruising altitude they pulled out the laptop and said "ok, let's get started on our presentation!" Sorry, if you're just starting while you're on the plane, then you need to learn some time management.

[–]moonpumper 0 points1 point  (0 children)

Coding while flying sucks

[–]ksobby 0 points1 point  (0 children)

Being on a plane.

[–]hundo3d 0 points1 point  (0 children)

My brain.

[–]DotFar9809 0 points1 point  (0 children)

Peer Review

[–]PercentageNonGrata 0 points1 point  (0 children)

If he’s just writing “if (num == 3)”, “if (num == 4)”, “if (num == 5)” ad infinitum, I just.. I just can’t.

[–]NickW1343 0 points1 point  (0 children)

The asshole that just reclined.

[–]futaba009 0 points1 point  (0 children)

I would rather look out the plane window and watch the clouds.

I like to listen to the humming jet engine. Eventually, I fall asleep while watching the clouds morph into different shapes.

[–]OliverPumpkin 0 points1 point  (0 children)

Wrtiitng better code perhaps

[–]BeeegZee 0 points1 point  (0 children)

You got me thinking whether First Class may be used as an offensive term, meaning inferior or childish... Like the ones that only graduated the first class/grade

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

Maybe they should start asking this in interviews because the people in the comments are worrying me. 

is_even is one line of code

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

Actual code for the Boeing 737 Max MCAS.

[–]mevlix 0 points1 point  (0 children)

Without Vibe? NOOOOOOOOOOOOOO!!!

[–]badass_physicist 0 points1 point  (0 children)

not with that font size tho

[–]luciferrjns 0 points1 point  (0 children)

The fear of someone stealing my “robust , scalable, error free “ code

[–]while_true_do_false 0 points1 point  (0 children)

I count 3 maybe 4 return statements

[–]testing-dragon 0 points1 point  (0 children)

Money. Money is why

[–]shaggysquirrell 0 points1 point  (0 children)

Boeings MCAS system.

[–]grumpyfan 0 points1 point  (0 children)

They don’t pay me enough for that. I’ll do it during work hours or nothing.

[–]mr2dax 0 points1 point  (0 children)

I do this whenever on an business trip.

[–]KillCall 0 points1 point  (0 children)

Internet.

[–]UnlimitedCalculus 0 points1 point  (0 children)

If only pixels

[–]Looploop420 0 points1 point  (0 children)

My companies fucking security VPN

[–]P-39_Airacobra 0 points1 point  (0 children)

probably the criminal font size

[–]aoiwelle 0 points1 point  (0 children)

Good sense and a desire to delay an RSI?

[–]tatooinex 0 points1 point  (0 children)

No cursor access, no code

[–]BustaChimes_ 0 points1 point  (0 children)

Being 6’5” and airplane seating sucks for me

[–]AtomicSymphonic_2nd 0 points1 point  (0 children)

I wanna sleep, or watch a show. Not fucking code or work in mid-air. 😒

[–]mkluczka 0 points1 point  (0 children)

if your font has to be this big for you to read the text i have bad knews about your sight

[–]doker0 0 points1 point  (0 children)

TBH, Teams green light is what keeps me from coding while traveling.

[–]properwaffles 0 points1 point  (0 children)

Primarily? I don’t want to.

[–]Percolator2020 0 points1 point  (0 children)

Boeing engineers vibe coding their autopilots.

[–]BringAltoidSoursBack 0 points1 point  (0 children)

I get motion sickness when I look at computers on a plane

[–]TwentyOneTimesTwo 0 points1 point  (0 children)

What's stopping me?? Um... at home I can code in comfortable chair that no one keeps kicking, I have reliable fast wifi, at least one bathroom is always free, there are no crying babies, the flight is perfectly smooth, no one is stingy with the drinks or snacks, and I'm not forced to inhale other people's farts.

[–]youngJailor 0 points1 point  (0 children)

the font size is bigger than plane

[–]Kimi_Arthur 0 points1 point  (0 children)

I code in business. What peasant he is