• DahGangalang@infosec.pub
    link
    fedilink
    arrow-up
    22
    ·
    11 days ago

    The usual for me is that I flip back over to my editor and hit ctrl+save, cause heaven forbid I ever remember to do that before running.

    • WanderingThoughts@europe.pub
      link
      fedilink
      arrow-up
      6
      ·
      11 days ago

      and sometimes that’s exactly what’s needed. Services wake up, connections get established and then when you try again things are up and it works.

  • schema@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    11 days ago

    The absolute worst thing that can happen is if it suddenly starts working without doing anything

  • MsPenguinette@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    11 days ago

    You jest but “wait and retry” is such a powerful tool in my DevOps toolbox. First thing I tell junior engineers when they run across anything weird

    • marlowe221@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      11 days ago

      Honestly, in DevOpS, when you’re running stuff in a GitHub Action/Azure DevOps Pipeline/Jenkins, yeah… sometimes a run will fail for no obvious reason.

      And then work the next time (and the next 100+ times after that) when you haven’t changed a damn thing.

  • abcdqfr@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    11 days ago

    Not sure which is worse. When you know you changed nothing and it inexplicably starts|stops working compared to yesterday

    • Rhaedas@fedia.io
      link
      fedilink
      arrow-up
      8
      ·
      11 days ago

      Far worse, and this applies to more than programming. If something is broken, I want it to be consistent. Don’t fix yourself, or sort of work but have a different effect. Break, and give me something to figure out, damn it.

  • sunbeam60@feddit.uk
    link
    fedilink
    arrow-up
    9
    ·
    9 days ago

    Ah, come on this is valid investigation.

    If you get the same error every time, you know you can find it and debug it, somewhat with ease.

    If you don’t, you might have a thornier issue at hand.

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    11 days ago

    Running the code again is fast and requires no thinking. Finding the problem is slow and requires a lot of thinking.

    It’s worth looking under the light-post in case your keys somehow rolled there. Just not for long.

  • ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    10 days ago

    I started coding professionally using Visual Basic (3!). Everybody made fun of VB’s On Error Resume Next “solution” to error handling, which basically said if something goes wrong just move on to the next line of code. But apparently nobody knew about On Error Resume, which basically said if something goes wrong just execute the offending line again. This would of course manifest itself as a locked app and usually a rapidly-expanding memory footprint until the computer crashed. Basically the automated version of this meme.

    BTW just to defend VB a little bit, you didn’t actually have to use On Error Resume Next, you could do On Error Goto errorHandler and then put the errorHandler label at the bottom of your routine (after an Exit Sub) and do actual structured error handling. Not that anybody in the VB world ever actually did this.