4 ms·
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
by d0m 11y ago
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.
- abluecloud 11y agojust run `!rm` and hope for the best