Posts tagged programming

Days of Code: A Perl Uploadr // Day 3

Today was rather hectic; exam preparations (actually, there was some Perl and Apple Script involved there!), some homework, and …. life…. I will return to Perl code tomorrow. Just thought I’d update to say that there was no update.

Tomorrow will be back to routine of my Mon->Fri-ness so there will be ample time to spend in front of Espresso… even better if it’ll be with espresso!

Quick Self-Exam of Writing Syntax

I was writing my update to my Perl uploader project for today when it dawned on me that my writing syntax has evolved.  I saw that in place of the usual -- I began to use almost a year ago has been replaced by // which isn’t just present in my Tweets and blog posts, but also my SMS’.  Also looking at my old (PHP) code I’ve noticed that my variable names have progressively gotten shorter; for example, in my first (fully functional) PHP project, a simple URL shortener, a typical variable had a name like

$urls_database_connection_handler

, whereas in my latest incarnation of it (it’s somewhat integrated into the Uploader), it’s simply

$qh_urls

(for query handle for urls database).  Two factors are at play: 1) The names are now much shorter and 2) I’m using caps instead of underscores to delimit words for my readability (it makes me think of Obj-C best practices, but I don’t know). Just a thought.

Days of Code: A Perl Uploadr // Day 2

Today was an unproductive day, as you can see from my submissions of the day, or lack there of.  The sum of all the time I’ve been able to allocate to this has been about an hour, but I’m in no hurry to rush this.  Later will be the testing time when this file probably be a real SOB as it uses all three databases, and some functions and features of Perl which I’m not 100% familiar with. (see, lwn.net, it’s not Wranklage!)

However, I did sketch out the basic code for the file.pl.  Take a look.

ScreenShot of Espresso // January 16/10 10:15p // file.pl

file.pl as of tonight in Espresso by MacRabbit.