{"id":85,"date":"2008-01-22T23:42:09","date_gmt":"2008-01-23T07:42:09","guid":{"rendered":"http:\/\/evanlenz.net\/blog\/2008\/01\/22\/ninja-pain\/"},"modified":"2008-01-22T23:45:30","modified_gmt":"2008-01-23T07:45:30","slug":"ninja-pain","status":"publish","type":"post","link":"https:\/\/evanlenz.net\/blog\/2008\/01\/22\/ninja-pain\/","title":{"rendered":"Ninja pain"},"content":{"rendered":"<p>This is how the PianoNinja is feeling tonight after suffering a difficult blow:<\/p>\n<p><img src='http:\/\/evanlenz.net\/blog\/wp-content\/uploads\/2008\/01\/finalninjaouch.png' alt='Out-of-sorts ninja' width=\"261\" height=\"252\"\/><\/p>\n<p>We had a little setback involving lost code. Ironically, this happened when I was trying to set up version control to guard against this very thing. I&#8217;ve posted a message to the user&#8217;s list for the <a href=\"http:\/\/www.netbeans.org\">IDE<\/a> that failed to give me a warning before deleting all this naive user&#8217;s code, in hopes that similar mistakes by other users can be prevented. Hindsight is 20\/20. I should&#8217;ve backed it up before trying to&#8230;back it up. It would also have been good to have <a href=\"http:\/\/www.apple.com\/macosx\/features\/timemachine.html\">Time Machine<\/a> set up already, but I hadn&#8217;t done that either.<\/p>\n<p>Thankfully, I did still have an older version of the code from before I switched over to the development environment that I&#8217;m now using, so I don&#8217;t have to start <em>totally<\/em> all over. And you can be sure that I have already secured that code into version control on a server machine so that I can continue from now on from a solid base.<\/p>\n<p>How bad is it? Well, we were on <a href=\"http:\/\/evanlenz.net\/blog\/2008\/01\/22\/pianoninja-video-7-notation-consistent-note-releases\/\">Video #7<\/a>. Let&#8217;s just say we&#8217;ve now reverted back to <a href=\"http:\/\/evanlenz.net\/blog\/2008\/01\/07\/video-3-klavarskribo-game-with-midi-keyboard\/\">Video #3<\/a>. In other words, all the code I wrote in the last two weeks is gone.<\/p>\n<p>Maybe this is a blessing in disguise. Sure, I learned a lesson and I won&#8217;t make this mistake again. But the blessing might be that my continued dependency on MIDI files as the game&#8217;s underlying format is now that much less alluring. The MIDI crutch has been snatched out from under me. I don&#8217;t need to wrest myself from the MIDI code so I can move onto a better way. The code has wrested itself from me&#8230;<\/p>\n<p>I was going to add bar lines tonight. Oh well, those can wait.<\/p>\n<p>Before you know it, the ninja will be feeling better than ever.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is how the PianoNinja is feeling tonight after suffering a difficult blow: We had a little setback involving lost code. Ironically, this happened when I was trying to set up version control to guard against this very thing. I&#8217;ve posted a message to the user&#8217;s list for the IDE that failed to give me [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,9],"tags":[],"_links":{"self":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evanlenz.net\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}