From: "Bermejo, Rodrigo" Date: 2003-07-11T08:27:40+09:00 Subject: Re: Ruby T-Shirt Idea what about this on in the front .... ---------------------------------------------------------------------- make your life easy .... lrwxr-xr-x 1 root 1 Jan 2003 java -> /usr/bin/ruby lrwxr-xr-x 1 root 1 Jan 2003 perl -> /usr/bin/ruby lwxr-xr-x 1 root 1 Jan 2003 php -> /usr/bin/ruby lrwxr-xr-x 1 root 1 Jan 2003 python -> /usr/bin/ruby lrwxr-xr-x 1 root 1 Jan 2003 sh -> /usr/bin/irb lrwxr-xr-x 1 root 1 Jan 2003 tcl -> /usr/bin/ruby ---------------------------------------------------------------------- -ronnie Tim Hammerquist wrote: >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 > > -- mailto:rodrigo.bermejo@ps.ge.com