F
25

My entire project crashed because I didn't back up my code

Last Thursday, I was working on a simple Python script for a class project. My laptop froze and I had to do a hard restart. When it came back on, my main .py file was completely corrupted and wouldn't open. I hadn't saved a copy anywhere else, not even on a USB drive. I had to rewrite about 200 lines from memory and it took me all night. Has anyone else lost hours of work like this and what's your backup plan now?
4 comments

Log in to join the discussion

Log In
4 Comments
gavin365
gavin3651mo ago
Wait you had to rewrite 200 lines from memory? That's insane, I would have just cried and given up. I lost like 50 lines of a config file once and my brain just went blank, I couldn't remember any of the syntax. Doing that all night sounds like actual torture. I don't even trust my laptop now, I save to a cloud folder after every single change, even if it's just fixing a typo.
7
barnes.stella
Ugh that's the worst feeling... I read this article once where a programmer said they treat their main code like a disposable draft and save copies every few minutes with different names. It sounded crazy but after losing a whole essay once I started doing it too... just save as "project_1", "project_2" all day and delete the old ones at night.
3
brianm66
brianm663mo ago
Totally, I do the same thing with my writing drafts now.
3
grant478
grant4783mo ago
Smart move @brianm66, saves so much headache.
3