anders@rytter.me to Programmer Humor@lemmy.ml · 1 year agoWhen your code works, but you don't know how rytter.meimagemessage-square19fedilinkarrow-up1425arrow-down112file-text
arrow-up1413arrow-down1imageWhen your code works, but you don't know how rytter.meanders@rytter.me to Programmer Humor@lemmy.ml · 1 year agomessage-square19fedilinkfile-text
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up10·1 year ago// Do not delete! Yes, it's not used anywhere in the code, but if it is removed // the application crashes and the error code is useless for debugging. let f = 'a';
minus-squarekamenLady.@lemmy.worldlinkfedilinkarrow-up4·1 year agoif ( “a” == “a” ) { // i swear i saw this somewhere }
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up6·1 year agoI once did const theNumber = 4 in a function (and then took a second, actually random, number and compared it to theNumber). In the comment to the function I actually referenced https://xkcd.com/221/.
// Do not delete! Yes, it's not used anywhere in the code, but if it is removed // the application crashes and the error code is useless for debugging. let f = 'a';
if ( “a” == “a” ) { // i swear i saw this somewhere }
I once did
const theNumber = 4
in a function (and then took a second, actually random, number and compared it totheNumber
).In the comment to the function I actually referenced https://xkcd.com/221/.