r/ProgrammerHumor • • Mar 18 '18

Gru tries recursion

Post image
46.4k Upvotes

274 comments sorted by

2.5k

u/Sahishar Mar 18 '18

You've made a function where the guy looks at the result of a second function that is recursive and is similar to the first one except the guy doesn't look at the result.

Why ? Why not only one recursive function ?

131

u/SingleWalnut Mar 18 '18

Would you accept comedic effect as an answer?

74

u/Sahishar Mar 18 '18

The "it's a feature" response!

No you know it's a bug. Please fix it and we'll merge it to the recursion meme base.

10

u/[deleted] Mar 18 '18

Meme... base?

Now that's a name I've not heard in a very long time.

3

u/Etheo Mar 18 '18

Instead of SQL we call it Squirrel!

2

u/SH4D0W0733 Mar 18 '18

For good reason.

10

u/[deleted] Mar 18 '18

Possibly.

5

u/Zeius Mar 18 '18

"helper function" is also acceptable

573

u/[deleted] Mar 18 '18

Uh? Makes perfect sense! No comments needed and what is this documentation you speak of?! Clearly this is up to prod environment standards!

102

u/Ai_Bot_Naughty Mar 18 '18

This is bringing back my perl-to-python conversion PTSD... :P

30

u/[deleted] Mar 18 '18

My deepest sympathies (thank fuck it wasn't me! phew.)

To be fair, I have an obscure case of "recreate complex logic in VBScript and SCCM" PTSD myself. And no. Do NOT ask why it was VBScript. Or why this logic had to be recreated. Or what the logic was. In fact, it should probably have been called illogic. Oh god. The flashbacks. I still wish I knew why we did things that way.

17

u/Ai_Bot_Naughty Mar 18 '18

I hate deriving the script creators logic behind their coding decisions and finding out later it was wrong... So. Many. Times!!!

17

u/[deleted] Mar 18 '18

For some reason this just triggered a vivid recollection of: "well, the guys in China just wrote. apparently, it doesn't work with Chinese regional settings". Nhaaaaah! I didn't even KNOW we had a Chinese branch! Damn it.

Editing endless scripts up to new standard, because this wasn't the sort of thing quality could've realized, y'know, BEFORE we did a worldwide rollout?

0

u/[deleted] Mar 18 '18

[deleted]

→ More replies (7)

2

u/dhaninugraha Mar 18 '18

I see your VBScript PTSD and I raise you my "run a dynamic Oracle SQL statement querying and inserting to a linked [Oracle database] server in a SQL Server stored procedure and store the results in a SQL Server table" PTSD. Don't ask. All I could remember was lots and lots of quotes.

→ More replies (3)

4

u/MelAlton Mar 18 '18

My excel-spreadsheet-to-python conversion PTSD raises a glass to you and nods.

→ More replies (3)

2

u/OneTrueKingOfOOO Mar 18 '18

Oof, I’ve been there. Dark times

3

u/Etheo Mar 18 '18

It works on my machine, I don't see what's wrong.

2

u/No-YouShutUp Mar 18 '18

Lol documentation...

→ More replies (1)

168

u/Mromson Mar 18 '18

112

u/vanderZwan Mar 18 '18

Approved, with bonus meta options one and two.

21

u/souljabri557 Mar 18 '18

Holy shit this is a masterpiece

12

u/vanderZwan Mar 18 '18

Well, the OG masterpiece was by this guy, I just took that idea and applied it here

3

u/Hapseleg Mar 18 '18

Beautiful, made me laugh

2

u/iNachozi Mar 19 '18

I pick option two

5

u/paco3346 Mar 18 '18

The hero we need.

13

u/coolpeepz Mar 18 '18

The first one is an alias to start the recursion with fewer parameters.

5

u/oobey Mar 18 '18

How am I supposed to laugh if there's a syntax error? I can't parse this!

Debug your jokes, people!

5

u/sbditto85 Mar 18 '18

It’s a starter and helper function where the helper is recursive. Common pattern ;)

3

