eviltoast
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmings.world to Programmer Humor@programming.dev · 2 days ago

Why I always keep doing it...

lemmy.world

message-square
53
link
fedilink
524

Why I always keep doing it...

lemmy.world

cm0002@lemmings.world to Programmer Humor@programming.dev · 2 days ago
message-square
53
link
fedilink
alert-triangle
You must log in or # to comment.
  • meekah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    29 minutes ago

    This genuinely happens regularly in our testing environment 🥲

  • sunbeam60@feddit.uk
    link
    fedilink
    arrow-up
    3
    ·
    1 hour 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.

  • ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 day 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.

  • Shaker_dev@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    20 hours ago

    Because you’re Good developer

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    31
    ·
    2 days ago

    You make a change. It doesn’t fix it.

    You change it back. The code now works.

    • zerobot@lemmy.wtf
      link
      fedilink
      arrow-up
      10
      ·
      2 days ago

      the real fix was the journey, the destination never mattered

    • MummifiedClient5000@feddit.dk
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      The code now works breaks in a new way.

  • schema@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

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

    • Ravel@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

      Sweet, push to production.

  • rumschlumpel@feddit.org
    link
    fedilink
    arrow-up
    48
    ·
    2 days ago

    But sometimes it works, or throws a different error …

    • einkorn@feddit.org
      link
      fedilink
      arrow-up
      42
      ·
      2 days ago

      And a different error means progress!

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        2 days ago

        A different error each time?

        • einkorn@feddit.org
          link
          fedilink
          arrow-up
          3
          ·
          2 days ago

          I refer to @floofloof@lemmy.ca comment.

    • floofloof@lemmy.ca
      link
      fedilink
      arrow-up
      20
      ·
      2 days ago

      When it does a different crazy thing every time and you have no idea why, it means you’re a genius and have created life.

      • littleomid@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Or you’re coding in C.

    • atopi@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      you have to check if you are dealing with a bug or with a ghost

    • idunnololz@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      Actually tru. Damn preprocessors.

  • sleepmode@lemmy.world
    link
    fedilink
    English
    arrow-up
    20
    ·
    2 days ago

    Trying to debug race conditions be like

    • verdare@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 day ago

      Yuuup… Debugging concurrent code is a bitch.

  • DahGangalang@infosec.pub
    link
    fedilink
    arrow-up
    26
    ·
    2 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.

    • jtrek@startrek.website
      link
      fedilink
      arrow-up
      9
      ·
      2 days ago

      I have no regrets from setting my editor to save-on-blur

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
    link
    fedilink
    English
    arrow-up
    20
    ·
    2 days ago

    Code doesn’t work; don’t know why.

    Code works; don’t know why.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Cargo Cult Programming is bad.

  • TabbsTheBat (they/them)@pawb.social
    link
    fedilink
    arrow-up
    23
    ·
    2 days ago

    The first one is to warm up the engine. Like getting your car ignition to kick over in the winter

    • WanderingThoughts@europe.pub
      link
      fedilink
      arrow-up
      7
      ·
      2 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.

  • endless_nameless@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    2 days ago

    The error message goes stale when it’s been sitting for a while. I need to see a fresh one.

  • MsPenguinette@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 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
      6
      ·
      2 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.

    • blarghly@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      “Maybe if we ignore the problem, it will go away”

  • Hisse@programming.dev
    link
    fedilink
    arrow-up
    14
    ·
    2 days ago

    You know, youve gotta give your computer some warmup.

  • zerobot@lemmy.wtf
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    sometimes it needs to warm up… or cool down

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.

  • 2.34K users / day
  • 3.85K users / week
  • 9.78K users / month
  • 18.1K users / 6 months
  • 27 local subscribers
  • 30.9K subscribers
  • 2.25K Posts
  • 87.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.17
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org