posted Oct 31, 2006

I semi-seriously considered doing NaNoWriMo, but I decided it wasn't a good idea to stack that on top of my other hobby programming projects I'm undertaking. I did get as far as the first sentence:

Ph'rillar hated his name.

I'm not sure if comedy-sci-fi is the best genre to NaNoWriMo, but hey, is there really a good genre?

(Maybe if "hackneyed and cliched" is a genre...)

Perhaps next year. Maybe with the new weblog system. Although I'm not sure "NaNoWriMo" + "internet kibbitzers" is a good combination.

On the blog note, I've started unit testing it in earnest. (I find that as awesome as unit testing is, when learning a brand new framework there is enough to worry about in the first few tens of hours without also stacking their testing framework on top; it is enough that they have one.) I blocked up on the difficulty of creating decent test data when you have complicated database structures with invariants that you want to maintain. For various complicated-but-good reasons, to test the act of posting a comment from scratch (initial database) with a non-admin user (which is the only thing in the DB initially) requires the creation of:

Setting up a post for testing is thus obviously a lot of code; I tie as much together as I can reasonably but it's a lot tougher than for simpler, less featureful/normalized models.

Fortunately, I've solved this problem to my satisfaction at work. Unfortunately, that solution is in Perl. Fortunately, the raw code for that solution is pretty simple and should actually be even simpler when Pythonified, so I'm taking some time to port that over. (The raw code is simple because the real magic is in the code structure it affords and empowers.) I'm thinking of releasing it as a "Python egg", because I've browsed around a bit and I have not been able to find an equally sophisticated solution to the problem already available. (A few tentative motions towards supporting simple test data, but not the kind of recursive structures I'd like to see, and each "simple test data" script is isolated.) More about this solution either when I brush it up for public release, or somebody emails me and says, "ohmigosh, I have that problem too, however did you solve it?"

I'd expect that by the end of November I might be rolling out the new digs; might be a bit before that if I figure out a good way to deploy the system in a way that it can be easily updated, so I feel like I can trickle the admin scripts in the background as I need them.

Also, for anybody who types content in textboxes for public consumption online, FireFox 2 has an integrated spellchecker now, about five years overdue. It's missing some oddly basic words, but otherwise, killer feature for people who post.


Site Links


All Posts