News for hackers. Stuff that matters.
Re:Can a simple algebra test predict programming aptitude? by Morgawr on Friday December 12, 2014 @07:39PM (#8743567)
The whole point of what I said is that "hard" is a difficult thing to judge. For some tasks and some languages recursion is much easier to understand, teach and use. Just take the good ol' classical example of quicksort in Haskell or fibonacci in Lisp.

Some people can grok recursion in a functional programming language much faster and more easily than they would understand the concept of branching, variable assignment (with mutability) and non-pure functions (what we used to call "procedures" back in the day).

Re:Can a simple algebra test predict programming aptitude? by kyllo on Friday December 12, 2014 @11:55PM (#8744214)
Just take the good ol' classical example of quicksort in Haskell or fibonacci in Lisp.

Hell, recursive quicksort and mergesort are easier to teach and remember than the iterative versions even in C and Java. They're divide-and-conquer algorithms, which makes them a natural fit for a recursive solution.

Re:Can a simple algebra test predict programming aptitude? by splinterofchaos on Saturday December 13, 2014 @03:10PM (#8746213)
The classic C/C++ versions are recursive, and using the STL, c++'s quick sort looks very similar to the functional one.

From cppreference.com: http://coliru.stacked-crooked.com/view?id=0b2cec4d8c69ffaf

http://en.cppreference.com/w/cpp/algorithm/partition