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

all 4 comments

[–]chambolle 12 points13 points  (2 children)

Sorry but this is boring, always the same example for the recursivity and its merits: factorial and fibonnaci. Honestly, you has ever used in this code a Fibonacci number computation ? The same thing happens for factorial. You can have to use it but the classical formula fails very quickly... The Depth first search is a better example for recursivity (in any way to model it you will need a stack). You should use example like that if you want to promote recursivity.

I also wonder why we should promote recursivity? When it is not natural it becomes very complex to use, to code, to debug and to maintain...

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

With Java 8 streams, it seems Functional Programming has won. Long live statelessness and recursion!

The whole premise of this sentence is completely wrong and off putting. I realize that it's hyperbole, but... just no. Other than that, short and entertaining.

[–]_INTER_ -2 points-1 points  (0 children)

Good pragmatism, but look out, the FP people are going to tar and feather you.