470

When your code works, but you don't know how
@programmerhumor

you are viewing a single comment's thread
view the rest of the comments
[-] Dirk@lemmy.ml 19 points 1 year ago

Just containerize the dev environment and ship that to the customer.

[-] TheHalc@sopuli.xyz 17 points 1 year ago

Just make sure to add comments like

//Magic, do not touch

To make sure no-one accidentally breaks the spell.

[-] Dirk@lemmy.ml 11 points 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';
[-] kamenlady@lemmy.world 6 points 1 year ago

if ( "a" == "a" ) { // i swear i saw this somewhere }

[-] Dirk@lemmy.ml 7 points 1 year ago

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/.

[-] echo@lemmy.ml 5 points 1 year ago

If you even know which line of random bullshit you changed that made it work, that is

[-] demonsword@lemmy.world 1 points 1 year ago

//HERE BE DRAGONS

load more comments (2 replies)
this post was submitted on 17 Jul 2023
470 points (97.0% liked)

Programmer Humor

32501 readers
483 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS