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

      This is what peak performance looks like:

      console.log("before dothething");
      let r = dothething();
      console.log("after dothething");
      console.log(r);
      
      • darvit@lemmy.darvit.nl
        link
        fedilink
        arrow-up
        1
        ·
        20 hours ago

        Be careful, the actual logging can happen at a later time, and because the log function may take a reference to the value, if you modify r it may show the modified version of r in the logging instead of the original r.