Thoughts at the Beginning of Something New (well, sort of new)

A few months ago, I decided not to finish my PhD in literature, and instead return to my prior career as a programmer. It was a huge decision. Since then, I’ve been freelancing and job hunting, with varying degrees of effort and success.

My biggest concern was to avoid repeating my experiences in the Bay Area dot-coms. Ah, those days of youthful innocence! Back then, getting paid to write code seemed like the most incredible thing ever. What more could you want? Needless to say, I burnt out quickly. The industry and people were insane, code quality was subordinate to unreasonable deadlines, and most important of all, I didn’t feel invested in the project ideas I worked on.

dilbert2666700071126.gif

I’ve learned that mission is very important to me. It’s why I’ve enjoyed grad school and and teaching, and why I’ve been good at them: I could get behind what I was doing. When I left, it was because I decided the profession and the current market weren’t right for me, not because I stopped believing in education, literature, and critical thinking.

So this time around, I’ve sent out resumes very selectively. Sadly, finding interesting companies was harder than I expected. And the companies I did want to work for had stringent requirements for certain credentials. Over time, my standards fell. I interviewed at a company working on mobile phone and web integration, and they made me an attractive offer. Though it wasn’t perfect, there were many good things about it, and I could see myself there for the next few years.

Then I got an email out of the blue. A friend had mentioned me to Crosscut, “a guide to local and Northwest news, a place to report and discuss local news, and a platform for new tools to convey local news.” They’re a group of established journalists thinking creatively about using the web while maintaining high standards of quality for regional coverage. Wow, I thought. New technology + socially important writing. Cool.

I’ll be starting a part-time position there next week.

Oh, there are aspects of the job that could be better. But it felt right to sign on to a project that I thought was worthy and important, even if I’m not making an insanely high salary or using the absolute coolest technology (read: python). How serendipitous that Giles Bowkett (whose blog I read regularly) should write today about “The Job I Want Next“: “Alternating between work and art was a mistake. I want to address my artistic interests in a consistent, dedicated way, and that includes programming.”

I’d like to keep as many of my interests consistently in my life as well, instead of jumping back and forth. It’s a good way to guarantee waking up each morning excited about the day. Sadly, it’s not easy to achieve. But I feel like I’m getting a little bit closer to it.

Mashup: Google Maps + Amazon Reviews

Saturday morning I woke up with a rather odd idea: to create a mashup of google maps and Amazon book reviews. I was mildly surprised to discover it hadn’t been done yet. Here’s the result of spending a chunk of the weekend writing it in python (11/15 Update: should now work in Safari, Firefox2, and IE6):

http://mapreviews.codefork.com

It didn’t take long to write, since I’d recently been investigating the google maps API for a friend, and I’d also been doing bits of Amazon integration for a project. The biggest pain was dealing with the 1 call per second per IP address rate limiting mechanism of Amazon’s ECS API: the service returns error codes if you exceed the limit. So the application is pretty slow, especially if others are also using it.

But if you’re patient, it’s fun to watch the map markers gradually pop up. It’s also fun to look up a book with strong political leanings, and see how the ratings are distributed geographically. For example, you can look at The Communist Manifesto by Marx, and Bill O’Reilly’s Culture Warrior (*shudder*). Data for both are cached, so they should load very fast.

The Uses of Torture

Discussions about torture in the public sphere seem like a classic case of people talking past one another. Military and government officials assert that torture is justified because it’s effective, an argument that the mainstream left refuses to directly engage with. In typical self-righteous fashion, lefties go for the moral, ethical, and legal arguments against the use of torture.

And I agree that torture is unethical. But I think it’s worth asking, is torture really that effective?! The very possibility of a “yes” makes the question offensive to most people, but it’s actually a pretty interesting one to ponder. I think the answer depends on what it’s supposed to be effective for.

It seems pretty stupid to torture someone to get information. I don’t have reports, statistics, or historical evidence to back this up. It just seems like common sense: push a human being right up to their threshold of withstandable pain and the brink of insanity, and you know, they might get a little disoriented. I wouldn’t bet my life on the names, dates or locations screamed out by someone in an oxygen-deprived state trying to avoid death by drowning. That’s just me. Maybe the military has different standards for information quality.

If torture doesn’t work, is it good for anything else? Sure, lots of things!

It’s good for putting the fear of God in your darker-skinned enemies. It’s good for quenching the populist thirst for revenge. It’s good for creating jobs for private security contractors while people back home can barely scrape by. In short, it’s good for distracting Americans from the real political and economic problems of the day. Problems that will impact ordinary people’s lives much more directly than any crazed terrorist ever will.

Don’t mention you-know-who!

The past 2 days, the fundraising campaign of a certain Texas Congressman has made it big in the news.

I was amused to see that digg allegedly blocked stories relating to the event. For a brief while, anyhow. My debatewire item made it through, and has been drawing a bit of traffic today.

I’m always intrigued when technical stuff gets caught up in social issues. Should the stories be considered spam? Are they the efforts of online supporters and zealots? Does it make a difference if they’re submitted by supporters or his paid campaign staff? And does it matter that they’re getting voted up and people seem interested in reading them?

It makes my head spin. Only in our nutty, postmodern culture.

Small Victories

It always feels very rewarding when my coding-related problems have happy outcomes. A few small but cool things that have happened recently:

A while ago, I discovered an issue with the way the cherrypy web server resolves “localhost” to an IP6 address on some operating systems. The cherrypy folks actually listened to my suggestion and made a helpful change.

It looks like one person has already benefited from the tiny patch I created for a feedparser issue last week.

When I couldn’t get SQLAlchemy’s “pool_recycle” option to properly close and re-open inactive connections, the estimable Michael Bayer took a minute out of his busy life to explain what I had missed, for which I was extremely grateful. (One of these days, I need to write about a post about how truly amazing SQLAlchemy is.)

Open source projects create the opportunities for good things to happen. Most of the time. (Or maybe it’s just the python projects.)