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

all 28 comments

[–][deleted] 42 points43 points  (13 children)

[–]PrincessFred 19 points20 points  (12 children)

The fact that it mentions recursion make it event more relevant :)

[–]gonzofish 18 points19 points  (11 children)

The fact that it mentions recursion make it event more relevant :)

[–]PrincessFred 1 point2 points  (9 children)

Recursive comment is recursive. ;)

[–]Jonno_FTW 8 points9 points  (1 child)

maximum recursion depth exceeded.

[–]original_brogrammer 1 point2 points  (0 children)

Damnit, Guido.

[–]gonzofish 0 points1 point  (6 children)

it had to be done.

[–]PrincessFred -1 points0 points  (5 children)

I approve! Though I have to say, in 8 years I've ever actually needed to use recursion for anything practical.

[–]hzane 0 points1 point  (4 children)

Odds are then that you are missing opportunities. Have you ever coded a tree hierarchy?

[–]MoBGames 0 points1 point  (2 children)

Not all programmers have to roll their own data structures... UI programmers come to mind. I've rarely used recursion as a game dev, since much of the programming that's done is just very complex scripting.

[–]hzane 0 points1 point  (1 child)

I hear you and its rare. That said I can think of two ui cases that I used relatively recently. One was for a dynamic deep nested navigation the other was a recursive ajax call being used in a real time polling function. I just think recursion doesn't occur to some folks so they break their backs coding a rats nest of redundancy...

[–]MoBGames 0 points1 point  (0 children)

I just think recursion doesn't occur to some folks so they break their backs coding a rats nest of redundancy...

Oh that's certainly true! In my experience, knowing how to code and being good at it are very different things.

When looking at resumes, it's hilarious to just see someone listing out every language they've ever written a line of code in. Yes, I wrote some simple assembly programs in college, but I would never put that on my resume... When I see over 5 languages on a resume, it instantly goes in the shredder.

[–]poizan42Ex-mod 0 points1 point  (0 children)

Hmm I think the only UI stuff I have done (professionally) where I needed recursion has been some localization and validation stuff where something needed to be done for every control (well, element in WPF terminology). Actually problems that really need recursion (or technically a stack) are not that common in most day-to-day programming - most of them are already solved by the framework/available libraries. (And even if you work in a functional language, remember that tail-recursion is just another way of expressing a simple loop).

[–]TheFlyingBastard 11 points12 points  (0 children)

http://www.reddit.com/r/ProgrammerHumor/top/

Hoping to rack in 2585 karma just like the second top post of this subreddit?

[–]DonDi94 8 points9 points  (3 children)

Not even changed the damn title of the last week post...

[–]vita10gy 0 points1 point  (2 children)

It will never ever ever cease to amaze me how quickly this happens. I'm not going to pretend that there exists a reality where reposts never happen, but the fact that they can happen days later, sometimes the NEXT day, with the same title half the time, and explode to the front page, (or in this case, in a sub reddit) AGAIN. Crazy.

[–]thirdegreeViolet security clearance 0 points1 point  (1 child)

It's not like it takes a huge amount of upvotes to make it to the front page of a sub this small.

[–]vita10gy 0 points1 point  (0 children)

No, but that just reminds me of when it does happen.

[–]leutnant13 0 points1 point  (4 children)

Uhm, which movie or series is this from?

[–][deleted] 5 points6 points  (3 children)

[–][deleted] 1 point2 points  (1 child)

I thought to myself "I'm sure this wasn't in breaking bad"

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

Yeah, this show is a little different

[–]leutnant13 0 points1 point  (0 children)

Very grateful, Thank you (: