Re:Why I am Not a Professor, or The Decline and Fall of the ...
by sketerpot on Sunday August 02, 2009 @07:23PM
(#738261)
Recursion is only considered an "advanced" algorithmic technique because people are taught to think of it that way. Recursion is actually pretty straightforward once you have a bit of practice using it.
Re:Why I am Not a Professor, or The Decline and Fall of the ...
by javanix on Sunday August 02, 2009 @09:14PM
(#738371)
Well, yes, most things do become easier with a bit of practice.
If a functional language was taught in beginner CS classes I think it would be easier for students to see how it works. It certainly "clicked" for me once I'd learned a bit of Scheme in my first AI class.
The problem with Java (and C, to a lesser extent) in basic problem solving is that you can almost brute-force-code and get a working solution that will get full credit, but after writing it a more elegant (and efficient) solution isn't always obvious. In functional languages, that "more correct" solution almost always seems to stand out more, at least to me.