News for hackers. Stuff that matters.
Re:Math topics useful for computer science/programming by ap22213 on Sunday April 20, 2014 @02:50AM (#7616101)
"Many students struggle with the idea of recursion..."

I still remember one of the worst bugs I'd ever introduced (in terms of pain to me). I was maybe 2-3 years out of my bachelors, and I thought recursion was so nifty that I'd use it where ever I could. I was coding C++, at the time. And, I got the dreaded 2am call after all of the production servers went down hard. Like terminate and corrupt data hard.

Lesson learned: it's good to know recursion, but it's also good to know maximum stack sizes.

Re:Math topics useful for computer science/programming by jostylr on Sunday April 20, 2014 @08:46AM (#7616620)
There's also thunk/trampolining continuation style to convert recursion easily into something that is not stack limited. http://nathansuniversity.com/cont.html
Re:Math topics useful for computer science/programming by KRuchan on Sunday April 20, 2014 @03:58AM (#7616189)
What problem were you trying to solve with recursion?
Re:Math topics useful for computer science/programming by archena on Sunday April 20, 2014 @05:05AM (#7616296)
That and tail-call optimisation :)