• e0qdk
    link
    fedilink
    1129 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
      349 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”.

        • @folkrav@lemmy.world
          link
          fedilink
          69 months ago

          Fully agree, but they’re usually kind of annoying to track regardless. On the opposite side, sometimes even getting it to trigger on purpose to be able to add a regression test can be pretty tricky, depending on the cause. Timing or time/date based stuff is a common culprit…

          • @ryannathans@aussie.zone
            link
            fedilink
            5
            edit-2
            9 months ago

            Don’t tell me about time and date, I am still recovering from some moron that used datetime.now() for some unit test data setup and sometimes two records (which needed to have the same time) had very slightly varying time which caused all sorts of intermittent test failures that were very tricky to nail down. Database triggers were failing causing failures in all sorts of tests in a random fashion

  • @DraughtGlobe@feddit.nl
    link
    fedilink
    709 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.

  • @saltnotsugar@lemm.ee
    link
    fedilink
    English
    359 months ago

    The longer I’m in IT, the more I realize that the adeptus mechanicus might be on to something with beseeching the machine spirit.

    • peopleproblems
      link
      fedilink
      279 months ago

      A lot of people think I’m joking when I say I’m a good at what I do because I’m a witch doctor with computers. Software Engineering requires experience with the occult, at a minimum.

      • @saltnotsugar@lemm.ee
        link
        fedilink
        English
        269 months ago

        “In my professional opinion, this network is haunted.”
        …haunted?
        (Points to various certifications) “HAUNTED.”

          • The Gay Tramp
            link
            fedilink
            English
            59 months ago

            The demons are attracted to doorways, passages between spaces, worlds, and realms. And printers are the ultimate doorway: a portal through which ideas and concepts can leave the software realm and enter the physical

        • The Gay Tramp
          link
          fedilink
          English
          39 months ago

          I actually had a concept for a fantasy world, where magicians craft spells much the same way software devs do. So you make your spell and publish it to the ether, and then anyone can invoke it using the magic word (package name), assuming the have the right dependencies available (eye of newt or whatever). But spells might have bugs. So if you used eye of red newt while the spell smith built it with the expectation you had eye of blue newt you might get unintended consequences

          • @Swedneck@discuss.tchncs.de
            link
            fedilink
            19 months ago

            i mean it’s pretty common for runes to just be conceptual programming languages and if you do something wrong then instead of having a lighter you get a bomb

  • @Traegs@lemmy.world
    link
    fedilink
    329 months ago

    The other day I launched an old game and got met with an error, something about directX9 and missing a redistributable file or something. Decided not to fuck with it.

    Yesterday I launched it again to take a closer look at the error message to see if I could fix it. No error message, game booted without issues.

    My confusion.

    • ActuallyRuben
      link
      fedilink
      169 months ago

      Did you reboot your PC after installing? Games often included DirectX redistributables which required a reboot to fully install.

  • darcy
    cake
    link
    fedilink
    29
    edit-2
    9 months ago
    if (new Date().getDay() % 2) {
        runCode();
    }
    
  • @MisterD@lemmy.ca
    link
    fedilink
    249 months ago

    I have this issue once in a while with PowerShell.

    The environment gets f’up as you develop. You get strange shit happening or it blows up.

    Restart PowerShell or reboot and it’s all good

  • @Oodelallic@lemmy.ca
    link
    fedilink
    219 months ago

    lucky, you have code gnomes. leave out an offering of mountain dew and pizza rolls to appease the spirits.

  • @takeda@lemmy.world
    link
    fedilink
    219 months ago

    Still better than my Go experience 2 years ago.

    • fails when deployed, after adding debug statements looks like in one structure there’s 2 instead of 1, and looking at the code that should be impossible. Issue happens every single time.
    • the same exact unmodified container when downloaded and run locally works correctly every time.
  • LazaroFilm
    link
    fedilink
    English
    169 months ago

    I had that happen with embedded programming when you forget to flush the eeprom after changing your saved values.

      • LazaroFilm
        link
        fedilink
        English
        49 months ago

        On small computers like Arduino there is a very small memory called eeprom that stays when powered off. It saves ultra low level data (at the bit and byte level) if you don’t “format” after changing what is being saved where it then tries to read gibberish and things go bonk.

  • kamen
    link
    fedilink
    139 months ago

    Maybe it only works on even dates, which is, you know, perfectly normal.

  • @FruitfullyYours@lemmy.world
    cake
    link
    fedilink
    129 months ago

    I’ve recently had the opposite: code worked then the next day without anything changing it didn’t.

    Turned out the J-Link programmer always needs the license check to work, but that expires every day at midnight. It only prompts again if you choose the app and restart it. So I couldn’t get my debugger to work and spent hours trying to figure it out until I did the best thing. I turned it off and on again.