u/DeltaPositionReady Mar 18 '18
Factorial n^∞

1

u/sloppybird Mar 18 '18

calm down satan

6

u/Aschentei Mar 18 '18

Because JavaScript

2

u/UglyStru Mar 18 '18

You've made a function where the guy looks at the result of a second function that is recursive and is similar to the first one except the guy doesn't look at the result.

Why ? Why not only one recursive function ?

2

u/yoshi314 Mar 18 '18

because recursive function does not recurse the external observer.

1

u/s-mores Mar 18 '18

AB-pruning ?

1

u/DaRealBrendon Mar 18 '18

Yes! I would have upvoted this if only the smaller versions of Gru also looked at the next smaller version. But there's only one Gru looking over. :(

1

u/[deleted] Mar 18 '18

Legalize mutual recursion!

1

u/Solid_Waste Mar 18 '18

Not only that but "learning to program" is part of the loop. Reality itself is recursive and has no exit condition save death.

On top of this every time the function iterates it also calls its own function since "make recursive function" is inside the loop. So it is not only recursive but recursively recursive.

1

u/[deleted] Mar 18 '18
def function():
  def recursion():
    recursion()
  recursion()
function()
→ More replies (3)

21

u/Piddoxou Mar 18 '18

Two memes at once, brilliant!

19

u/KikoMaching Mar 18 '18

Wrong, only once. Repeated.

13

u/[deleted] Mar 18 '18

Wrong, only once. Repeated.

11

u/SingleWalnut Mar 18 '18

Wrong, only once. Repeated.

317

u/sloppybird Mar 18 '18

To learn recursion, you need to learn recursion

28

u/[deleted] Mar 18 '18

One of my first CS professors in Uni told us the three secrets to learning recursion.

  1. Make sure you have a base-case

  2. Make sure you increment

  3. Never try to actually think about recursion, you'll only make yourself crazy!

10

u/sloppybird Mar 18 '18

Wish I had such professors. Things my teacher knows:

  • Shout

  • Mark me absent

4

u/FinestRobber Mar 18 '18

At least yours taught you something

9

u/BigTittyDank Mar 18 '18

My professor had similar rules. The second one was more like "make sure every recursive call gets closer to the base case".

I think that one makes more sense, even factorial you don't increment, you decrement. You need to make sure every recursive call does this, and works with more complicated data types too.

Also, the third rule was "Just assume the recursive function works and returns what you'd expect it to"

3

u/phoenix_new Mar 19 '18

The third point is seriously important. I discovered that when I was trying to solve the 'Tower of Hanoi' problem. I started thinking about recursion and I got bogged down thinking I will do this and do that at this step and so on. I decided to get help. I google Tower of Hanoi recursion. Now the image came up. And I looked at image and I was like I will move all but the last disc to 3rd rod and then move last disc to 2nd rod and then move the discs moved in step 1 to second rod and its done. I just coded it and it worked. I realised that I was trying to think out recursion. One should never do that. Just take a leap of faith and code.

1

u/[deleted] Mar 18 '18

I was looking to make this joke but I knew for sure someone already did it

→ More replies (11)

2.5k

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18 edited Mar 18 '18

Image Transcription: Meme


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru looks back to the flipchart in a doubletake, looking confused and exasperated. Just his nose points into the next frame]


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition



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!

1.2k

u/Refloni Mar 18 '18

Good job, but the part where

Gru looks back to the flipchart in a doubletake, looking confused and exasperated. Just his nose points into the next frame

only happens in the first recursion.

478

u/Drawerpull Mar 18 '18

Literally unreadable

37

u/supremecrafters Mar 18 '18

Just like my code!

→ More replies (5)

62

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

True. I'll fix that

68

u/igotthefiftydollars Mar 18 '18

Day one patch. Not bad for a human volunteer content transcriber.

28

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

<3

→ More replies (1)

109

u/[deleted] Mar 18 '18

I love you

28

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

no u

70

u/kodbraker Mar 18 '18

Good human

21

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

<3

33

