this post was submitted on 03 Jul 2025
120 points (94.8% liked)

Programmer Humor

37222 readers
276 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
[–] rolling_resistance@lemmy.world 13 points 1 week ago (2 children)

Sorry this happened.

Use it as an opportunity to learn how to better store and edit your code (e.g. a VCS and a smart-ish editor). For me, a simple Ctrl-Z would be enough to get my code back.

[–] mat@jlai.lu 1 points 1 week ago

I should have put it inside the post text but I used a wrong value inside a test

[–] ftbd@feddit.org 1 points 1 week ago

it sounds like they rm -rf-ed their project. How would Ctrl+Z help here?