Monday, August 16, 2010

A rather embarrassing mistake!

Today, I was reminded of a very basic step in programming. Always check-in your code! Well, to be fair to myself, I had to remove 1 file from the checked-in files before merging the transaction, since it was still being worked upon. But, I refreshed my view, and bam, it was overwritten, and it wasn't even checked in anymore!

So I had to write the whole function again. Thankfully, it was not very complicated, neither was it many lines of code so it wasn't a big deal. However, it could have caused a major problem had I been on a deadline and the file was vital. Moral of the story, if you need to unbranch something from your transaction for whatever reason, make sure your changes are backed up BEFORE you refresh the view!

0 comments:

Post a Comment