• @[email protected]
    link
    fedilink
    212 years 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.
  • e0qdk
    link
    fedilink
    1122 years ago

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

    Intermittent problems are the worst…

    • @[email protected]
      link
      fedilink
      342 years 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”.

        • @[email protected]
          link
          fedilink
          62 years 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…

          • @[email protected]
            link
            fedilink
            5
            edit-2
            2 years 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

      • Neshura
        link
        fedilink
        English
        212 years 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

        • @[email protected]
          link
          fedilink
          8
          edit-2
          2 years ago

          and gives you some headroom in improving performance since it’s being choked by the excessive logging

  • @[email protected]
    link
    fedilink
    4
    edit-2
    2 years ago

    reminds me (tho it’s inverse) old Visual Studio and how it liked to completely fuck up the solution to the point of being unable to fucking build the program.

  • Mossy Feathers (She/Her)
    link
    fedilink
    112 years ago

    I had a bug in unity once where my project just stopped working. I hadn’t changed anything, but I could no longer compile it or run the game in editor. I looked up the issue and apparently unity has/had a long-standing bug where the engine would rarely just quit being able to compile your scripts. The only solution was to make a new project and reimport all your assets, scripts, scenes, etc. Dunno if they ever figured out what was causing it or if it just kinda resolved itself and stopped showing up at some point. I don’t really use unity much anymore.

  • @[email protected]
    link
    fedilink
    242 years 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

    • @[email protected]
      link
      fedilink
      22 years ago

      Typically happens to me in the initial moments before I remember it’s been a week since I’ve pulled master.

  • LazaroFilm
    link
    fedilink
    English
    172 years ago

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

      • LazaroFilm
        link
        fedilink
        English
        42 years 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.

    • Neshura
      link
      fedilink
      English
      92 years ago

      hmm embedded. Beautifuly memories from uni. One lab my team forgot to remove a register whose supposed purpose was only enabling a communications bus (documentation didn’t mention it doing anything else). Turns out that same register disables the dac which we needed for the new excersise. You learn to love the hardware datasheets real quick.

      • LazaroFilm
        link
        fedilink
        English
        102 years ago

        And when the data sheet is wrong that gets fun. You start parsing I2S for each bit and record the result until you see a pattern. Or when your program crashes the USB and you can’t reupload without hitting boot or reset but they are inside the box.

        • @[email protected]
          link
          fedilink
          72 years ago

          MY PEOPLE!!! My code recently decided to not erase the flash when writing new firmware, bricking the device. Good times. (Old code || new code does not make for a working system)

          • LazaroFilm
            link
            fedilink
            English
            52 years ago

            I’m dealing with this right now. Making the largest embedded project for me (self taught) RP2040 in Cpp with a TFT touch screen, an IMU with fusion, a strip of “neopixels”, a 12v battery voltage reader, some Lemo connectors and custom cables, all in a 3D printed case in 3 parts. I’m so close to the end but still facing some code issues.

            • @[email protected]
              link
              fedilink
              32 years ago

              Pixels are wonderful, but such a perilous path…

              Start playing with a pixel, then get a board with WLED set up, then start running xlights on a beaglebone to synchronize several instances, for holiday lighting. Suddenly there’s several hundred leds in the front yard

              • LazaroFilm
                link
                fedilink
                English
                32 years ago

                Haha! I feel you. Luckily my project only involves about 20 pixels on a high density strip (332pixels/m) to be used as a small 1D display.

            • LazaroFilm
              link
              fedilink
              English
              3
              edit-2
              2 years ago

              This is the project I’m working on: CyberLevel. A gyro digital level for Steadicam. video

  • katy ✨
    link
    fedilink
    112 years 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

    • @[email protected]
      link
      fedilink
      32 years ago

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

      • katy ✨
        link
        fedilink
        42 years 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”