1
anon81
8y

Recursion: Good or bad? I mean, it's very few lines, efficient and pretty but can be so damn hard for others to read and debug.

Comments
  • 1
    @Lasse @h3ll and also very important: used properly and not like an idiot that writes shitty code. Which I think is the main issue when someone can't understand the code
  • 1
    Recursion is beautiful but you have to be careful especially when using it in a language that does not have built in tail recursion. Otherwise you can quite quickly overflow your stack and get lots of funny (i.e difficult to reproduce and debug) errors.
  • 1
    Like iteration it has good and bad points. The important thing to keep in mind is when to use it.
    http://stackoverflow.com/questions/...
Add Comment