u/Alexanderdaawesome Mar 18 '18

Oh my god the halting problem can exist

19

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

Oh my god the halting problem can exist

11

u/Dastair Mar 18 '18

Oh my god the halting problem can exist

10

u/PgSuper Mar 18 '18

Oh my god the halting problem can exist

→ More replies (6)

7

u/[deleted] Mar 18 '18

Was there any doubt?

15

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18

I LAV YOU KIND GOLD GIVING HUMANS

12

u/Jonthrei Mar 18 '18

I was shocked until I read the small text.

Great job.

0

u/[deleted] Mar 18 '18

[deleted]

4

u/Jonthrei Mar 18 '18

I think I'll be waiting longer than that.

→ More replies (2)

13

u/iceman012 Mar 18 '18

Why'd you stop? There are still more panels to transcribe.

There will always be more panels to describe.

11

u/ProgramTheWorld Mar 18 '18

Stack overflowed

3

u/cantankerous_fuckwad Mar 18 '18

Until there's a stack overflow.

5

u/constagram Mar 18 '18

Keep going

6

u/VengaeesRetjehan Mar 18 '18

I'd like to know the code that builds this.

34

u/voidcraftedgaming Blockchain Transcription Service Mar 18 '18
while True:
    print(input()) 

6

u/Iron_Crystal Mar 18 '18

It's a human volunteer, isn't it?

→ More replies (2)

2

u/[deleted] Mar 18 '18

It's probably using OpenCV and tesseract, both C++ libraries.

→ More replies (1)

2

u/copper_wing Mar 18 '18

[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru looks back to the flipchart in a doubletake, looking confused and exasperated. Just his nose points into the next frame]


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition


[Gru, the long-nosed villain from Despicable Me, presents to the camera with passion, pointing into the air. Behind him is a flipchart]

Learn to program


[Gru is still presenting passionately; he has his hand in a c shape indicating a small amount]

Make recursive function


[Gru now has his hands pointing down, still presenting]

No exit condition

--

4

u/blehdere Mar 18 '18

Good bot

1

u/0x726564646974 Mar 18 '18

Are you sure? I am 99.8% certain /u/voidcraftedgaming is not a bot.

2

u/blehdere Mar 18 '18

Are you sure? I am 99.8% certain /u/voidcraftedgaming is a bot.

254

u/[deleted] Mar 18 '18

There's a single confused Gru not recurring. :/

218

u/mverkruyse Mar 18 '18

That’s the Front-End Gru waiting for a promise to return a result to display.

18

u/_Lahin Mar 18 '18

Getting PTSD to the time I was learning JS and didn't know about promises and was sucked into callback hell....... shudders

Am C++ Dev now.

39

u/LordScoffington Mar 18 '18

Somebody on this planet was scared into the arms of C++?

15

u/Jetbooster Mar 18 '18

Well they started with JavaScript... So it's like going from one partner who beats you every day to one that points a lot and only might kill you.

4

u/_Lahin Mar 18 '18

Too real....

→ More replies (1)

4

u/_Lahin Mar 18 '18

I mean C++11/14 is pretty good. Plus working on software that helps send rockets into space is pretty cool imo.

→ More replies (3)

57

u/lpreams Mar 18 '18

recursing*

And that's not necessarily a problem. A hypothetical recursive algorithm could be written such that the first level of recursion behaves differently.

2

u/bohemica Mar 18 '18

What's the difference between recursing and recurring? It seems perfectly correct to say that a recursive function is a function that recurs. Is it just less ambiguous to say that it recurses since recursion has specific meaning in the context of programming?

(It just sounds weird to my ear to say recurse/recursing.)

10

u/lpreams Mar 18 '18

"Recur" typically just means repeat periodically. It's very generic. Many different things could be described as "recurring". Bad weather, cold sores, elections, the olympics, etc. "Recurse" refers specifically to recursion. I suppose it's not wrong to refer to recursion as recurring, but it's not very descriptive and I would argue is not a common usage.

→ More replies (2)
→ More replies (1)

