There is nothing worse than finishing a piece of code and lose it by a programming error in the IDE, that's what happened to me today.
I was working on a new feature for the mission editor, briefing viewer and editor, save the files and started to debug it, after an hour or so, it started to work as expected and I decided to stop debugging and save the changes, when, without warning, the IDE decided to raise an error and shutdown itself.
My cry of agony will resound in the universe over the next few years, and I blame the mothers of some developers at Redmond.
It's really frustrating that these this happened, specially because the work was irretrievably lost, and I have to say that the version I have implemented today do not work as well as the old one, even if now the code is more elegant and more structured.
This leads me to 2 lessons I will not forgotten me in life, save the work before any major action on the IDE and not debug, and edit the code for so long, it is better to lose 10 minutes than 1 hour of work. Mainly because rewriting 10 minutes of work is usually easier.
Well I hope you found this advice useful.