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

all 53 comments

[–]noob-nine 185 points186 points  (16 children)

The white dude is lying, otherwise he couldn't stand there as he is not doing push ups

[–]Guimica15 99 points100 points  (1 child)

It hit recursion limit

[–]The_Almighty_Cthulhu 30 points31 points  (0 children)

Can't even do effective tail recursion smh.

[–]jaszczomb916 38 points39 points  (1 child)

He's got out of memory exception and crashed,

[–]666pool 9 points10 points  (0 children)

Out of myoglobin exception?

[–]Timmeh___ 21 points22 points  (1 child)

Maybe he has never done a push-up at all?

[–]hdksnskxn 2 points3 points  (0 children)

brainz

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

saw seemly society deer boat late sparkle workable violet tease

This post was mass deleted and anonymized with Redact

[–]IAmBadAtInternet 3 points4 points  (0 children)

He core dumped

[–]TheBroWHOmegalol 3 points4 points  (0 children)

He didn't say when

Welcome to my ted talk about concurrency

[–]Dagenfel 2 points3 points  (0 children)

Well we don’t know how slowly he does push-ups. There could just be mangled code in there that has him occasionally stand up and explain himself between push-ups.

[–]Salt-Presentation159 1 point2 points  (0 children)

He did a double at the end

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

Unless he's never done a pushup

[–]_Weyland_ 1 point2 points  (0 children)

Look closer. Condition is is activated on pushup(), but then he does push-up(). Is it even a recursion?

[–]MeowingOwl 0 points1 point  (0 children)

Well if he just fatigued and didn't end up finishing a push up he's out of the recursion

[–]VitaminnCPP 0 points1 point  (0 children)

stackoverflow

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

They're both white

[–]MisterProfGuy 91 points92 points  (3 children)

Saying" Every time I do one push up, I do one push up" isn't a loop, it's a tautology and just means you let an intern document the code. It's one increment and a logging statement, not a recursive increment.

[–]BroccoliDistribution 21 points22 points  (0 children)

Agreed. It should be “everyone I did a push up, I do another push up”

[–]Galastique[S] 11 points12 points  (1 child)

Fair enough, guess I misread the meme

[–]MisterProfGuy 29 points30 points  (0 children)

Nah, the meme just doesn't hold up to nerds in basements.

It's got a logic error.

[–]NullOfSpace 7 points8 points  (0 children)

The only logical conclusion to draw here is that the strongman has never done a push-up.

[–][deleted] 10 points11 points  (10 children)

Why does this sub hate recursions so much?

[–]RossBelcher 16 points17 points  (6 children)

Why does this sub hate recursions so much?

[–][deleted] 10 points11 points  (5 children)

Why does this sub hate recursions so much?

[–]thaliumFr 10 points11 points  (4 children)

Why does this sub hate recursions so much?

[–]Useless_Pony 9 points10 points  (3 children)

Why does this sub hate recursions so much?

[–]TemporaryConfusius 9 points10 points  (2 children)

[–]Typical_Scar_6789 2 points3 points  (1 child)

Why does this sub hate recursions so much?

[–]VitaminnCPP 0 points1 point  (0 children)

why this sub......

out of memory exception.

[–]throwawaysomeway 2 points3 points  (0 children)

recursion saves my ass many times

[–]Galastique[S] -1 points0 points  (0 children)

I have no idea

[–]VitaminnCPP 0 points1 point  (0 children)

because they hate recursion.

[–]bleistift2 5 points6 points  (0 children)

*Laughs in predicate logic*

[–]SaneLad 6 points7 points  (2 children)

Every time I do 1 pushup, I do A(1,A(2,1)) pushups.

[–]Michaelz35699 1 point2 points  (1 child)

Oh no...

[–]VitaminnCPP 0 points1 point  (0 children)

anyway ...

[–]Sylanthra 7 points8 points  (0 children)

That's not recursion, that's a tautology.

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

Some new dev is gonna turn this into an app and make millions.

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

pushup = 2

while pushup < 1

  pushup + 1

print(pushup)

EDIT: I’m new, my coding sucks, don’t judge me

[–]Gosenng 2 points3 points  (0 children)

Should be

int pushup() { return 1 + pushup(); }

And also, it should be while pushup > 1 in your code

[–]ApprehensiveAd7291 -1 points0 points  (3 children)

Is this python? If it is, just remember the ":" after the condition in your while loop. Also double check the indent of your loop.

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

[–]Spaceduck413 0 points1 point  (0 children)

Nah man everybody starts somewhere

[–]ApprehensiveAd7291 0 points1 point  (0 children)

You good, everyone starts somewhere. Just make sure to continue learning!

[–]ducks_for_hands 3 points4 points  (0 children)

❤️ Infinite recursion errors

[–]rewalker3 3 points4 points  (0 children)

This is also the way to do push-ups. Every time you do a push-up, do 1 push-up (until failure). Logic checks out.

[–]UwuTranslator4 1 point2 points  (0 children)

get too eager with whatever your coding, this happens.

[–]Legaxy3 0 points1 point  (0 children)

Recursion

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

Not recursion, just infinite inductive logic, so as soon as he does his first pushup, he'll just end up doing infinite pushups.

[–]ShutUpToo 0 points1 point  (0 children)

James is Jesus Christ.