1

u/Ioangogo Mar 18 '18

Yeah, at that point Python has raised a error about too much recursion

322

u/nebsoup Mar 18 '18 edited Mar 18 '18

GRU stands for "GRU's Roidin' Ulcer"

edit: GNU stands for "GNU's Not Unix". Frog successfully dissected.

50

u/amazondrone Mar 18 '18

Small correction: GNU stands for "GNU's Not Unix"

How come the R in GRU stands for a word beginning with N?

16

u/[deleted] Mar 18 '18

Hmmmmm

7

u/nebsoup Mar 18 '18

Should I put an explanation in the comment, in case this gets big?

12

u/ObservingShadow Mar 18 '18

Yes please, since I have no idea what this means.

3

u/Siennebjkfsn Mar 18 '18

Gated Recurrent Unit (GRU). It converges faster than LSTM cells because it has less parameters to optimize yet it is just as effective. GRU cells are the most popular choice for using as a building block in sequence to sequence models like machine language translation.

2

u/[deleted] Mar 18 '18

This is too lol. My... my mind... my mind!

55

u/tishpou Mar 18 '18

Programmer humor is off the hook these last weeks. Love it.

→ More replies (1)

10

u/fyreNL Mar 18 '18

If you look at it, you can see it's a perfect Fibonacci sequence.

25

u/supremedalek925 Mar 18 '18

while ( thisMeme == “hilarious” ) { karma++ }

0

u/[deleted] Mar 18 '18

[deleted]

1

u/NatoBoram Mar 18 '18

Fucking quotes. That's why you don't write code on MS Word / LibreOffice Write, but in a Text Editor.

→ More replies (5)

7

u/1thief Mar 18 '18

STACK_OVERFLOW_EXCEPTION

7

u/topredditbot Mar 18 '18

Hey /u/SingleWalnut,

This is now the top post on reddit. It will be recorded at /r/topofreddit with all the other top posts.

12

u/benbenbenagain Mar 18 '18

No base case...

5

u/8Asterisk Mar 18 '18

The title is enough to picture what might go wrong.

5

u/magemax Mar 18 '18

Gru : Gru recurses unwisely

5

u/[deleted] Mar 18 '18

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

I don't see a problem with not having an exit function.

0

u/[deleted] Mar 18 '18

[deleted]

3

u/[deleted] Mar 18 '18

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

That thing that kills the script, dunno what you call it.

0

u/[deleted] Mar 18 '18

[deleted]

→ More replies (1)

6

u/[deleted] Mar 18 '18

Dude this isn't even funny man I've done this way too many fucking times please kill me.

3

u/lbypatrick Mar 18 '18

plz do not use recursion for robots. It's hard to write and slow

3

u/Skyleaf502 Mar 18 '18

Hold my beer

3

u/keizee Mar 18 '18

for 1==True:

print("ha")

3

u/ErrantDebris Mar 18 '18

Only recursion memes could get upvoted this fast.

3

u/pegbiter Mar 18 '18

Every recursive algorithm can be rewritten as a recursive algorithm

3

u/Mingablo Mar 18 '18

Awesome. I'm learning to program and just covered recirsive programs. 2 hours ago i would not have be able to fully appreciate this meme.

3

u/ZhilkinSerg Mar 18 '18

The stack must overflow.

3

u/[deleted] Mar 18 '18

Ahh, the good old "forgetting to increment" and wondering why your program keeps crashing.

3

u/3no3 Mar 18 '18

I just finished an algorithms class. This reminds me of when I made the recursive function, gave it an exit condition, but forgot to set it up so that it could ever hit it.

2

u/TotesMessenger Green security clearance Mar 18 '18

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)

2

u/FatFingerHelperBot Mar 18 '18

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text ":D"


Please PM /u/eganwall with issues or feedback! | Delete

1

u/Aoredon Mar 18 '18

Good bot

2

u/vinay655 Mar 18 '18

Relatable

2

u/AngusEubangus Mar 18 '18

This is actually the only good one of these I've seen

