News for hackers. Stuff that matters.
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.

Re:Signs You're a Crappy Programmer (and don't know it) by dangph on Saturday November 24, 2007 @12:29AM (#83137)
> they were slower than using a for loop. Since then I haven't used any sort of recursion in C or C++.

That's premature optimization.