From: Tim Hammerquist Date: 2003-07-11T07:42:43+09:00 Subject: Re: Ruby T-Shirt Idea Mauricio Fern�ndez graced us by uttering: > Xavier Noria wrote: >> Orion Hunter wrote: >> > What we need is a code snippet that is excessively long and >> > obfuscate in Perl, such as a single line of code which has >> > to wrap around the t-shirt to be completed (with all the @ >> > and $ symbols, etc.), and then do the same in Ruby >> > underneath... which only takes a fraction of the width of >> > the front side of the shirt. >> >> IMHO it will be almost impossible to do that, being fair and >> idiomatic with the Perl version, writing readable Perl, and >> getting that ratio at the same time. >> >> Though I would be glad if I was proved wrong :-). > > Something OO? With all the blessing and stuff, Perl is quite > ugly, esp. when compared to the neatness of Ruby... Non-OO, idiomatic Perl can almost always beat ruby by at least a few characters. OO Perl automatically doubles the length (and execution time) of a program. IMHO, whatever snippet chosen should make effective use of iterators, as this is probably the feature that makes Ruby the most unique among its contemporary counterparts. Cheers, Tim Hammerquist -- Ford, you're turning into a penguin. Stop it. -- Arthur Dent, "The Hitchhiker's Guide to the Galaxy"