Don’t get me wrong, I still love SQLObject. The way it abstractifies database engines is very nice, and the way it treats SQL code in a pythonic way is absolute poetry. But it doesn’t seem ready for primetime.
Two things that have been painful this last week:
- Evidently, you can’t have a boolean table column named “dirty” in SQLObject, because it uses it for internal voodoo. I was getting recursion errors for a couple hours that I couldn’t trace down this weekend until I guessed about the “dirty” flag. They do the same black magic with their “id” table column. Now, there has to be a better way of implementing their code so there’s no overlaps. Private variables? Namedspaced variables? compile-time warnings?
- No way to do orderBy=RAND() in SQLObject queries. I would think this is a common feature people would want. Google yielded no attempts at solutions, and the SQLObject discussion forums had a thread full of suggestions that don’t work
Sigh.
Also on a pythonic note, our benevolent dictator Guido had a good post today requesting advice on python web frameworks. Reading the quite-good comments-discussion that ensued, this just reaffirms my belief that there are many, many options for python web development platforms/frameworks, but no one real good ones. In the gamut between painfully feature-lacking to woefully overcomplicated, there are plenty of options on the peripheries… but nothing in the sweet spot. Where is the Rails of the Python world?
A few notes on the comments:
- It looks like Aaron finally released webpy a week ago. It looks a little feature-lacking still, but definitely going in the right direction. Need to check that out. I respect the zen-like simplicity/usefulness of Aaron’s code, and his coding philosophy.
- I need to buckle down and try out paste someday too.
- TurboGears might probably be very good when it makes it to 1.0
</nerdery>
An entry of more personal flavor:
It’s been almost a month now that I’ve been married. Life is slowly settling back to normal. Our bed finally arrived today (no more sleeping on two unequal-height twin mattresses pushed together, THANK GOD). The books are getting unpacked and the pictures are getting placed on the walls… There’s still a tremendous backlog of things to do. Re-establish relationships that had been neglected during the hectic months of wedding planning, write thank-you notes, continue settling in to the apartment… Also, I’ll be proposing my thesis in three months or so, so there’s quite a bit of work there too.
It’s busy times, but happy times.
While doing my best to shake off digital guilt, I’ve been slowly reading through the backlog of weeks of unread blogs in my spare time. We Make Money Not Art had a great commentary, Panoptic Insecurity, on an installation entitled Gun Control.
Gun Control is an electromechanical installation, which explores underlying issues of both security and surveillance. Each of the four units incorporates a police-issue revolver and a small video camera. As people move into the installation space, the cameras track the movement and the guns follow. However, the technology is imperfect. The cameras do not always function properly. The revolvers point at different targets. They sometimes twirl about playfully. The armatures shake and rattle. We are directly in the line of fire. This piece raises questions about our security-surveillance apparatus by prompting a visceral reaction.
Beautiful and reactionary, and unsettling in a very proper and emotionally manipulative way. And the message is so good.
Back now. And married, too! Strangely enough, not much is different, with a few subtle exceptions:
- our kitchen is a bit more well-equipped from the wedding gifts
- I get to wake up every morning next to a beautiful woman
- our apartment is an absolute mess from all the moving boxes
- I suddenly have a little free time, because there’s no more wedding to plan
- I don’t have to say goodbye to Mindy at night any more.
The wedding turned out wonderfully, if a bit hectic (all the “usual” last-minute wedding preparations, plus the emotional strain, plus moving Mindy’s stuff into my apartment, plus the wonderful-but-tiring opportunity to host 6 out-of-country guests (bridesmaides, plus the parents-in-law, plus my sister-in-law-in-law (err, my brother-in-law’s wife… what’s the name of that relationship?) ). It was Mindy’s parents first time in the states, which meant it was the first time our parents met, and also the first time that I got an opportunity to really host them. That last bit was really good–the opportunity to host them. In the past, I had always been visitting them, which meant it was them driving me around, them treating me to good restaurants, them cooking for me. I find it hard, generally, to serve Taiwanese parents. (don’t misunderstand, the hard part is not in finding motivation to serve, but in getting them to let you serve them. From my ?? perspective, the parent-child relationship is so fixed that it’s almost awkward for them to receive care instead of giving care). However, now that they were on my home turf, heh… I finally got to treat them at restaurants, drive them around, cook for them. It was wonderful to be able to return the love, finally.
But man, that last week before the wedding was hectic.
More later–hopefully plenty of pictures, an itinerary of wine tasting (the blogosphere was disappointingly uninformative on good santa barbara vinyards to visit), and santa barbara food.