tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago

Bug Fixing

programming.dev

message-square
57
link
fedilink
924

Bug Fixing

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
57
link
fedilink
alert-triangle
You must log in or register to comment.
  • Deceptichum@kbin.social
    link
    fedilink
    arrow-up
    100
    ·
    edit-2
    1 year ago

    And the worst part is when it actually does and you have no fucking idea what went wrong before.

    • MrCookieRespect@reddthat.com
      link
      fedilink
      arrow-up
      28
      ·
      1 year ago

      The pc had the hiccups and now it’s fine. Problem solved!

      • ericbomb@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Some times my game engine needs a wake up run, then an actual run.

        • MrCookieRespect@reddthat.com
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Yeah happens from time to time.

  • Pantrygheist@programming.dev
    link
    fedilink
    arrow-up
    92
    ·
    1 year ago

    That’s step zero: rule out black magic

    • embed_me@programming.dev
      link
      fedilink
      arrow-up
      53
      ·
      1 year ago

      Those damn cosmic rays flipping my bits

      • BlanketsWithSmallpox@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 year ago

        Please tell me you look skyward, shake your fist and yell damn you!!!

      • CanadaPlus@futurology.today
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I wonder if there’s an available OS that parity checks every operation, analogous to what’s planned for Quantum computers.

        • Danitos@reddthat.com
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          Unrelated, but the other day I read that the main computer for core calculation in Fukushima’s nuclear plant used to run a very old CPU with 4 cores. All calculations are done in each core, and the result must be exactly the same. If one of them was different, they knew there was a bit flip, and can discard that one calculation for that one core.

          • CanadaPlus@futurology.today
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Interesting. I wonder why they didn’t just move it to somewhere with less radiation? And clearly, they have another more trustworthy machine doing the checking somehow. A self-correcting OS would have to parity check it’s parity checks somehow, which I’m sure is possible, but would be kind of novel.

            In a really ugly environment, you might have to abandon semiconductors entirely, and go back to vacuum as the magical medium, since it’s radiation proof (false vacuum apocalypse aside). You could make a nuvistor integrated “chip” which could do the same stuff; the biggest challenge would be maintaining enough emissions from the tiny and quickly-cooling cathodes.

    • DragonTypeWyvern@literature.cafe
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      That feeling when it is, in fact, computer ghosts.

  • KingBoo@lemmy.world
    link
    fedilink
    arrow-up
    61
    arrow-down
    1
    ·
    1 year ago

    Me: “Hmm… No… No the code is good, it’s the compiler that’s wrong.”

    runs again

    • runswithjedi@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      1 year ago

      deleted by creator

      • Isoprenoid@programming.dev
        link
        fedilink
        English
        arrow-up
        12
        ·
        1 year ago

        It’ll be done soon, then I can go home. TGIF, am I right?

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          11
          ·
          edit-2
          1 year ago

          Yeah. And I can send a quick email to update the team after I get home from my 45 minute commute, then log off and go to the cottage in that cell signal dead spot by the lake.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    52
    ·
    1 year ago

    Yeah, but sometimes it works.

    • Aceticon@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      1 year ago

      It’s even worse then: that means it’s probably a race condition and do you really want to run the risk of having it randomly fail in Production or during an important presentation? Also race conditions generally are way harder to figure out and fix that the more “reliable” kind of bug.

      • dev_null@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Or it was an issue with code generation, or something in the environment changed.

    • noddy@beehaw.org
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      Good luck figuring out why it sometimes doesn’t work 🙃

    • CanadaPlus@futurology.today
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      Mmm, race conditions, just like mama used to make.

    • Octopus1348@lemy.lol
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      1 year ago

      There was that kind of bug in Linux and a person restarted it idk how much (iirc around 2k times) just to debug it.

    • crushyerbones@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      This is 100% valid when dealing with code generation sometimes and I hate it

    • KairuByte@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Legit happens without a race condition if you’ve improperly linked libraries that need to be built in a specific order. I’ve seen more than one solution that needed to be run multiple times, or built project by project, in order to work.

    • TheHarpyEagle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      deleted by creator

  • Peafield @programming.dev
    link
    fedilink
    arrow-up
    37
    ·
    1 year ago

    The first is a surprise; the second is testing.

  • xor@infosec.pub
    link
    fedilink
    arrow-up
    31
    ·
    1 year ago

    could be a race condition

    • vamputer@infosec.pub
      link
      fedilink
      arrow-up
      60
      ·
      1 year ago

      Hmm…you may be right. I’ll get my Hispanic friend to run it and see if he gets the same result.

      • aiden@lemm.ee
        link
        fedilink
        arrow-up
        21
        ·
        1 year ago

        It works on my machine

        • gaston1592@feddit.de
          link
          fedilink
          arrow-up
          25
          ·
          1 year ago

          ok, then we ship your machine.

          • DeepGradientAscent@programming.devBanned
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            1 year ago

            Removed by mod

  • quantenzitrone@feddit.de
    link
    fedilink
    arrow-up
    23
    ·
    1 year ago

    i sometimes do that so i can inspect the error messages on a cleared terminal

    • winky9827b@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      Sometimes I forget what I was looking for and have to restart the mental loop when doing this.

  • Buttons@programming.dev
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year ago

    If that doesn’t work, sometimes your computer just needs a rest. Take the rest of the day off and try it again tomorrow.

  • BigBenis@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    The crazy thing is that sometimes this just works…

  • DirkMcCallahan@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    I often do this, but I always hit Ctrl-S before running it again. Shamefully, this probably works about 10% of the time. Does that technically count as changing nothing?

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 year ago

      That and a make clean can work wonders.

    • dependencyinjection@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Autosave on focus loss dude.

  • nieceandtows@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    Just had that happen to me today. Setup logging statements and reran the job, and it ran successfully.

    • TurtleTourParty@midwest.social
      link
      fedilink
      English
      arrow-up
      18
      ·
      1 year ago

      I’ve had that happen, the logging statements stopped a race condition. After I removed them it came back…

      • Hupf@feddit.de
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        Thank you for playing Wing Commander!

  • PoolloverNathan@programming.dev
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    One of my old programs produces a broken build unless you then compile it again.

  • Aceticon@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Well, duh! You need to use the right incantations!

    • DeepGradientAscent@programming.devBanned
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      1 year ago

      Removed by mod

      • TurboHarbinger@feddit.cl
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        Something something motive force.

  • jan teli@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    1 year ago

    I actually did this earlier today

    • Schal330@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I’ve only recently joined the dev world and I saw this post in the morning. Late this afternoon I’m doing a deployment that fails, couldn’t determine the cause as I’m a noob, before bothering a more senior dev for help I run it again… It worked.

  • Alien Nathan Edward@lemm.ee
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    it’s only dumb til it works

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.86K users / day
  • 4.2K users / week
  • 9.91K users / month
  • 19K users / 6 months
  • 1 local subscriber
  • 24.4K subscribers
  • 1.5K Posts
  • 49.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
    cake
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org