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

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年前
message-square
25
fedilink
  • DonjonMaister@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    2年前

    Stage 4.5: console.log() everything.

    • zqwzzle@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      2年前

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

      • V699@kbin.social
        link
        fedilink
        arrow-up
        7
        ·
        2年前

        Race conditions are the worst

        • zqwzzle@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          2年前

          Good ol’ Heisenbugs.

      • sickmatter@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        2年前

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

    • danc4498@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2年前

      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年前

      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.

  • 449 users / day
  • 1.31K users / week
  • 2.12K users / month
  • 7.74K users / 6 months
  • 440 local subscribers
  • 38.6K subscribers
  • 1.89K Posts
  • 39.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org