you are viewing a single comment's thread
view the rest of the comments
[–] 16 points 1 year ago (7 children)

True. Lost opportunity to blow things up with useless recursivity

  • source
  • parent
  • hideshow 7 child comments
  • [–] 16 points 1 year ago (6 children)

    The word you’re looking for is recursion (see recursion).

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 1 year ago (4 children)

    Nah, I'd like to un-see recursion. It was way overblown on uni, I barely ever use it.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 1 year ago (3 children)

    Recursion is amazing for a small selection of problems. Most of the time you don't need, or want, it. When it is useful though, it tends to be really useful.

    I don't understand people's issue with it. I always found it easy. Maybe that's why I feel this way. Maybe if you find it challenging you want to avoid it, even when it's a good solution.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (1 child)

    I think, their point (and also my experience) is that you get taught about it in university a lot more than about simple loops, so it feels more important even though you rarely use it in reality.

    Same thing goes for linked lists and inheritance...

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Most devs I know like recursion. Trouble is that many popular languages don't support tail recursion, but throw a stackoverflow error after a few thousand levels. So you have to keep track of max recursion depth manually, and it starts to look like a complicated solution

  • source
  • parent