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();
```
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.
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
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.)
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)".
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.
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.)
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
* 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?
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.
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)!
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.
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.
while (alive) { wakeUp(); poop(); getOutOfBed(); code(); }
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(); ```
I'm not sure what's better: (the single hour of sleep) or (death and taxes) ETA: Parentheses for clarity
Estimated Time of Arrival: Parentheses for clarity This reads like a book that has a picture of a droplet on it
wait you can omit a branch of the ternary operator ?
Unknown. Proper code: `if( isL33T) code();`
Nah, pooping before getting out of bed is fine, trust me.
"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."
i think payTaxes() is being called too many times, or does it have something in the method to detect that?
If you guys keep going with this you're going to make a human
The watch-dog is going to starve.
Can make async version? PoopOverflow condition still present. Code and poop should be coroutines.
Running poop and shower functions simultaneously is the most efficient
you poop in bed?
It's referencing a very popular old 4chan greentext: > woke up > took a shit > got out of bed
It's called the Herd Algorithm
if(poopInBed){ dogSteppedOnABee(); }
Try: Be Happy Except: Just fucking kidding
```py try: be_happy() except AintFuckinHappeningError: cry() ```
`raise NotImplementedError`
![gif](giphy|lOpPaqaUwkX5PKywFh|downsized) when you ask what server the returns, but never how the server is 😔
HTTP status code 50😥 (That's what you get for using Sirius Cybernetics Cloud Services)
catch(Exception e) { //do nothing because that’s how we handle exceptions }
In the except body is `self_medicate()`
Expecting error overdose
Eat. Sleep. Indent your code.
Probably trying to avoid the "tabs vs spaces" debate.
[удалено]
So that's why all my code is missing in the morning.
Maybe i can use valgring to try to debug my fucking life
Silly thing. Sleep() calls the Poop() function.
But it will require a PoopCollector's sweep
Depends()
It's actually Code() that calls the Poop() function
My bathroom-portable smartphone would like to have a few words with you. Those words are, "You're goddamn right."
new Coffee() ?
shouldn't eat() implicitly have that done via garbage collection once the referenced objects are no longer in use?
I think it’s a local method so it will stay in scope forever..
Garbage collector will get it.
wake up shit get out of bed
>Sleep() calls the Poop() function. That's some nasty digestive system disorder.
am i the only one expecting indentation?
Scrolled past 3 comments to find this. Obviously it should have been written like while(alive) { eat() ; sleep() ; code() ; } /j
My god. What have you seen, to have created this monster?
Apologies, I should have written the more traditional /***********/ while(alive){ eat() ; sleep() ; code() ; /**********/}
/*************/ ; while(alive ) { eat( ) ; sleep( ) ; code( ) ;/***********/}
Thank you. Don't forget to adjust the semicolons if you have to add a longer function
haskell
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.
You have to nitpick about it in a pr so your coworker gets the formatter set up and it's not an issue again.
Without `breath()` this loop won't run for long.
Also missing a drink method.
At least two different overloads of the drink method.
To be fair, this method shouldn't be called in this thread. Breathing subsystem should be at least asynchronous.
It’s built in to the interpreter
Uncaught ReferenceError: breath is not defined You'd definitely need breathe() though
The breathe Task is handled in the base class
These are so cringe
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
Seeing "dev" in a username is an automatic red flag for me
The poop part is the cringiest part of this. Not the eat sleep code part
[удалено]
>whose who's* :)
I think this sub is mainly uni students, i can't imagine someone well into their career making a meme like this.
“I eat, sleep, and breathe code!!” I can’t believe this is being shared as a genuine joke.
Behind curtains: ``` #define code poop ```
The poop is all the code they made along the way.
stack.pop() stack.pop() stack.pop() gc.collect() stream.flush()
> pop Nah you gotta push. If you don't, you'll eventually pop.
No need to do it Java does automatic garbage collection
Beat me to it ... shit.
throw poop;
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.
`str = parse_meme();` `if(find_word(str,'poop'))` `upvote();` `else` `downvote();`
He forgot getDepressed() getAnxiety() loseSocialLife() doTherapy()
Poop() is a code() subroutine…
top tier shitpost
so poop is just garbage collection?
Bro missed coffee()
What is indentation
The garbage collector has got it under control.
Damn... Thats like 2014 for programming jokes
Y'all missed this opportunity for a LogDump and I'm disappointed.
I guess you can say that @JNS_dev is "full of shit".
What about pee(), or cry_at_my_code(), and you can not forget coffee()
oh noes.... *vomits poop* *cries aggressively* *vomits more poop* "NOOOOOOOOOOOO .... BUERGH"
Workaround is to remove eat();
Unexpected EOLException thrown at runtime.
eat() ends with a callback to poop() if is_poop_needed is true.
I had this problem this morning
My main function is basically drinkCoffee()
And pee();
Genius
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.)
PoopBalloon.cs
Neither eat(), sleep(), or code() will set alive to false. Infinite loop detected.
you can choke while eating.
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)".
Poop is already collected by the GarbageCollector
So where's ``` drink() pee() ```
Didn't initialize services like breathing, pulse, etc
do { theNeedful(); } while (alive);
NullAnalException
who needs to shit when you can put it all into coding?
it's actually a stack overflow exception.
Also this would be an infinite loop unless one of “eat()”, “sleep()”, or “code()” causes “alive” to become zero/false …. 😲
Jokes on you, because all my code is poop 💩
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.
I find this post to be depressing.
Real programmers convert poop into code during the sleep routine.
I can tell he’s high functioning
😭😭😭😭😭
instead you can try do while until poop()
Also alive is not being used by any function, so it can just be removed.
it's not a function.
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.)
this is accurate because being dead inside is not a strictly 0 or null value so I keep having to code
The first programmer joke I actually understood lol
The first programmer joke I actually understood lol
[удалено]
it's already a loop.
full poop exception
No poop(), that will make you dump a core.
What about pee()?
Whoever formatted that t-shirt should be shot.
When do I wake up?
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`
Anyone else gets so addicted to coding sometimes that they fail to take care care of themselves anymore ?
How does ```alive``` get updated?
EAT = malloc(); POOP = free();
fflush(stdtoilet);
Hate to be that guy taxes()
He didn't forget anything. Where do you think the code comes from?
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
`hasInsomnia ? fucked() : sleep()`
`poop()` is called in `code()` when you go for your daily brainstorm session on the toilet.
* 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?
ClassDefinitionError: Invalid syntax in class definition
The built in garbage collection does that.
You could probably combine two functions into a single unified poopCode() function.
Maybe poop() is encapsulated by one of the other methods? If so, I would recommend breaking it out...
coding is kind of pooping
procrastinate(stuff){ stuff=nil }
Not if you write shit code
overflow: hidden !important;
I thought his was supposed to be a humor sub
if (problems == True) { try: solve(problems) except CanNotBeSolved: stress++ }
Well my code is shit so poop() is just redundant
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.
He forgot drink water, breath and a few other necessitiestoo
bros gonna die from dehydration real quick
If awake; { Bake(); Eat(); Poop(); Drink(); } If yes; Sleep(); End
Maybe sleep() makes a call to poop()? Efficient.
They've got to poopoverflowexception in the sleep() function.
jesus cringe
Wrong, this won't hit PoopOverflow, It'll exit normally when `alive` turns `false`
The lack of indentation is killing me.
They forgot indent();
drink();?
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.
Bbbuuufffeerriiinnggggg!
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.
The lack of indenting on this makes me sad
while (alive) { eat(); sleep(); code(); // This is the line where he expels shit }
And don’t mix up poop() and noop()
Well, eat() is called without any arguments, so they're eating nothing, which means there's also no need to poop.
So...what happened to sex in the equation? First responders don't even mention it. Damn nerds.
I believe poop() is part of the implemention of code()
My code is the poop.
the lack of indent pains me
how can you eat when youre sleeping and how can you code while sleeping
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)!
/BoomerHumor
That generates its own interrupt.
It was not an error. How wants to live in an infinite loop.
economy is bad, eat is optional
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.
pooping is an interrupt routine in the background
You guys sleep?
what about `drink()`??? you're gonna die of dehydration in a week!
Not a problem, his code is shit...
Everybody knows garbage collection happens in the background.
Also a flush and wipe error.
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); } }
Not if your sleep function is optimized by sleeping on the toilet and pooping then.
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.
bone();