June 2009
2 posts
Who says Python doesn't have function static...
If you want to store internal state in a python function, most people would say you need to create a class and use class or instance attributes. Of course you don’t. Python 3 introduces “nonlocal” as a keyword for creating static variables, but you can already make them without this help. In fact, you might even create them accidentally, due to this weird behavior with...
Jun 3rd
Building a Good New User Experience for Elemental...
People don’t like to log in to things until they’re convinced it’s worth it.  That’s a given.  My first thought was to just make a sandbox mode for my game, where you can play it purely on the client side, with a friend or against the computer.  If you wanted to play against other players online, you’d need to log in with an openid provider. I showed off my new...
Jun 1st
-1 notes