• Lightfire228@pawb.social
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      11 hours ago

      I was reading Crafting Interpreters. After adding function calls and stack frames, i tested my implementation with the Fibonacci script at the end of the chapter

      I spent about 2 hours debugging my call stack, and even tested the script in Python

      Only to realize that Fib(3) is indeed 2

      • AnarchistArtificer@slrpnk.net
        link
        fedilink
        English
        arrow-up
        3
        ·
        4 hours ago

        Oh, I love this one, it’s very silly. I find it oddly grounding when I discover that the cause of a problem was me being silly, because I’m already aware that I am prone to foolish errors (as all humans are); when I discover that an unfathomable computer error is actually my fault, it feels like everything is right with the world

    • Iapar@feddit.org
      link
      fedilink
      arrow-up
      5
      ·
      9 hours ago

      That happens so often that checking for spelling is the first thing I do now when something goes wrong.

      • ByteJunk@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        8 hours ago

        I’m ashamed to admit how many times a basic english spell checker in my IDE has saved my bacon.

      • Lightfire228@pawb.social
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        I just have a spell checker enabled in vscode

        So helpful for dynamic languages that can’t detect undeclared variables (looking at you JS)