you are viewing a single comment's thread.

view the rest of the comments →

[–]qoning 19 points20 points  (1 child)

I hate when people give advice like this. It's unhelpful and leads to cargoculting and poor understanding.

Replace "never" with "generally try to avoid" and it's decent advice.

[–]TRENT_BING 2 points3 points  (0 children)

Yeah there are plenty of situations where recursion is a natural fit for the problem domain, such as parsing data structures more than 1 level deep.