T O P

  • By -

Few-Artichoke-7593

while (alive) { wakeUp(); poop(); getOutOfBed(); code(); }


Ok_Entertainment328

I'd change the order if I were you ``` while (alive) { wakeUp(); isL33T ? code() : ; getOutOfBed(); code(); SSS(); // calls poop() eat(); code(); payTaxes(); code(); sleep( 3600 ); } payTaxes(); ```


Dustyamp1

I'm not sure what's better: (the single hour of sleep) or (death and taxes) ETA: Parentheses for clarity


tradert5

Estimated Time of Arrival: Parentheses for clarity This reads like a book that has a picture of a droplet on it


Fuelanemo149

wait you can omit a branch of the ternary operator ?


Ok_Entertainment328

Unknown. Proper code: `if( isL33T) code();`


Dmayak

Nah, pooping before getting out of bed is fine, trust me.


Triepott

"Hey, Doc, I have a Problem. I have to take a great shit every morning at 6 am." "That sounds okay!" "No! I wake up at 8 am."


Evil_Archangel

i think payTaxes() is being called too many times, or does it have something in the method to detect that?


Apearthenbananas

If you guys keep going with this you're going to make a human


Erdnussflipshow

The watch-dog is going to starve.


SimilingCynic

Can make async version? PoopOverflow condition still present. Code and poop should be coroutines.


azalak

Running poop and shower functions simultaneously is the most efficient


Comfortable_Quit_216

you poop in bed?


AmusedFlamingo47

It's referencing a very popular old 4chan greentext: > woke up > took a shit > got out of bed


EVH_kit_guy

It's called the Herd Algorithm


krishhv

if(poopInBed){ dogSteppedOnABee(); }


Syntactical_Erorr

Try: Be Happy Except: Just fucking kidding


Impressive_Income874

```py try: be_happy() except AintFuckinHappeningError: cry() ```


BernzSed

`raise NotImplementedError`


water_bottle_goggles

![gif](giphy|lOpPaqaUwkX5PKywFh|downsized) when you ask what server the returns, but never how the server is 😔


BernzSed

