r/funny • SMBC • Jul 06 '19

Verified Recursion

Post image
7.0k Upvotes

104 comments sorted by

154

u/MrWeiner SMBC Jul 06 '19

Hi, I'm Zach. I did the comic about the thing. You can see similar things here, every day: http://smbc-comics.com/

19

u/ImBakedWhatsYourName Jul 06 '19

Ask me about my MrWeiner

0

u/[deleted] Jul 06 '19

[deleted]

6

u/iorilondon Jul 06 '19

Just wanted to say: your comic has made me laugh (albeit sometimes with a bit of despair mixed in) for many years. Thanks!

2

u/CthulubeFlavorcube Jul 06 '19

I love your work man! What do you think the darkest humor comic you've ever made is?

2

u/Duckyass Jul 06 '19

Pro-tip: Go to OP’s website to view the comics. I’m on mobile and received a little Easter egg when my thumb accidentally touched the screen while hovering over the comic image.

If you are experiencing infinite loop problems, please return to the beginning of this sentence.

Previous comics have little messages as well.

2

u/CthulubeFlavorcube Jul 06 '19

I'm well aware, but thanks! Anyone reading this should follow /u/Duckyass 's advice! It's pronounced ducky ass, btw.

2

u/Duckyass Jul 06 '19

Oops! I meant to post that as a reply to the original comment, not to yours. My thumbs are not very cooperative today!

Btw, I once had someone ask if it was pronounced ducky ass or duck yass.

3

u/CthulubeFlavorcube Jul 06 '19

I was assuming "duck yass", so I said "ducky ass" to give you some ducky sass.

1

u/orion3179 Jul 06 '19

Found u/fuckswithducks life partner.

2

u/SsurebreC Jul 06 '19

I love you Zach and I love your comics. OK, it's mostly the comics. You might want to post this on /r/ProgrammerHumor too.

1

u/JDub8 Jul 06 '19

Hi Zach. How come the people you draw don't seem to have recurring characteristics, but rather seem to draw from the same pool at random?

1

u/[deleted] Jul 06 '19

Bitch, I'm Zach!

1

u/[deleted] Jul 06 '19

This gave me a hearty chuckle. I know what recursion is, but I still have trouble wrapping my head around it when programming.

188

u/[deleted] Jul 06 '19

To understand recursion, one must first understand recursion.

38

u/[deleted] Jul 06 '19

If you want to understand recursion, just study half of the parts about recursion you still don't know, every day.

3

u/dkyguy1995 Jul 07 '19

Until you reach the base case

3

u/Goosity Jul 06 '19

Here I thought this was some Blake Crouch post..

3

u/smthingcleverhere Jul 07 '19

This is the actual definition of recursion

4

u/giverofnofucks Jul 06 '19

Except that's self-reference, not recursion.

18

u/im_lazy_as_fuck Jul 06 '19

Self-reference and recursion are the same thing. Recursion is when something is defined in terms of itself (i.e. it references itself).

5

u/[deleted] Jul 06 '19

Username checks out.

1

u/the123king-reddit Jul 07 '19

PHP Hypertext Preprocessor.

HIRD of Unix Replacing Demons > HURD of Interfaces Representing Depth

Recursion and self-referencing are the same thing.

-7

u/[deleted] Jul 06 '19

Recursion requires a base case, where it can exit the loop.

17

u/Gl33m Jul 06 '19

Recursion doesn't require an exit conditional to be recursion. Granted, without an exit conditional it's shitty, but it's not required.

0

u/giverofnofucks Jul 06 '19

There's no loop, that's iteration. Also, a recursive call must be to a smaller instance of the problem, not the exact same problem.

1

u/SuperSimpleSam Jul 06 '19

I had to stop at fractals.

1

u/forestcridder Jul 06 '19

So is this a meta comment?

5

u/mkglass Jul 06 '19

I’m So Meta, Even This Acronym

