cm0002@sh.itjust.works to Programmer Humor@programming.dev · 5 天前Madness or brilliancefeddit.orgimagemessage-square43linkfedilinkarrow-up1507arrow-down16
arrow-up1501arrow-down1imageMadness or brilliancefeddit.orgcm0002@sh.itjust.works to Programmer Humor@programming.dev · 5 天前message-square43linkfedilink
minus-squareDrDystopia@lemy.lollinkfedilinkarrow-up6arrow-down1·5 天前It’s like the real life kraken, I’ve never seen it but the name causes dread.
minus-squarekubica@fedia.iolinkfedilinkarrow-up21·5 天前This is what peak performance looks like: console.log("before dothething"); let r = dothething(); console.log("after dothething"); console.log(r);
minus-squaredarvit@lemmy.darvit.nllinkfedilinkarrow-up2·3 天前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.
minus-squarehotdogcharmer@lemmy.ziplinkfedilinkarrow-up5arrow-down1·4 天前Hey how’d you get your hands on my code
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);
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.
Hey how’d you get your hands on my code