Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Jung5528ythere is much more difference between recursion and iteration programming. All problem can't be solved with it.
-
@Jung yes, but many, if not most, uses of recursion in production code are programmer hubris rather than actually necessary. At least in my experience. Kind of like the ternary operator.
-
Tippy1768yRecursion can always be made into a more efficient iterative statement. You only run into problems when comverting a recursive definition in one language to an iterative statement in another language, as some very specific cases would blow up your runtime.
-
When I first learnt recursion I googled it, and it asked if I meant recursion. I didn't get it.
I remember when I was first learning recursion, i thought whoever thought of it must've been on some kickass drugs because it all sounded like sorcery. Just solved my first problem at work that recursion actually made simpler. Does that make me a wizard?
undefined