(no subject)
When I'm sitting in front of a computer and I get bored, I usually type a series of commands that check whether I have any new email, any new netnews, anything new on GROGGS, or anything new in any of the livejournals I read.
Today I got sick of typing four different commands, so I wrote a wrapper that brings them all together. Now I just type "bored" and the machine automatically goes and checks all my usual haunts for me.
I'm already thinking this may have been a mistake: the act of typing four separate commands and dithering in between them usually occupied up to a minute, but now I have the "bored" command it takes more like two seconds. This gives me an extra 58 seconds to spend actually being bored, so I'm unconvinced that it's an improvement! :-)
no subject
More options
(Anonymous) 2002-07-10 02:45 pm (UTC)(link)no subject
*blinks*
The LJ stuff works well in Python because
urllibhandles all the messy details of HTTP POST requests. I'm sureboredcould have been just as easily done in Perl but I seem to have been on a Python kick recently. If I'd just been writing a load of other stuff in Perl I might perfectly well have done it in Perl...(Anyway, if you want a heart attack look at
ljscan, which was what I used instead ofljpollbefore I had an LJ account :-)Re: *blinks*
I wasn't criticising you're choice of language; my point was that writing it in python is a perfectly reasonable thing to do. That my brain immediately decided to translate it into Perl in order to understand it either displays an excessive bias towards Perl, or a fluency in it that vastly exceeds that which I possess in most other languages.
Whichever it is; I feel this needs to be rectified ;}