cm0002@sh.itjust.works to Programmer Humor@programming.dev · 2 months agoMadness or brilliancefeddit.orgimagemessage-square45linkfedilinkarrow-up1514arrow-down17
arrow-up1507arrow-down1imageMadness or brilliancefeddit.orgcm0002@sh.itjust.works to Programmer Humor@programming.dev · 2 months agomessage-square45linkfedilink
minus-squareDrDystopia@lemy.lollinkfedilinkarrow-up5arrow-down1·2 months agoIt’s like the real life kraken, I’ve never seen it but the name causes dread.
minus-squarekubica@fedia.iolinkfedilinkarrow-up19·2 months agoThis is what peak performance looks like: console.log("before dothething"); let r = dothething(); console.log("after dothething"); console.log(r);
minus-squarehotdogcharmer@lemmy.ziplinkfedilinkarrow-up5arrow-down1·2 months agoHey how’d you get your hands on my code
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up2·2 months agoBe 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.
It’s like the real life kraken, I’ve never seen it but the name causes dread.
This is what peak performance looks like:
console.log("before dothething"); let r = dothething(); console.log("after dothething"); console.log(r);Hey how’d you get your hands on my code
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.