• Lightfire228@pawb.social
      link
      fedilink
      arrow-up
      5
      ·
      1 month 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

    • Iapar@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      1 month 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
        1
        ·
        1 month ago

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