Hacker News new | past | comments | ask | show | jobs | submit login

So.. story time. While at the university, there was that project where we had to create an elevator simulator in C as a way to learn threading and mutexes. All the tmp files were stored in ./tmp/.

In between build/run/debug cycle, I would "rm -fr ./tmp". But once, I did "rm -fr . /tmp". At that time I didn't know any better and had no version control.

I had to redo that 2 weeks in a night, which turn out to be more easier than expected considered I had just written the code.

My lessons from that:

  A) Version control, pushed somewhere else.
  B) Use simple build scripts.



just run `!rm` and hope for the best




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: