• e0qdk@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    Rule 9 from Agans’s Debugging: If you didn’t fix it, it ain’t fixed

    Intermittent problems are the worst…

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      The problem is, how do you fix it if you can’t make it break?

      The worst thing is when somebody comes to you saying “yeah, I had this problem yesterday, but it’s working now”.

      • Neshura@bookwormstory.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        this is a case for excessive logging man

        likely won’t help you actually fix the issue because miraculously you didn’t log the three variables you actually need but it’ll make you feel better in the meantime

  • DraughtGlobe@feddit.nl
    link
    fedilink
    arrow-up
    3
    ·
    9 months ago

    ngl my programming career helped me stay grounded in reality. Every impossible issue turned out to always have a cause, a reason to be there. Could have taken weeks to track down the issue, but there was always a cause.

    But still… every 3 or so years… something actually impossible pops-up. Impossible to fix, impossible to reproduce, and suddenly gone from existence, as if it was never there.

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    just make sure you absolutely don’t comment or document it then commit it to git with a cryptic commit message and even more cryptic author name and then hand it off to your coworkers

    • koko@ani.social
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      AAA why do people do that, like wtf you spent so much time fixing this, ATLEAST MAKE IT CLEAR WHAT YOU DID

      • katy ✨@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        searching google and finding a ten year old stackoverflow post with your exact problem but the answer is just “nevermind i figured it out”