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

Why I always keep doing it...

lemmy.world

message-square
46
fedilink
428

Why I always keep doing it...

lemmy.world

cm0002@lemmings.world to Programmer Humor@programming.dev · 1 day ago
message-square
46
fedilink
alert-triangle
You must log in or # to comment.
  • Shaker_dev@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    8 hours ago

    Because you’re Good developer

  • ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    14 hours 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.

  • schema@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    23 hours 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
      4
      ·
      20 hours ago

      Sweet, push to production.

  • copacetic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    97
    ·
    1 day ago

    xkcd 242 obviously

    • diabetic_porcupine@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 minutes ago

      You know what this is based AF because if you don’t do it a second time how would you know if it wasn’t a weird edge case or a race condition or maybe you just didn’t internalize the cause and effect because you weren’t looking for it until a bug appeared

    • Rhaedas@fedia.io
      link
      fedilink
      arrow-up
      24
      ·
      1 day ago

      I feel called out. I’m not sure which way I’d go.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        24
        ·
        1 day ago

        Get somebody else to pull it.

        • 0ops@piefed.zip
          link
          fedilink
          English
          arrow-up
          15
          ·
          1 day ago

          For science.

    • Absolute_Axoltl@feddit.uk
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      Me playing point and click games

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    26
    ·
    1 day 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
      8
      ·
      1 day ago

      the real fix was the journey, the destination never mattered

    • MummifiedClient5000@feddit.dk
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      The code now works breaks in a new way.

  • sleepmode@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 day ago

    Trying to debug race conditions be like

    • verdare@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      23 hours ago

      Yuuup… Debugging concurrent code is a bitch.

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 day ago

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

    Code works; don’t know why.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      Cargo Cult Programming is bad.

  • DahGangalang@infosec.pub
    link
    fedilink
    arrow-up
    24
    ·
    1 day 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
      7
      ·
      1 day ago

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

  • endless_nameless@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 day ago

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

  • TabbsTheBat (they/them)@pawb.social
    link
    fedilink
    arrow-up
    20
    ·
    1 day 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
      6
      ·
      1 day 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.

  • zerobot@lemmy.wtf
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    sometimes it needs to warm up… or cool down

  • JATothrim_v2@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    21 hours ago

    demons ahem. data-races.

  • MsPenguinette@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 day 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
      5
      ·
      1 day 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
      ·
      1 day ago

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

  • kubica@fedia.io
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    Just making sure that the write buffer was flushed or something.

  • grue@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    When your Makefile is so fucked up that you have to run it multiple times to get everything to build and link properly.

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: [email protected]

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.49K users / day
  • 3.37K users / week
  • 9.43K users / month
  • 18.5K users / 6 months
  • 1 local subscriber
  • 30.9K subscribers
  • 2.2K Posts
  • 81.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org