Well, there goes 5 hours!
-
Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)
"Go forth into the source" - Neal Morse
-
Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)
"Go forth into the source" - Neal Morse
Use source control, either a local repository on both machines or (ideally) one with a repository both machines can access (if both have the internet you could use GitHub for example). I use SC even for my noddy projects on a local machine just in case stuff like this happens and anyone can mess up and once the code is overwritten it's gone.
-
Yesterday, I put in around 5 hours making changes on a form. This was done on a laptop having a synched drive to my home-office server where the development files are kept. I've learned with the laptop that it's actually safer to copy the project from the synched folder(s) and work on them locally, then manually replace the files when I get back to the office. Anyway, I opened the project from the local directory where I had copied it and spent the day putting in the new changes, and getting it all working. Hooray! This morning, I got out the laptop and let it synch up to the network, then opened the local folder where I had done all my work, got the files I wanted, and replaced them on the network drive. It was then that I realized that the file dates/times were wrong...I had actually been working on the offline/synched files and had just overwritten 5 hours of work! :(( There seems to be no way to get it back either...bummer! It'll take me at least 2.5 hours to rewrite it, but I've already got ideas for improvements! (trying to be optimistic!)
"Go forth into the source" - Neal Morse
This is one of the many, many reasons to use some form of source control. With modern editors and IDEs, the overhead is negligible and it saves you so many headachese - this scenario being just one of them.