Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 JPDev   ( @JPDev@programming.dev )  to Programmer Humor@programming.dev · 2 years ago

Bug Fixing

programming.dev

message-square
32
link
fedilink
534

Bug Fixing

programming.dev

 JPDev   ( @JPDev@programming.dev )  to Programmer Humor@programming.dev · 2 years ago
message-square
32
link
fedilink
alert-triangle
You must log in or # to comment.
  •  Deceptichum   ( @Deceptichum@kbin.social ) 
    link
    fedilink
    arrow-up
    71
    ·
    2 years ago

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

    •  MrCookieRespect   ( @MrCookieRespect@reddthat.com ) 
      link
      fedilink
      arrow-up
      18
      ·
      2 years ago

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

  •  Pantrygheist   ( @Pantrygheist@programming.dev ) 
    link
    fedilink
    arrow-up
    64
    ·
    2 years ago

    That’s step zero: rule out black magic

    •  embed_me   ( @embed_me@programming.dev ) 
      link
      fedilink
      arrow-up
      39
      ·
      2 years ago

      Those damn cosmic rays flipping my bits

      •  CanadaPlus   ( @CanadaPlus@futurology.today ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

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

        •  Danitos   ( @Danitos@reddthat.com ) 
          link
          fedilink
          arrow-up
          3
          ·
          2 years 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   ( @CanadaPlus@futurology.today ) 
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            2 years 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   ( @DragonTypeWyvern@literature.cafe ) 
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

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

  •  Blackmist   ( @Blackmist@feddit.uk ) 
    link
    fedilink
    English
    arrow-up
    27
    ·
    2 years ago

    Yeah, but sometimes it works.

    •  noddy   ( @noddy@beehaw.org ) 
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

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

    •  Octopus1348   ( @Octopus1348@lemy.lol ) 
      link
      fedilink
      arrow-up
      5
      ·
      2 years 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.

    •  CanadaPlus   ( @CanadaPlus@futurology.today ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

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

    •  KairuByte   ( @KairuByte@lemmy.dbzer0.com ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 years 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.

  •  Peafield   ( @Peafield@programming.dev ) 
    link
    fedilink
    arrow-up
    27
    ·
    2 years ago

    The first is a surprise; the second is testing.

  •  xor   ( @xor@infosec.pub ) 
    link
    fedilink
    arrow-up
    22
    ·
    edit-2
    1 year ago

    deleted by creator

    •  vamputer   ( @vamputer@infosec.pub ) 
      link
      fedilink
      arrow-up
      50
      ·
      2 years ago

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

      •  aiden   ( @aiden@lemm.ee ) 
        link
        fedilink
        arrow-up
        18
        ·
        2 years ago

        It works on my machine

        •  gaston1592   ( @gaston1592@feddit.de ) 
          link
          fedilink
          arrow-up
          19
          ·
          2 years ago

          ok, then we ship your machine.

          •  DeepGradientAscent   ( @DeepGradientAscent@programming.dev ) Banned
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            2 years ago

            Removed by mod

  •  nieceandtows   ( @nieceandtows@programming.dev ) 
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

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

    •  TurtleTourParty   ( @TurtleTourParty@midwest.social ) 
      link
      fedilink
      English
      arrow-up
      15
      ·
      2 years ago

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

      •  Hupf   ( @Hupf@feddit.de ) 
        link
        fedilink
        arrow-up
        9
        ·
        2 years ago

        Thank you for playing Wing Commander!

  •  quantenzitrone   ( @quantenzitrone@feddit.de ) 
    link
    fedilink
    arrow-up
    16
    ·
    2 years ago

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

  •  PoolloverNathan   ( @PoolloverNathan@programming.dev ) 
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

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

  •  Buttons   ( @Buttons@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 years 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.

  •  Alien Nathan Edward   ( @reverendsteveii@lemm.ee ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

    it’s only dumb til it works

  •  Fixbeat   ( @Fixbeat@lemmy.ml ) 
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    deleted by creator

  •  attero   ( @attero@feddit.de ) 
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    The definition of insanity is doing the same thing over and over and expecting different results.

  •  drsensor   ( @drsensor@programming.dev ) 
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago

    My way: wrap it in a shell script and put a condition if exit status is not 0 then say “try clear the cache and run it again”

  •  tengkuizdihar   ( @tengkuizdihar@programming.dev ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Einstein did say…

  •  Jimmycrackcrack   ( @Jimmycrackcrack@lemmy.ml ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Ever work?

    •  puttputt   ( @puttputt@beehaw.org ) 
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      Disturbingly, yes

      •  gandalf_der_12te   ( @gandalf_der_12te@feddit.de ) 
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Every sufficiently complicated system is indistinguishable from being alive, and living beings need some warm-up time.

    •  CodeMonkey   ( @CodeMonkey@programming.dev ) 
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      All the time. Causes include:

      • Test depends on an external system (database, package manager)
      • Race conditions
      • Failing the test cleared bad state (test expects test data not to be in the system and clears it when it exits)
      • Failing test set up unknown prerequisite (Build 2 tests depends on changes in Build 1 but build system built them out of order)
      • External forces messing with the test runner (test machine going to sleep or running out of resources)

      We call those “flaky tests” and only fail a build if a given test cannot pass after 2 retries. (We also flag the test runs for manual review)

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.

  • 251 users / day
  • 1.59K users / week
  • 3.76K users / month
  • 8.28K users / 6 months
  • 448 local subscribers
  • 28.2K subscribers
  • 1.17K Posts
  • 19.1K Comments
  • Modlog
  • mods:
  •  Feyter   ( @Feyter@programming.dev ) 
  •  adr1an   ( @anzo@programming.dev ) 
  •  BurningTurtle   ( @BurningTurtle@programming.dev ) 
  •  Pierre-Yves Lapersonne   ( @pylapp@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code