diggita
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@sh.itjust.works to Programmer Humor@programming.dev · 7 hours ago

Madness or brilliance

feddit.org

message-square
15
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
219

Madness or brilliance

feddit.org

cm0002@sh.itjust.works to Programmer Humor@programming.dev · 7 hours ago
message-square
15
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • AwesomeLowlander@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    40 minutes ago

    Can somebody reupload the image at a non-feddit.org host? Feddit is incredibly annoying in that it geoblocks most of Asia.

  • falseWhite@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    3 hours ago

    Extremely helpful debugging race conditions

    • TurtleTourParty@midwest.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      29 minutes ago

      Except when adding the log fixes the race condition.

      • PenguinOfWar@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        15 minutes ago

        I see you’ve used Knex.

  • Supervisor194@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 hours ago

    Old school. Also the flip side:

    sudo tail -f /<path to server>/error.log

  • goatinspace@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

  • monkeyslikebananas2@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 hours ago

    Meh alert(“here”); is better

  • 2deck@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    6 hours ago

    To me logging combined with a quick compilation has a good flow to it. Causes you to consider what you want to see and doesn’t change the workflow if multiple stacks are involved.

  • NotSteve_@piefed.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    It drives me crazy that half my coworkers do this, including a senior dev. I’ll be on a call trying to help debug something and it makes it so difficult not being able to set a breakpoint

    • andyburke@fedia.io
      link
      fedilink
      arrow-up
      18
      ·
      6 hours ago

      I console.dir and debugger; and breakpoint all day. You are allowed to mix your strategies.

      • null_dot@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        17
        ·
        5 hours ago

        console for quick and dirty understanding but inspector for more complex fixes.

        • marlowe221@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          5 hours ago

          This right here. Time and place for both.

  • DrDystopia@lemy.lol
    link
    fedilink
    arrow-up
    7
    ·
    7 hours ago

    It’s like the real life kraken, I’ve never seen it but the name causes dread.

    • kubica@fedia.io
      link
      fedilink
      arrow-up
      11
      ·
      2 hours ago

      This is what peak performance looks like:

      console.log("before dothething");
      let r = dothething();
      console.log("after dothething");
      console.log(r);
      
      • hotdogcharmer@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        24 minutes ago

        Hey how’d you get your hands on my code

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: !programmer_humor@programming.dev

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.

  • 2.28K users / day
  • 5.3K users / week
  • 9.06K users / month
  • 10.8K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 438 Posts
  • 7.58K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org