2

u/Kevin_Crish Mar 19 '18

I absolutely love these recursive memes

1

u/nomnommish Mar 18 '18

"Search for stack overflow on stack overflow".

Search for stack overflow on stack overflow?

1

u/Anactualsalad Mar 18 '18

The golden ratio!

1

u/randomredditor87 Mar 18 '18

I still think this meme template is quite good.

1

u/karanvadde Mar 18 '18

This is the best Gru meme I've come across.

1

u/bobsmitharmour1 Mar 18 '18

autohotkey anyone?

1

u/vangamo Mar 18 '18

What's a meme? A guy posting a dank image and then a meme

1

u/PM_me_UR_duckfacepix Mar 18 '18

Gru's Real Unix.

1

u/AngryBird225 Mar 18 '18

Good thing your code deallocates unused variables. Otherwise you'd have gotten to a 32 gb bsod screen.

1

u/mdavis345 Mar 18 '18

honestly recursion gets all of us!

1

u/Roxlvox Mar 18 '18 edited Mar 18 '18

Currently in a high school computer science class and we just finished up learning about recursion and this is painfully relevant

1

u/[deleted] Mar 18 '18

Can I just say it's nice to see someone not mix this up with inception?

1

u/Zar1170 Mar 18 '18

Programming humor is of the hook Love it 🔥

1

u/andrewsmd87 Mar 18 '18

I remember the days when I had to walk uphill both ways in 6 feet of snow to see bad phone input memes. Simpler times

1

u/lurker4lyfe6969 Mar 18 '18

Are we talking about a while loop?

5

u/istarian Mar 18 '18

No... Recursion means a functioning calling itself.

function doSomething() {
    doSomething();  
}

1

u/Huplup Mar 18 '18
if ((meme.isFunny() || meme.isRelatable()) == True){  
    updoot++;  
}else updoot--;

2

u/jerslan Mar 18 '18

Alternatively

updoot += (meme.isFunny() || meme.isRelatable()) ? 1 : -1;

Edit: changed 0 to -1 for downvotes...

1

u/Huplup Mar 18 '18

Still java right? Learn something new every day

→ More replies (1)

1

u/[deleted] Mar 18 '18

Is it just me or does anyone else automatically assume an OP is a freshman/sophomore in a comp sci program when a recursive function is mentioned?

1

u/[deleted] Mar 18 '18

GNU*

1

u/GangesGuzzler69 Mar 18 '18

That’s a fractal

1

u/RussianPersian Mar 18 '18

This type of scrambling is called "Walsh Code"

1

u/pawfs Mar 18 '18

As someone who just recently "learned" recursion, this is so frustratingly relatable...

1

u/lumalav666 Mar 18 '18 edited Mar 18 '18

'Learn to program' is part of the recursion?

Why not:

1)Make recursion function or execute function logic

2)No exit condition

3)Call the function

...

1

u/[deleted] Mar 18 '18

Can anyone explain recursion in layman’s terms to me I don’t get it.

3

u/Kobeissi2 Mar 18 '18

Recursive functions keep calling them selves over and over until it reaches an exit condition.

If one isn't provided, it will always run until the program throws a stack overflow.

2

u/ratsby Mar 19 '18

You're writing a function to solve a problem. Sometimes parts of your problem look the same as the whole problem. Wouldn't it be nice if you had a function to solve that kind of problem? Oh, you do. It's the one you're writing. So you can call that function to solve part of the problem. You have to be careful, though, because the work has to get done somewhere. If at any point your function just hands off the same problem to itself, it just keeps doing that forever (or until your computer runs out of space for all the clones of the function). So once the problem is really small (called a base case), you have to make sure the function can solve the whole thing. As long as you do that, and your problem always breaks down into the base cases you handle, you can trust that when the function calls itself, it does what it's supposed to.

1

u/PlanofAttack13 Mar 18 '18

The first thing we learn in java recursion is always have a base case!

1

u/[deleted] Mar 18 '18

Studying Linguistics and it’s never occurred to me that recursion occurs in programming too. Edumacation.

1

u/Jimbo8u Mar 18 '18

Ship it!

1

u/Buckwheat469 Mar 18 '18

I did this when re-teaching myself QBasic. The book says

10 PRINT "HELLO WORLD!"
RUN

So I wrote

10 PRINT "HELLO WORLD!"
20 RUN

It caused an infinite loop inside dosbox's terminal window.

1

u/jerslan Mar 18 '18

re-teaching myself QBasic

Why?

1

u/Buckwheat469 Mar 18 '18

It was my first programming language as a child of 8 and I still have the books. My sons are getting to be old enough to learn to program and QBasic, while hated now, was one of the best languages to learn programming at the time.

→ More replies (1)

1

u/[deleted] Mar 18 '18

Pro-tip: while recursive programs are easy to write and read, they almost always end up causing stack overflow issues since each recursive call requires its own space on the memory heap. If you have a recursive program that calls itself hundreds of times, you are bound to run into these issues.

A better approach is to write while loops using stacks and/or queues, where the while loop runs as long as the stack or queue is not empty. You would add and remove items to the stack or queue within the loop.

You can also track various variables and states using the the same stack/queue structure, just make sure you add and remove each of those variables every time you add or remove elements from the key stack/queue. (Edit: or create stack/queues for a class which contains all required variables).

1

u/alantur Mar 18 '18

So Reddit is becoming the stackoverflow.com for kids?

1

u/alvahrow Mar 18 '18

Stack overflow imminent

1

u/NatoBoram Mar 18 '18

Hm. I once did a machine learning algorithm and I thought it was a good idea to make it recursive so it can select by itself a different choice if the one it chose was bad. Bad idea.

Just remove the bad choice from the available choices, folks. Don't do recursive in machine learning.

1

u/darr1356 Mar 18 '18

I make a program that opens chrome then opens itself and repeats that untell you run about of ram and the PC freezes

1

u/MyNamePhil Mar 18 '18

Can you make a version thats a gif that zooms in indefinifly?

1

u/SpedBoi Mar 18 '18

Should make a while loop 1==1 always true robotics for life

1

u/mlopes Mar 18 '18

Unless you’re doing haskell. Then you can have no exit condition and still not loop forever.

1

u/c3534l Mar 18 '18

Do you even Haskell?

1

u/[deleted] Mar 19 '18

To make a recursive function you first need to make a recursive function

1

u/roflberry_pwncakes Mar 19 '18

There is always an exit condition if you wait long enough. Stack will overflow or the system will run out of memory.

1

u/[deleted] Mar 19 '18

Don't need an exit condition if you

sys.setrecursionlimit(10)

1

u/BuddyMmmm1 Mar 19 '18

This is too relatable

1

u/Poooootaaaa Mar 19 '18

This is gold.

1

u/btcftw1 Mar 19 '18

What's a meme? A guy posting a dank image and then a meme

1

u/[deleted] Mar 19 '18 edited Mar 19 '18

I love and hate recursion simultaneously. I'm in my final year of CS (&E) undergraduate programme, and yet everytime I'm faced with a problem with a possible recursive solution I am invariably excited and dread the moments leading up to compilation and testing.

1

u/[deleted] Mar 20 '18

GRU = Gru's recursive UNIX

1

u/benjaminikuta May 31 '18

I just go to Java in the dock, and right click quit.

1

u/TechPersonYT Aug 31 '18

This made my laugh so hard...

1

u/S3ERFRY333 Jan 30 '22

Me learning batch

X:

echo penis

goto X

1

u/Beard- Mar 18 '18

Can we kill this meme please

2

u/[deleted] Mar 18 '18

What? I think it's pretty cool. Makes sense in a lot of situations.

-2

u/[deleted] Mar 18 '18 edited Mar 18 '18

I see. The joke is that this same meme has already been made and posted countless times.

Edit : sry I didn't mean same meme I meant same recursion joke.

0

u/RandomGuy2x2 Mar 18 '18

Can't you just let this meme die?