Thursday, March 29, 2007

A rant on Perl

In case you're wondering why I haven't posted anything the last 24 hours: I've been up to my neck in the stupidest, most brain dead, drug addled technical BS ever created: Perl. Please quit reading unless you want to read a technical rant from an irate Cajun...

You were warned. Okay. Here we go: What kinda fuckin' drugs was Larry Wall smokin' when he designed Perl's reference system? And what kinda drugs was he fuckin' smokin when he designed Perl's object system? And man, you put the two together, we're talking fucked, fucked, fucked!

Look, I'm not trying to do anything fancy. I'm just trying to store an array into a hash reference that gets blessed as an object, then later retrieve the array. Simple enough in Python or Ruby or Java. But in Perl? Noooo! Perl's rules for dereferencing appear to be even more arcane and ridiculous than those of "C" (I went to the book store and checked a dozen "C" books on how to create an array of pointers to functions that return an int, and one -- ONE -- got it right out of all those books. Even the experts get confused!). What is literally TWO WORDS in Ruby "return self.stuff" -- is all sorts of arcane incantations in Perl, indeed, the only way I've managed to make it work is to store a *reference* to an array into the hash and then retrieve the reference and dereference it later...

I am just SOOO glad that the next project is going to be written in Ruby on Rails... I'm thinking of holding a seance where we burn Perl books or somethin'. This penguin's flippers will be flappin' fer joy then!

-- Badtux the Perl-hating Penguin

No comments:

Post a Comment

Ground rules: Comments that consist solely of insults, fact-free talking points, are off-topic, or simply spam the same argument over and over will be deleted. The penguin is the only one allowed to be an ass here. All viewpoints, however, are welcomed, even if I disagree vehemently with you.

WARNING: You are entitled to create your own arguments, but you are NOT entitled to create your own facts. If you spew scientific denialism, or insist that the sky is purple, or otherwise insist that your made-up universe of pink unicorns and cotton candy trees is "real", well -- expect the banhammer.

Note: Only a member of this blog may post a comment.