Lemmy
  • 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
62
link
fedilink
561

Why I always keep doing it...

lemmy.world

cm0002@lemmings.world to Programmer Humor@programming.dev · 2 days ago
message-square
62
link
fedilink
alert-triangle
You must log in or # to comment.
  • Alberat@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    4 hours ago

    sometimes you don’t compile it enthusiastically enough

  • sunbeam60@feddit.uk
    link
    fedilink
    arrow-up
    7
    ·
    6 hours 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.

  • vrighter@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    does it count if i run it again, but with a debugger attached?

  • meekah@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    5 hours ago

    This genuinely happens regularly in our testing environment 🥲

  • 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.

  • copacetic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    116
    ·
    2 days ago

    xkcd 242 obviously

    • diabetic_porcupine@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      17 hours 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
      28
      ·
      2 days ago

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

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

        Get somebody else to pull it.

        • 0ops@piefed.zip
          link
          fedilink
          English
          arrow-up
          19
          ·
          2 days ago

          For science.

    • Absolute_Axoltl@feddit.uk
      link
      fedilink
      arrow-up
      11
      ·
      2 days ago

      Me playing point and click games

  • Shaker_dev@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1 day 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
      ·
      2 days ago

      The code now works breaks in a new way.

  • schema@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    2 days 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
      8
      ·
      2 days ago

      Sweet, push to production.

  • rumschlumpel@feddit.org
    link
    fedilink
    arrow-up
    49
    ·
    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 @[email protected] 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
    21
    ·
    2 days ago

    Trying to debug race conditions be like

    • verdare@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 days 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.

  • endless_nameless@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    2 days 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
    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.

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.32K users / day
  • 4.26K users / week
  • 9.62K users / month
  • 15K users / 6 months
  • 1 local subscriber
  • 30.9K subscribers
  • 758 Posts
  • 14.1K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org