Posts tagged perl

Days of Code: Perl URL Shortener

Today I got some work done; I didn’t get anything on my list that I made yesterday done, however I did experiment with jQuery (the Javascript library)… and now have an easy-to-use listing mechanism (to see the sum of all URLs in the database and the viewers logs). Take a look . With that you may notice something… I repurposed my ‘ol Brad-Zone.com domain name — it is shorter than bradarsenault.com (17 vs 13).

I’ve updated the project page at Code >> Perl URL Shortener with today’s code.

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.