A Valuable Lesson in Version Control
So there I was, full of caffeine, madly tweaking both my style sheet and my index.php in notepad at 10:30 last night… tweak, save, upload, refresh. Hmmm… let’s move that 5 pixels lower. tweak, save, upload, refresh, etc., ad nauseum.
All was going well. So well, in fact that I managed to overwrite the ‘good’ versions of both files - and suddenly : gobbledy-gook! Ack! Formatting all shot to hell!! %$!@, &^*!, and double-%$#@ And no clean version of either file to revert to.
The SO, who writes code for a living, was highly amused.
I dragged myself away from the laptop, muttering and cursing, and finally fell asleep at about midnight, still trying to figure out what I had changed that destroyed my hours of painstaking work. mutter, mutter, curse, curse.
This morning, re-fortified with much caffeine, I tackled the problem again. After two painful hours, I did manage to find the single inadvertently deleted } in my style sheet that had wreaked such havoc. Grrr.
The lesson here, friends, is BACK EVERYTHING UP. Always. Without exception.
