• Gonzako@lemmy.world
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        28 days ago

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

        • Cethin@lemmy.zip
          link
          fedilink
          English
          arrow-up
          10
          ·
          28 days ago

          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.

          • kamstrup@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            28 days 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

          • kamstrup@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            28 days 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