anders@rytter.me to Programmer Humor@lemmy.ml · 3 年前When your code works, but you don't know how rytter.meimagemessage-square21fedilinkarrow-up1479file-text
arrow-up1479imageWhen your code works, but you don't know how rytter.meanders@rytter.me to Programmer Humor@lemmy.ml · 3 年前message-square21fedilinkfile-text
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up19·3 年前Just containerize the dev environment and ship that to the customer.
minus-squareTheHalc@sopuli.xyzlinkfedilinkarrow-up17·3 年前Just make sure to add comments like //Magic, do not touch To make sure no-one accidentally breaks the spell.
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up11·3 年前// 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-up6·3 年前if ( “a” == “a” ) { // i swear i saw this somewhere }
minus-square𝘋𝘪𝘳𝘬@lemmy.mllinkfedilinkarrow-up7·3 年前I 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/.
minus-squareecho@lemmy.mllinkfedilinkarrow-up5·3 年前If you even know which line of random bullshit you changed that made it work, that is
Just containerize the dev environment and ship that to the customer.
Just make sure to add comments like
To make sure no-one accidentally breaks the spell.
// 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 = 4in 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/.
If you even know which line of random bullshit you changed that made it work, that is
//HERE BE DRAGONS