cm0002@sh.itjust.works to Programmer Humor@programming.dev · 3 days agoMadness or brilliancefeddit.orgexternal-linkmessage-square38linkfedilinkarrow-up1449arrow-down16
arrow-up1443arrow-down1external-linkMadness or brilliancefeddit.orgcm0002@sh.itjust.works to Programmer Humor@programming.dev · 3 days agomessage-square38linkfedilink
minus-squarekubica@fedia.iolinkfedilinkarrow-up17·2 days agoThis 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-up1·14 hours 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.
minus-squarehotdogcharmer@lemmy.ziplinkfedilinkarrow-up5arrow-down1·2 days agoHey how’d you get your hands on my code
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