python Python Gotcha: 'in'-Operator Precedence Here's a Python 'gotcha' I spotted in this StackOverflow question the other day. It's not something that's ever bitten me, but I thought it was interesting enough to write a quick post about.
python Chatroom: Github Issues I've been avoiding Github's issue-tracker for quite a while now - mainly because I wasn't sure how it worked - but I decided to take the plunge with this project since it's become
python Chatroom: Server Improvements So I made some improvements to the chatroom server I wrote based on the code from the text game I'm developing. Here's some of the changes I've made: Created users persist between server
python Chatroom: Server Design Just a slight detour from the text-game work: I noticed that a lot of the functionality we were building into the server would be useful for an IRC-style chatroom. There's a very barebones
python Server-Client Demo I worked on this for a bit longer than I thought I was going to, but I've also got a sturdier product than I was expecting to have at this stage. I've pushed
python Starting Work on the Server To begin with, I want to describe in a bit more detail how I'm imagining the system to work. There will be one main executable file, server.py. It will output only debug
python A New Hope I'm making a new start on the text-based game I've been writing. The code at this point is spaghetti, and I can't develop anything at the speed I want to without relying on
python Python: Back in the Day So the other day I thought it'd be a great idea to take a look at the earliest version of Python that I could find. After a few broken links and a lot
python Parsing: Error Messages Part 2 Parsimonious, the library I'm using, provides a super useful class for visiting nodes in a parse tree called a NodeVisitor (appropriately enough). In order to use our generated parse trees for commands or
python Parsing: Error Messages and Accessibility At the moment, generate_parse_tree is returning a parse tree if it matches a valid command, or None if not. One way of getting more informative error messages (a la Zork) could
python Text Game Update I really think I've got it! I've solved the problems that I faced earlier, neatly outlined by this webpage. Here's the first problem I faced: "Another fun case: some checks apply to
python Interactive Fiction Programming Or, some thoughts on how to implement Interactive Fiction in modern languages. The first thing to note is: it's difficult. Really difficult. But the worst part is, it starts out being easy... Getting