Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 BlueKey   ( @BlueKey@fedia.io )  to Programmer Humor@lemmy.ml · 1 year ago

My debugging experience today: Quantum Debugging

fedia.io

message-square
12
link
fedilink
476

My debugging experience today: Quantum Debugging

fedia.io

 BlueKey   ( @BlueKey@fedia.io )  to Programmer Humor@lemmy.ml · 1 year ago
message-square
12
link
fedilink
alert-triangle
You must log in or # to comment.
  •  ambitiousslab   ( @ambitiousslab@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    44
    ·
    1 year ago

    Perfect, now you just have to wrap your program inside a debugger in production!

    •  henfredemars   ( @henfredemars@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      27
      ·
      1 year ago

      We test AND develop in production. Get on my level.

      •  leisesprecher   ( @leisesprecher@feddit.org ) 
        link
        fedilink
        arrow-up
        26
        ·
        1 year ago

        One of our customers does that. It happened multiple times already that one dev fixed an issue in production, and the next regular deployment overwrote everything.

        But fortunately, it’s just critical infrastructure and nothing important.

        •  henfredemars   ( @henfredemars@infosec.pub ) 
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 year ago

          When I left my last job they were using the zip file method for version control and one creative developer managed to link two versions of libc at the same time.

          Software is so useful that the standard for utility is extremely low.

  •  flashgnash   ( @flashgnash@lemm.ee ) 
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    Clearly you should just ship it with the debugger and call it a day

    •  phorq   ( @phorq@lemmy.ml ) 
      link
      fedilink
      Español
      arrow-up
      5
      ·
      1 year ago

      Exactly, who would put a rebugged version into production anyway?

      •  flashgnash   ( @flashgnash@lemm.ee ) 
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        That would just be irresponsible we want fewer bugs not more of them!

  •  vithigar   ( @vithigar@lemmy.ca ) 
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    For those of you who’ve never experienced the joy of PowerBuilder, this could often happen in their IDE due to debug mode actually altering the state of some variables.

    More specifically, if you watched a variable or property then it would be initialised to a default value by the debugger if it didn’t already exist, so any errors that were happening due to null values/references would just magically stop.

    Another fun one that made debugging difficult, “local” scoping is shared between multiple instances of the same event. So if you had, say, a mouse move event that fired ten times as the cursor transited a row and in that event you set something like integer li_current_x = xpos the most recent assignment would quash the value of li_current_x in every instance of that event that was currently executing.

  •  whoisearth   ( @whoisearth@lemmy.ca ) 
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    When I write APIs I like to set endpoints to return all status codes this way no matter what you’re doing you can always be confident you’re getting the expected status code.

  •  Nighed   ( @Nighed@sffa.community ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Someone has a compiler if statement left somewhere in their code (… probably)

  •  Tiefling IRL   ( @tiefling@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    The most cryptic status code I’ve received is 403: OK, while the entire app fails to load

  •  bassdruminphonebox   ( @bassdruminphonebox@beehaw.org ) 
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    https://en.m.wikipedia.org/wiki/Heisenbug

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 152 users / day
  • 293 users / week
  • 728 users / month
  • 2.95K users / 6 months
  • 867 local subscribers
  • 39.6K subscribers
  • 1.1K Posts
  • 9.88K Comments
  • Modlog
  • mods:
  •  AgreeableLandscape   ( @AgreeableLandscape@lemmy.ml ) 
  •  cat_programmer   ( @cat_programmer@lemmy.ml ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code