Monday, August 20, 2007

Perl 6

Perl is the perfect example of a language that proves that amateurs cannot be trusted with developing programming languages. It was developed by a linguist of all people, called Larry Wall (picture below) and it shows. Perl is just as illogical as human language, except impossible to understand. Here's a snippet of Perl code:

sub soundex
{
local (@s, $f, $fc, $_) = @_;
push @s, '' unless @s;
foreach (@s)
{
tr/a-z/A-Z/;
tr/A-Z//cd;
if ($_ eq '')
{
$_ = $soundex_nocode;
}
else
{
($f) = /^(.)/;
tr/AEHIOUWYBFPVCGJKQSXZDTLMNR/00000000111122222222334556/;
($fc) = /^(.)/;
s/^$fc+//;
tr///cs;
tr/0//d;
$_ = $f . $_ . '000';
s/^(.{4}).*/$1/;
}
}
wantarray ? @s : shift @s;
}


larrywall.jpg

Did I mention Larry is buddies with King Richard?

RichardStallman-LarryWall.jpg

As if this is not enough reason to avoid Perl, there's something else. Freetards constantly blame companies like Microsoft with showing off and promoting software that does not exist yet, that doesn't ship. Vaporware they call it. However the biggest example of Vaporware (leaving out Duke Nukum Forever) is Perl 6. Perl 6 was first mentioned in 2000. That's 7 years ago. Perl 6 is still not out and it's entirely unclear when (and if) it ever will be.

I'd stick to VB Script thank you very much. That's actually code-like-you-talk done right.