Instead of seeing the example code and thinking 'Ah, yes, that code gets something done in a straight-forward way.', I instead think, 'I'm pretty sure I could build a scripting engine and turn most of that code into ajax calls to json files. Of course, I'd then have to build an in-game editor which allowed you to modify the contents of the json files while playing the game with hot-swapping content. Huh, art? Plot? Fun? Oh, yeah, I guess I'll probably need those... eventually...'
Fortunately, trying (and failing) to make games led me to realize that I really love programming and building maintainable systems.