When your code works, but you don't know how
When your code works, but you don't know how
![](https://lemmy.ml/pictrs/image/e47e9f5b-5086-4f67-acf0-47219dc02f71.jpeg?format=webp&thumbnail=128)
![](https://lemmy.ml/pictrs/image/e47e9f5b-5086-4f67-acf0-47219dc02f71.jpeg?format=webp)
When your code works, but you don't know how
@programmerhumor
You're viewing a single thread.
All Comments
20 comments
Just containerize the dev environment and ship that to the customer.
18 0 ReplyJust make sure to add comments like
//Magic, do not touch
To make sure no-one accidentally breaks the spell.
17 0 Reply// 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';
11 0 Replyif ( "a" == "a" ) { // i swear i saw this somewhere }
6 0 ReplyI 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/.
7 0 Reply
If you even know which line of random bullshit you changed that made it work, that is
5 0 Reply//HERE BE DRAGONS
2 0 Reply
20 comments
Scroll to top