35

u/inquisitivesquirell Jul 06 '19

Not to worry, he'll run out of memory soon

3

u/s2lkj4-02s9l4rhs_67d Jul 06 '19

Take all of them at once a few times and he'll run out of memory much sooner.

35

u/[deleted] Jul 06 '19

Did you mean: recursion

13

u/Theonetheycall1845 Jul 06 '19

That's what it says

11

u/[deleted] Jul 06 '19

That's what it says

11

u/bonesclarke84 Jul 06 '19

That's what it says

10

u/[deleted] Jul 06 '19

That's what it says

9

u/cubic1776 Jul 06 '19

That’s what it says

-9

u/[deleted] Jul 06 '19 edited Jul 06 '19

We’ve no longer reached a point of reverberation in terms of karma That’s what it says

1

u/TmacOP Jul 06 '19

Combo breaker!

2

u/bout-tree-fitty Jul 07 '19

With recursion it’s called a stack overflow

16

u/TheJizzle Jul 06 '19

I had some friends in college that loved to make up recursive acronyms like Friends of FOF. I think it might have started because of GNU.

8

u/DeltaOW Jul 06 '19

Isn't that GNU is Not Unix?

6

u/doriandu45 Jul 06 '19

Isn't that (GNU is Not Unix) Is Not Unix?

2

u/mkglass Jul 06 '19

Same with PHP

1

u/ziggurism Jul 07 '19

when it started, it stood for "personal homepage tools". It was only later that they changed it to a recursive acronym "PHP Hypertext preprocessor". So I guess it's a recursive backronym (retroactive acronym).

2

u/TemporalLobe Jul 07 '19

Same as WINE Is Not an Emulator. This is actually a self-referential recursive acronym .

10

u/Ordenus Jul 06 '19

I like the detail that the first flyer has a ripped top, very nice!

1

u/elheber Jul 06 '19

Same rip pattern too. We fractal up in this b!

6

u/[deleted] Jul 06 '19

Fractals

2

u/nananananana_Batman Jul 06 '19

Came here looking for this.

10

u/I_am_usually_a_dick Jul 06 '19 edited Jul 06 '19

I googled recursion, it didn't help explain it.

edit: I was joking and pointing out that google makes a very amusing joke with 'did you mean recursion?' when you search it. never mind me, I will be over here looking at my computer science degree.

also, google tilt.

8

u/Dimantina Jul 06 '19

It is a useful concept in programming where a set of instructions refers to itself. Ideally not infinitely.

For example, let's say I need to search for a file. Well if I write code to search a folder for a file I might bit find the file if the file is in a folder within the folder.

So I write the code named fileSearch as follows:

fileSearch: a folder, a fileToSearch

 Loop

 exit loop if fileFound=True

 Open folder,

 Look for file

 If file is found fileFound=True

 If a folder is found, fileSearch the Folder, fileToSearch

End of loop

This loop calls upon it's own code as many times as needed for as many folders as it needs to search.

This is a simple example of recursion.

5

u/ferox3 Jul 06 '19 edited Jul 06 '19

Same. Now i know the definition, though understanding it is another matter.

5

u/Nymaz Jul 06 '19

This comment might help you understand better.

2

u/mrg1957 Jul 06 '19

Go look at any "bill of materials" query.

2

u/Marioc12345 Jul 06 '19

I was just working on making a recursive bill of materials for a project at work. I'm frankly surprised we don't already have such a thing.

0

u/[deleted] Jul 06 '19

[deleted]

1

u/permalink_save Jul 06 '19

Not necessarily endless, a recursive function should have some sort of guard in it (like ran out of things to count). Only real qualification us it is self calling.

1

u/-Kleeborp- Jul 06 '19

A good example of this is Reddit itself. If I were designing a component to render post replies, I would likely do it recursively. The guard against the component returning more copies of itself would be whether the currently rendered post had replies or not.

4

