796
submitted 11 months ago by LolaCat@lemmy.ca to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] xantoxis@lemmy.world 19 points 11 months ago

There is actually an approach for this. Leave the cursed code in, but implement it again in the same file, from scratch, without looking at the cursed code. You'll either unthinkingly fix the combination of conditions that led to bad code being correct, or you'll realize why that was what you needed the whole time.

[-] Yoru@lemmy.ml 1 points 11 months ago

thank you so much

this post was submitted on 13 Oct 2023
796 points (93.5% liked)

Programmer Humor

32060 readers
1242 users here now

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

Rules:

founded 5 years ago
MODERATORS