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
Posted by: BadTux / 3/29/2007 11:28:00 AM
- Name: BadTux
- Location: Some iceberg, South Pacific, Antarctica
I am a black and white and yellow multicolored penguin making his way as best he can in a world of monochromic monkeys.
View my complete profile
April 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / May 2007 / June 2007 / July 2007 / August 2007 /
Bill Richardson: Because what America needs is a competent fat man with bad hair as President (haven't we had enough incompetent pretty faces?)
Cost of the War in Iraq