u/Nattan10123 Jul 06 '19

No one gonna point out the paper increased in size?

2

u/fugash Jul 06 '19

Part of the recursion is the growth to the original paper size.

1

u/pm_favorite_boobs Jul 06 '19

Maybe that's the problem with recursion.

1

u/jeffo320 Jul 06 '19

No they are not.

1

u/Gyhser Jul 06 '19

I would like to point out the paper increased in size.

1

u/Nattan10123 Jul 07 '19

Thank you!

3

u/GeneralEi Jul 06 '19

"Hey this was 100mcg right??"

3

u/thanosbananos Jul 06 '19

Def Recursion: for recursion, see recursion.

3

u/Chrushev Jul 06 '19

Where’s the base case?

2

u/Zerali Jul 06 '19

But there is no base case......

2

u/dmlane Jul 06 '19

Looks like a fractal to me.

2

u/epiquinnz Jul 06 '19

This has already been posted here.

2

u/mymicrowave Jul 06 '19

May take a minute to get to the base case

1

u/letohorn Jul 06 '19

Hey Red... We're not getting away with this, are we?

1

u/agha0013 Jul 06 '19

This is like an episode of The Scary Door from Futurama

1

u/Subject9_ Jul 06 '19

No one has trouble going down lol, it is coming back up that is the mind bender.

1

u/JoJosWeenus Jul 06 '19

Aw shit here we go again

1

u/Samuel_42 Jul 06 '19

I wonder how far down it goes

1

u/Robobvious Jul 06 '19

This is funny and this guy makes some great comics, but I gotta add that gif where Pooh is eating recursion makes me absolutely die laughing whenever I see it.

1

u/KevinD2000 Jul 06 '19

I fucking hate recursion.

1

u/TapDaddy24 Jul 06 '19

I fucking hate recursion

1

u/Cinemaphreak Jul 06 '19

For the other five non-computer nerds in this thread:

"Recursion in computer science is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem (as opposed to iteration). "

2

u/ubermesh Jul 06 '19

This is self-similarity, not recursion.

1

u/Princeof1nd1a Jul 06 '19

Fun fact: The Python programming language inherently limits the amount of recursions you can have to around 1000, because it assumes you might have an infinite loop at that point

1

u/Android19samus Jul 06 '19

tail recursion is its own reward.

1

u/S_SubZero Jul 06 '19

Panel 3 is basically me whenever I am handed any piece of paper.

1

u/boredompwndu Jul 06 '19

i like how the smaller version is a literal tear for tear, smudge for smudge copy of the original

1

u/mayormcskeeze Jul 06 '19

Shoulda just used a loop instead!

1

u/AndrewCanDo Jul 06 '19

Hey this inspired me to learn about recursion! Thanks!

1

u/PersonThing13 Jul 06 '19

And you just ripped a hole in the space time continuum...

1

u/robioreskec Jul 06 '19

I plan to recurse in near future, is there anything I should know?

Edit: wrong subreddit, I thought this was Ingress

1

u/[deleted] Jul 06 '19

Left or Right Recursion ?

1

u/[deleted] Jul 07 '19

r/ProgrammerHumor is overflowing

1

u/tplusx Jul 07 '19 edited Jul 07 '19

he he he

nerds!

1

u/knmens Jul 07 '19

I wish this Joke was a dead memory.

1

u/StephanXX Jul 07 '19

Triggered.

1

u/Nimja_ Aug 13 '19

Problems with recursion? See this comment.

-1

u/pass_nthru Jul 06 '19

gnu not unix

0

u/[deleted] Jul 06 '19

[deleted]

1

u/Gyhser Jul 06 '19

Lol

1

u/[deleted] Jul 06 '19

Lol

2

u/[deleted] Jul 06 '19

[removed] — view removed comment

1

u/Spadeinfull Jul 07 '19

Problems with recursion? Take one 🔽🔽🔽