The Shape of Everything
A website mostly about Mac stuff, written by Gus Mueller
» Acorn
» Retrobatch
» Twitter
» Micro.blog
» Mastodon
» Instagram
» Github
» Maybe Pizza?
» Archives
» Feed
» Micro feed
May 18, 2003
(This post is from my old, old, super old site. My views have changed over the years, hopefully my writing has improved, and there is now more than a handful of folks reading my site. Enjoy.)

I've been playing with python a little bit more lately- and as an experiment I started rewriting the code that runs my website in it. I've boiled the presentation layer (the stuff the pulls data out of the database, stiches it together, marks it up, and loads macros and such) to just under 200 lines.

Yikes, that's itty bitty. Granted, it doesn't have all the same caching features of the java version I wrote (which uses alot of code) and I don't care about database pooling since it's running as a cgi... but it's hosted on a fast box, so it kind of makes the issue moot. And if it does get to be a problem I've got a really simple solution- Python's serialization tools rule.

But anyway- I'm really really starting to like Python.

Here's today's Stevie update: We went down to Springfield, MO this weekend to vist Kirstin- it rained alot, so there was no camping or hiking to be done, but we had a good time anyway. We all visited lake Springfield, which is kind of rotten, and we shouldn't have let Stevie get wet... but we did anyway- and now he stinks, and so does my car. And he almost ripped my arm off chasing geese.

I've also figured out the secret to getting him to quite down- take him on a bike ride. A couple of laps around the neighborhood and he's ready to pass out. Sweet.