Lograh (lograh) wrote,

it's times like this // life

it's been forever and a day since I've actually typed up something resembling code. I had forgotten how much fun it can be, to take an idea, identify the tasks that idea encompases, and create a solution to those tasks.

That, and I had forgotten just how precise you have to be! heh..

props to macklinr's 1337 perl skillz for helping me see the (in retrospect, painfully obvious) error in my code.

still, you get moments when you look at the finished code, and see it fly through the tasks like a hot knife through butter, and just admire the compactness and efficiency of typing that accomplishes that.. It's almost poetic, in a way..

if($line =~ /\Q$_\E+\s*([^\r\n]*)/){print "$1,";}

Such a simple line, yet it drives the script that will take a directory full of data dumps and output a file in proper csv format (well, okay, with the exception of an extra comma at the end of each line, but that's easilly ignored) for importing to any spreadsheet program where we can then get an idea for the state of computing in our college. Now all I have to do is write a dos batch file that the users can run from their email to have their machines generate the data files for me (because it's a bitch to run around to each individual computer when you've got a few hundred to do).

For the record, this was my first perl program ever. Yes, I had somehow manged to make it this far in life without learning perl.

  • A year in the life

    Okay, so not quite a year. More like 10.5 months since last update. At first, I thought that I should write about the whole lazor-eye thing right…

  • pew pew

    I suppose I should make a mention of this. Round about this time tomorrow, I’ll be getting shot at by lasers. It sounds so sci-fi saying it that…

  • Decade?

    I suppose a more complete review of the decade will needs be done at some point (including the question of if 'the decade' is in fact over) but one…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.