this post was submitted on 03 Jul 2025
118 points (94.7% liked)

Programmer Humor

37046 readers
46 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

As the title says. I put the wrong value inside a clean up code and I wiped everything. I did not push any important work. I just want to cry but at least I can offer it to you.

Do not hesitate to push even if your project is in a broken state.

you are viewing a single comment's thread
view the rest of the comments
[–] Vince@lemmy.world 5 points 4 days ago (1 children)

Oh man, I hate losing code. Last time it happened I spent more time trying to recover it than it would've taken to rewrite it.

[–] victorz@lemmy.world 3 points 4 days ago (1 children)

You can't just... replace your baby, man!

[–] mormegil@programming.dev 2 points 1 day ago

On the contrary! I found out that a rewrite from scratch leads to much better code and abstractions, as you understand the problem space better. (On the other hand, beware of http://catb.org/jargon/html/S/second-system-effect.html)