Re:Signs You're a Crappy Programmer (and don't know it)
by omouse on Friday November 23, 2007 @10:25AM
(#82961)
0. You refuse to use recursion even when working with a language that supports it properly because you think it's horribly slow.
[ Parent
| on HN ]
Re:Signs You're a Crappy Programmer (and don't know it)
by boucher on Friday November 23, 2007 @11:55AM
(#82988)
"a language that supports it properly..."
Meaning what exactly? A language that automatically optimized for tail recursion? Are there languages which don't support recursion "properly?"
Re:Signs You're a Crappy Programmer (and don't know it)
by omouse on Friday November 23, 2007 @03:04PM
(#83031)
A few years ago my friend wrote up a few recursive functions in C and they were slower than using a for loop. Since then I haven't used any sort of recursion in C or C++. Maybe my fears are unfounded but I try and avoid those two languages in any case.
edit: I just realized what I actually mean. Some programming languages, or the culture/community around them, do not seem to encourage certain things that can be done with the language. In the case of C/C++, while/do/for loops are used before recursion. In the case of Scheme, you try a recursive solution first and then go for a do-loop if you really need to...or something like that.