On Indentation
I don't understand why so many otherwise intelligent programmers insist on using spaces to indent lines of code. The whole purpose of a tab is to advance the cursor to a specific position. These positions are customizable in every capable editor out there. Why force your formatting on everyone who has to read or edit your code? It's not like you sit there and hit the spacebar 2, 3, 4, or 8 times; you hit tab and tell your editor to translate it to spaces. In fact, you go to great lengths to have your editor pretend a group of spaces at the beginning of a line is one unit -- a tab, if you will. What's the point? A tab is the semantically correct equivalent.
Read the rest of this entry...
mod_python and strife
Allow me to share my woeful experience with Apache and mod_python, in the hopes that I can spare at least one person from the same ordeal. Don't worry, it has an almost-happy ending.
Read the rest of this entry...
Flickr API
I'll spare you the boring "Hello World" post (which I typed at least twice) and jump straight into things. Chances are, if you've ever tried calling into the Flickr API from python, you've run across FlickrClient and flickr.py. I tried both, and both worked as advertised. The former, while very cleverly implemented, felt un-pythonic from the underscores in all the calls. Also, the use of xmltramp seemed like overkill. The latter was basically a lot of [IMHO] unnecessary wrapper code.
