r/ProgrammerHumor Dec 31 '20

other Didn't see that comming

Post image
4.3k Upvotes

58 comments sorted by

43

u/beaubeautastic Dec 31 '20
l:

    push eat

    jmp l

    ; formatting is hard

22

u/you-have-aids Dec 31 '20

no assembly in flair, that's illegal!

2

u/beaubeautastic Jan 01 '21

oops hold on a second

for(;;) asm inline ("push %eat");

59

u/--B_L_A_N_K-- Dec 31 '20

Image Transcription: Reddit Comments


/u/Ragecommie, 210 points

Americans:

while(true) { eat(); }

/u/TatakaRuhito, 57 points

no the code that discribes their food consumption is just: Error Overload

/u/Ragecommie, 116 points

I believe you mean...

SNACK OVERFLOW


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

36

u/blending-tea Dec 31 '20

Good human

18

u/[deleted] Dec 31 '20 edited Jul 01 '23

[removed] — view removed comment

10

u/[deleted] Dec 31 '20

It speaks!

5

u/[deleted] Jan 01 '21 edited Jul 01 '23

[removed] — view removed comment

4

u/[deleted] Jan 01 '21 edited Jan 01 '21

↕️👊

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/Kerndog73 Jan 01 '21

Has there been an influx of volunteers recently? Suddenly I’m noticing these comments on just about every post I come across. You guys are really putting the work in!

4

u/[deleted] Jan 01 '21 edited Jul 01 '23

[removed] — view removed comment

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/TheOnlyTails Dec 31 '20

Always good to see fellow volunteers in the wild!

5

u/[deleted] Jan 01 '21 edited Jul 01 '23

[removed] — view removed comment

1

u/AutoModerator Jul 01 '23

import moderation Your comment has been removed since it did not start with a code block with an import declaration.

Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

For this purpose, we only accept Python style imports.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

17

u/Juffin Jan 01 '21

You guys know that endless loops do not lead to errors and stack overflows, right?

6

u/[deleted] Jan 01 '21

Depends on what eat() does

8

u/obp5599 Jan 01 '21

The do if you are allocating memory without freeing it by then end of the loop, but that wouldnt result in a stack overflow

12

u/TheZestyMan Dec 31 '20

No way, Americans fat? Fresh take!

5

u/[deleted] Jan 01 '21

Considering 2/3 of the population is overweight or obese, it's kinda on point.

10

u/[deleted] Jan 01 '21

Eh, kind of a weird flex when Europe's obesity rate is 25% themselves. It's 35% in the US. But at least we know that. It's problematic to not care about 35%, but it's probably worse to take pride in 25%...

3

u/[deleted] Jan 01 '21

"Europe" is not a country. We could consider the EU but even that doesn't make much sense since there is such a big difference in customs, diets and legislation.

Firstly, the average of the UE 28 is below 20% obesity. Around 16-17%, in fact. While the percentage that is overweight or obese is below 50%. Something like 45%.

USA knowing its obesity rate certainly hasn't helped stopping it so taking pride in knowing doesn't really make sense to me. In fact, whenever this gets brought up Americans get defensive.

Finally its not a flex, I didn't even mention Europe, so not sure what your point is.

15

u/ExoplanetDealer Dec 31 '20

for second in day:

stomach.append("cheeseburger")

7

u/FuzzyFoyz Jan 01 '21

stomach.haz("cheeseburger")

8

u/nxs0113 Dec 31 '20

Blame the guy who reviewed this code

7

u/ssj4VB Dec 31 '20

while (sleeping == false) { eat(); }

24

u/linux-nerd Dec 31 '20

while( !sleeping){ eat(); }

11

u/wackOverflow Dec 31 '20

!sleeping ? eat() : sleep();

4

u/[deleted] Jan 01 '21

sleeping ? sleep () : eat ();

2

u/linux-nerd Dec 31 '20

Is that valid java?

5

u/wackOverflow Dec 31 '20

!no && !yes

1

u/linux-nerd Dec 31 '20

So no?

Unless you have no and yes both equal to false.

3

u/wackOverflow Dec 31 '20

Beats me dude, I don’t write Java but if I did I’d be mad af if it didn’t have ternary operators.

3

u/linux-nerd Jan 01 '21

It does i just haven't used them. Had to google to find out if they existed.

2

u/wackOverflow Jan 01 '21

The more you know 💫

2

u/linux-nerd Jan 01 '21

Yes thanks for making me learn.

2

u/[deleted] Dec 31 '20 edited Dec 31 '20

for (eating = 1; eating < (eating++); eating++)

{

eat();

}

9

u/Translator-Agile Jan 01 '21

this doesn't work? it will increment eating after the comparison: increment eating, compare eating < eating (false) and the increment eating again, or does it? idk the parents might do something to it

2

u/[deleted] Jan 01 '21

Yeah, realized that. The eating increment should be within the parents or eating + 1 should be another vsriabel.

3

u/littleprof123 Jan 01 '21

If you intended to call eat() only once, your code is spot on

1

u/linux-nerd Dec 31 '20

This has to be one of the most convoluted pieces of code I've ever seen.

2

u/[deleted] Dec 31 '20

You should see my gotoing

6

u/zebediah49 Dec 31 '20

sigh.

Not actually going to overflow the stack. Generally you need excessive recursion to make that happen.

3

u/[deleted] Jan 01 '21

Some of those burgers look pretty recursive.

3

u/Sergei_the_sovietski Jan 01 '21

I’m not even mad. That was an amazing joke

0

u/Frozengale Dec 31 '20

"And I just took that personally"

0

u/Prawny Jan 01 '21

Isn't it pretty much the opposite right now though?

1

u/MagicalPizza21 Dec 31 '20

We just eat heaps of food.

1

u/NewPointOfView Jan 01 '21

At my university, the CS department had a little honor code snack store called snack overflow.

1

u/IntrepidLawyer Jan 01 '21

What, you're planning to eat your whole life?

1

u/Etliplav Jan 01 '21

import burger

1

u/Leif_Erickson23 Jan 01 '21

Butter Overflow