• @Akrenion@programming.dev
    link
    fedilink
    01 year ago

    This is not a hard problem once you wrap your head around it. It is the earliest that some programmers learn about recursion which has a lot of pitfalls and can be frustrating at times.

    • Victor
      link
      fedilink
      01 year ago

      Ah okay, that’s where the trauma comes from then, perhaps? 😅 Just being new to a concept and perhaps starting out with a problem that is a little too big while at the same time learning the concept?

      • Ephera
        link
        fedilink
        01 year ago

        I feel like it’s maybe a bit too much to say that it’s a trauma. The Vietnam-flashback picture is just very fitting, because the puzzle is called “Towers of Hanoi” (Hanoi is the capital of Vietnam).

        • @CanadaPlus@lemmy.sdf.org
          link
          fedilink
          01 year ago

          A lot of programmer memes seem to be about first-year compsci students that just want to build video games, and don’t really like math. For those people, sure, algorithms could be a bit of a rude awakening.

          • @skulblaka@startrek.website
            link
            fedilink
            01 year ago

            I was once that first year compsci student. Hanoi kicked my ass, I had to go recruit help from my smarter friends. Though to be fair the teacher didn’t explain it that well and just sort of threw it at us to see which of us would sink or swim. After we all complained about it he gave us a proper lesson on recursion and it was a little easier after that but I still struggled a lot on that project. We also implemented Conway’s Game of Life that semester and I preferred that project by a lot.

    • Thank god my first time was building a dynamic tree with loads of metadata and sorting from database records and not some strange game 😐