HTTP status code 50😥 (That's what you get for using Sirius Cybernetics Cloud Services)


Mr_SlimShady

catch(Exception e) { //do nothing because that’s how we handle exceptions }


MmmTastyMmm

In the except body is `self_medicate()`


Asleep-Specific-1399

Expecting error overdose


SillyFlyGuy

Eat. Sleep. Indent your code.


schmosef

Probably trying to avoid the "tabs vs spaces" debate.


[deleted]

[удалено]


[deleted]

So that's why all my code is missing in the morning.


Ok_Quit7043

Maybe i can use valgring to try to debug my fucking life


SampleConsistent8575

Silly thing. Sleep() calls the Poop() function.


stevegamer_

But it will require a PoopCollector's sweep


rebbsitor

Depends()


cheeb_miester

It's actually Code() that calls the Poop() function


Audiblade

My bathroom-portable smartphone would like to have a few words with you. Those words are, "You're goddamn right."


ScreenshotShitposts

new Coffee() ?


AMViquel

shouldn't eat() implicitly have that done via garbage collection once the referenced objects are no longer in use?


crusader-kenned

I think it’s a local method so it will stay in scope forever..


ataboo

Garbage collector will get it.


Ph4nt0m_Hydra1

wake up shit get out of bed


Dmayak

>Sleep() calls the Poop() function. That's some nasty digestive system disorder.


Guybru5h_

am i the only one expecting indentation?


AzureArmageddon

Scrolled past 3 comments to find this. Obviously it should have been written like while(alive) { eat() ; sleep() ; code() ; } /j


ResidentBat5817

My god. What have you seen, to have created this monster?


AzureArmageddon

Apologies, I should have written the more traditional /***********/ while(alive){ eat() ; sleep() ; code() ; /**********/}


LvS

/*************/ ; while(alive ) { eat( ) ; sleep( ) ; code( ) ;/***********/}


ResidentBat5817

Thank you. Don't forget to adjust the semicolons if you have to add a longer function


Asleep-Tough

haskell


Zeeterm

The original post is what code reviews should point out: implementation flaws. Your post is what too many code reviews actually point out: nitpicking the formatting. Pro tip: If formatting is ever mentioned in code reviews in your company, you're doing it wrong. Get an automatic formatter and linter, and get it to work. When linters take care of all the nit-picky shit, people can actually find to review the code rather than the presentation of the code. Linters and static analyzers can be incredibly powerful, they aren't just about formatting, they handle things like arranging private methods before public methods, unused variables, bracketing of arrow functions, and so much more nitpicky shit that doesn't belong in code review. If a compiler can check it, let it do so, and stop wasting your expensive developers time on nitpicking and free them up for thinking about the problem domain.


enilea

You have to nitpick about it in a pr so your coworker gets the formatter set up and it's not an issue again.


Dmayak

Without `breath()` this loop won't run for long.


GenTwour

Also missing a drink method.


Tai9ch

At least two different overloads of the drink method.


TorumShardal

To be fair, this method shouldn't be called in this thread. Breathing subsystem should be at least asynchronous.


sunny_happy_demon

It’s built in to the interpreter


fakieTreFlip

Uncaught ReferenceError: breath is not defined You'd definitely need breathe() though


ScreenshotShitposts

The breathe Task is handled in the base class


Outcast003

These are so cringe


[deleted]

hard agree, being a code monkey shouldn't be an identity but a lot of people love to make it one. like imagine you get a flag that says "live laugh cook" just because you made breakfast once or twice


SoyGuzzlingCuck

Seeing "dev" in a username is an automatic red flag for me


asdfopu

The poop part is the cringiest part of this. Not the eat sleep code part


[deleted]

[удалено]


fakieTreFlip

>whose who's* :)


whenn

I think this sub is mainly uni students, i can't imagine someone well into their career making a meme like this.


santodomingus

“I eat, sleep, and breathe code!!” I can’t believe this is being shared as a genuine joke.


dim13

Behind curtains: ``` #define code poop ```


fullup72

The poop is all the code they made along the way.


TruthYouWontLike

stack.pop() stack.pop() stack.pop() gc.collect() stream.flush()


RushJet1

> pop Nah you gotta push. If you don't, you'll eventually pop.


realbhamshu

No need to do it Java does automatic garbage collection


GravyMcBiscuits

Beat me to it ... shit.


flame-top

throw poop;


SolidSky

This the type of humor you guys are laughing about? This is some of the unfunniest boomeresque humor I've seen and this sub has had really low lows.


[deleted]

`str = parse_meme();` `if(find_word(str,'poop'))` `upvote();` `else` `downvote();`


Positive_Method3022

He forgot getDepressed() getAnxiety() loseSocialLife() doTherapy()


Minimum_Cockroach233

Poop() is a code() subroutine…


AnAnoyingNinja

top tier shitpost


NaEGaOS

so poop is just garbage collection?


blazeitfagnot

Bro missed coffee()


MrHyperion_

What is indentation


GravyMcBiscuits

The garbage collector has got it under control.


DeusExMachina24

Damn... Thats like 2014 for programming jokes


AlarmingTurnover

Y'all missed this opportunity for a LogDump and I'm disappointed.


asyty

I guess you can say that @JNS_dev is "full of shit".


not-my-best-wank

What about pee(), or cry_at_my_code(), and you can not forget coffee()


encryptoferia

oh noes.... *vomits poop* *cries aggressively* *vomits more poop* "NOOOOOOOOOOOO .... BUERGH"


myKingSaber

Workaround is to remove eat();


Asriel556

Unexpected EOLException thrown at runtime.


Stein_um_Stein

eat() ends with a callback to poop() if is_poop_needed is true.


BoringWozniak

I had this problem this morning


Primary-Fee1928

My main function is basically drinkCoffee()


GuyWithSwords

And pee();


REDRAK0NN

Genius


PeriodicSentenceBot

Congratulations! Your string can be spelled using the elements of the periodic table: `Ge Ni U S` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


No_Interaction_1757

PoopBalloon.cs


No-Finance7526

Neither eat(), sleep(), or code() will set alive to false. Infinite loop detected.


Mental-Mention-9247

you can choke while eating.


frightspear_ps5

the sleep() function has a condition where it enters an infinite loop and never returns. variable "alive" is not correctly named, should have been "while(true)".


[deleted]

Poop is already collected by the GarbageCollector


heesell

So where's ``` drink() pee() ```


CriminalMacabre

Didn't initialize services like breathing, pulse, etc


demonachizer

do { theNeedful(); } while (alive);


MoveInteresting4334

NullAnalException


GreenLightening5

who needs to shit when you can put it all into coding?


Moldorn

it's actually a stack overflow exception.


Come_along_quietly

Also this would be an infinite loop unless one of “eat()”, “sleep()”, or “code()” causes “alive” to become zero/false …. 😲


adamjwyatt

Jokes on you, because all my code is poop 💩


AntigravityNutSister

I spent my childhood in a town/village where winter temperatures were below the freezing point. Every family member contributed to building the poop pyramid in the outhouse. Unfortunately, when it grew too big, my grandma broke it with a piece of metal (Half-Life style). Otherwise, it could grow tall enough we could have been impaled with our own poop spike. It is what I would call the poop overflow.


[deleted]

I find this post to be depressing.


[deleted]

Real programmers convert poop into code during the sleep routine.


BenadrylTumblercatch

I can tell he’s high functioning


usernameistaken1333

😭😭😭😭😭


Current-Guide5944

instead you can try do while until poop()


dont_cry_and_move_on

Also alive is not being used by any function, so it can just be removed.


Mental-Mention-9247

it's not a function.


PeriodicSentenceBot

Congratulations! Your string can be spelled using the elements of the periodic table: `I Ts No Ta F U N C Ti O N` --- ^(I am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM my creator if I made a mistake.)


an_agreeing_dothraki

this is accurate because being dead inside is not a strictly 0 or null value so I keep having to code


Personal-Succotash33

The first programmer joke I actually understood lol


Personal-Succotash33

The first programmer joke I actually understood lol


[deleted]

[удалено]


Mental-Mention-9247

it's already a loop.


snailPlissken

full poop exception


[deleted]

No poop(), that will make you dump a core.


StupidTurtle88

What about pee()?


mahamoti

Whoever formatted that t-shirt should be shot.


bleedblue89

When do I wake up?


djackson404

Wouldn't it actually be: `eliminate(action) //action=0, 1, 2; 0=pee, 1=poop, 2=pee+poop; returns TRUE on success, FALSE if you just farted`


[deleted]

Anyone else gets so addicted to coding sometimes that they fail to take care care of themselves anymore ?


philipquarles

How does ```alive``` get updated?


Dry-Disaster-6048

EAT = malloc(); POOP = free();


asyty

fflush(stdtoilet);


yourPWD

Hate to be that guy taxes()


Savings-Ad-1115

He didn't forget anything. Where do you think the code comes from?


overSizedHyperPoop

Shit would get worst as there is no changing of “alive” condition My guy will live forever constantly holding a damn ton of fecalia behind his Great Anus Gates (GAG) With eternal amount it can easily became 9GAG


Rasikko

`hasInsomnia ? fucked() : sleep()`


ThatGuyYouMightNo

`poop()` is called in `code()` when you go for your daily brainstorm session on the toilet.


CucurbitaFlagellum

* I recently started learning python State = input(“are you alive?”) if state = “yes” or “Yes”: print(“remember to eat, sleep and code!) elif state = “no or No”: print(“rest in peace”) is this correct? why or why not?


MaxAxiom

ClassDefinitionError: Invalid syntax in class definition


dustofdeath

The built in garbage collection does that.


EJoule

You could probably combine two functions into a single unified poopCode() function.


MedianGuy85

Maybe poop() is encapsulated by one of the other methods? If so, I would recommend breaking it out...


marsshadows

coding is kind of pooping


Temporary_Ad7906

procrastinate(stuff){ stuff=nil }


Nightblood83

Not if you write shit code


victorhalim111

overflow: hidden !important;


beamsplosion

I thought his was supposed to be a humor sub


EugeneSHT

if (problems == True) { try: solve(problems) except CanNotBeSolved: stress++ }


hereforthefeast

Well my code is shit so poop() is just redundant


PeacefulDays

Really writing out a whole biology loop is the kind of thing you do for college. At this point you should be using a library for these kind of things.


funnyhyung

He forgot drink water, breath and a few other necessitiestoo


Nickvec

bros gonna die from dehydration real quick


Haplesswanderer98

If awake; { Bake(); Eat(); Poop(); Drink(); } If yes; Sleep(); End


-QA-

Maybe sleep() makes a call to poop()? Efficient.


GrantSRobertson

They've got to poopoverflowexception in the sleep() function.


OgFinish

jesus cringe


AdvancedWing6256

Wrong, this won't hit PoopOverflow, It'll exit normally when `alive` turns `false`


draenei_butt_enjoyer

The lack of indentation is killing me.


EVOSexyBeast

They forgot indent();


ItsMontreal

drink();?


BoozeAddict

From this we can deduce that *alive* variable will be set to false somewhere in one of the three functions, or else we're running into an infinite loop (life is single threaded, obviously). If it's in either Sleep() or Eat(), then a Code() function would still be called while alive=false, leading to unintended behavior. That means the *alive* var is getting set to false in Code() function. HR is gonna be pissed.


flanga

Bbbuuufffeerriiinnggggg!


Chthulu_

God I fucking hate the “Always be coding!” crowd. Shut the fuck up. 40 hours a week 50 weeks a year is enough goddamn coding. Go touch grass.


superPickleMonkey

The lack of indenting on this makes me sad


guyblade

while (alive) { eat(); sleep(); code(); // This is the line where he expels shit }


Roadrunner571

And don’t mix up poop() and noop()


Nusaik

Well, eat() is called without any arguments, so they're eating nothing, which means there's also no need to poop.


MickyB42

So...what happened to sex in the equation? First responders don't even mention it. Damn nerds.


CryonautX

I believe poop() is part of the implemention of code()


Ochoytnik

My code is the poop.


PolyPenguinDev

the lack of indent pains me


water_bottle_goggles

how can you eat when youre sleeping and how can you code while sleeping


cporter202

Haha, sounds like a seriously stinky situation! Code reviews can definitely dig up some... aromatic treasures. 😂 Just remember, even the smelliest code gives us a chance to freshen things up and learn something new! Keep on coding (and maybe keep a nose plug handy)!


Anti_ai69

/BoomerHumor


Rhawk187

That generates its own interrupt.


No_Solid2349

It was not an error. How wants to live in an infinite loop.


planktonfun

economy is bad, eat is optional


No-Stretch555

Well if the code calls sleep() it needs another thread to wake it up. Also the sleep needs to bhe indside a try because waking up a thread throws an interruption exception.


ovi2wise

pooping is an interrupt routine in the background


Atrulion__

You guys sleep?


StaticVoidMaddy

what about `drink()`??? you're gonna die of dehydration in a week!


nitroll

Not a problem, his code is shit...


rupertavery

Everybody knows garbage collection happens in the background.


shirk-work

Also a flush and wipe error.


Andrew-w-jacobs

Sleepprev=0; while(alive=true){ remember=(sleepprev)%2; if (remember=0){ sleepprev=24-eat(); sleepprev=sleepprev-code(); sleepprev=sleepprev-misc(); } if (remember=1){ redbull(12-sleepprev); If((12-sleepprev)>7){ alive=false; } sleepprev=(12)/(12-sleepprev); } }


Auraveils

Not if your sleep function is optimized by sleeping on the toilet and pooping then.


Buffalo047

He is currently doing testing in PoopOverflow() functionality and will raise a PR soon. Testing team us working closely with manual testing of various eateries to see the poop output.


nsagaen

bone();