Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@sh.itjust.works to Programmer Humor@programming.dev · 6 hours ago

Madness or brilliance

feddit.org

message-square
11
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
194

Madness or brilliance

feddit.org

cm0002@sh.itjust.works to Programmer Humor@programming.dev · 6 hours ago
message-square
11
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or # to comment.
  • goatinspace@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    32 minutes ago

  • Supervisor194@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    47 minutes ago

    Old school. Also the flip side:

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

  • falseWhite@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 hours ago

    Extremely helpful debugging race conditions

  • monkeyslikebananas2@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    Meh alert(“here”); is better

  • 2deck@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    5 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
    ·
    5 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
      16
      ·
      5 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
        ·
        4 hours ago

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

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

          This right here. Time and place for both.

  • DrDystopia@lemy.lol
    link
    fedilink
    arrow-up
    7
    ·
    6 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
      7
      ·
      1 hour ago

      This is what peak performance looks like:

      console.log("before dothething");
      let r = dothething();
      console.log("after dothething");
      console.log(r);
      

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.23K users / day
  • 5.42K users / week
  • 8.67K users / month
  • 18.3K users / 6 months
  • 503 local subscribers
  • 26.7K subscribers
  • 1.73K Posts
  • 56.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.13
  • BE: 0.19.13-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org