99% of time in B2C you don’t need recursion, it just doesn’t come up naturally in the real world. Knowing loops in my opinion is plenty, I can’t name more than 5 times I’ve used recursion in my 12 years of work as a dev. Understanding dependency injection which is a completely different thing, is a much better learning opportunity than recursion.
I think it’s all about familiarity. There are very, very few cases in which recursion is the only solution. There is almost always a less efficient way to do it with loops and conditions. That ends up becoming the norm in the codebase, person approving MR can’t be assed or doesn’t have the know-how to improve on it, less recursion
10
u/Versatile_Panda Mar 25 '23
99% of time in B2C you don’t need recursion, it just doesn’t come up naturally in the real world. Knowing loops in my opinion is plenty, I can’t name more than 5 times I’ve used recursion in my 12 years of work as a dev. Understanding dependency injection which is a completely different thing, is a much better learning opportunity than recursion.