Learned an important lesson today.
I spent a good chunk of yesterday working on a new project. It’s a Moodle plugin that, when finished, will let you put code online for your students to work on along with tests so they know when they’re done and you can automatically get back a grade.
But while deactivating the plugin in Moodle so that I could reactivate and trigger database table creation I accidentally clicked the button to delete the folder from the computer and everything I did yesterday disappeared.
First step when I started over this morning was to commit it to GitHub and then committed fairly regularly today so that I didn’t lose to much if I do something stupid again.