• dan@upvote.au
    link
    fedilink
    arrow-up
    46
    ·
    12 hours ago

    The worst is when you expect an existing test to fail, but it passes, and it turns out the test wasn’t actually properly testing the code. Fixing the test finds a bunch of broken edge cases.

    • TunaLobster@lemmy.world
      link
      fedilink
      arrow-up
      38
      ·
      12 hours ago

      Then you ask questions about what the past person could possibly have been thinking. You wonder what logic path brought them to create the code this way. You check git blame. It was you.

      • sbv@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        14
        ·
        11 hours ago

        Debugging. It’s a whodunnit where the victim, murderer, and investigator are all you.^(apologies to Filipe Fortes)