02 August, 2009

Python & Twisted Words

I wrote something like three hundred lines of python yesterday. I sat in my chair for, no shit, fifteen hours, not stopping to eat. I. Wrote. Code. I wrote some of the most beautiful code I've ever written, and I'm not even done polishing the bannisters. And let me remind you that my exposure to python had been, up to that point attending a lecture or two online and fixing some slacker's code.

Not only did I come up from zero to writing a state machine in Python, but I found bugs in the Words api that are documented in the source, on my first fucking day of using it. Basically, the Words api is great, but it requires the user to keep a lot of state, and that's very un-DRY.

I also, for the first time in my life, wrote code with the primary goal of it being beautiful. It is functional. It does everything I need it to, for its infant form, but it will not sacrifice form for function. The code incorporates its documentation and shows you why it does something as it does it.

Those people that say that documentation is hard? That manpages are too much effort? That syntax checking and unit tests are a waste of time on a small project? They are cowards. They are people with poor taste and an absolute lack of aesthetic. Life is too short to write code you wouldn't want to dream about.

You slimy, skeezy bastards know who you are, and you know you write shitty code. Keep doing it, and you'll destroy python just like all your perl contemporaries destroyed perl5. Keep it up. I hope you choke. Fucking nepotist heathens.

0 comments: