Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
sellingspams@feddit.de to Programmer Humor@lemmy.ml · 2 years ago

6 stages of debugging

i.imgur.com

external-link
message-square
25
fedilink
459
external-link

6 stages of debugging

i.imgur.com

sellingspams@feddit.de to Programmer Humor@lemmy.ml · 2 years ago
message-square
25
fedilink
  • DonjonMaister@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    2 years ago

    Stage 4.5: console.log() everything.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 years ago

      And then the logging fixes the subtle timing issue causing the problem.

      • V699@kbin.social
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        Race conditions are the worst

        • zqwzzle@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Good ol’ Heisenbugs.

      • sickmatter@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Especially if logging ends up spreading a global mutex around the log file.

    • danc4498@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      We have logging software built in, but I can never remember how to turn it on, so I just console.log

    • 0x4E4F@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 years ago

      Step 4.6: Get another drive for the logs.

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.

  • 337 users / day
  • 1.34K users / week
  • 3.58K users / month
  • 9.86K users / 6 months
  • 440 local subscribers
  • 36.6K subscribers
  • 1.78K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org