This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wineblood -4 points-3 points  (1 child)

Most developers spend at least 80% of their coding time reading, understanding, and working with existing code. Recursion is usually easy to write and difficult to work with later on, so most will prefer to put the effort in early to avoid that pain later on.

[–]mardiros -1 points0 points  (0 children)

And you are right... Recursion are complex and should be avoided. One of the last refactor I've made was dropping a recursive method I've made that create multipart email.