[oclug] Ruby
Michael P. Soulier
msoulier at digitaltorque.ca
Thu Jun 26 22:59:35 EDT 2003
On 26/06/03 Michael P. Soulier did speaketh:
> I have yet to use it myself, but I've looked at it a bit. I find it
> amusing that they're complaining about the ugliness of Perl, because
> it's just as bad. I don't like begin/end statements much, I prefer
> braces, or nothing at all.
As an example of Ruby syntax that I am not a fan of, this is from
Programming Ruby, available online for free.
class KaraokeSong
# ...
def to_s
"KS: #{@name}--#{@artist} (#{@duration}) [#{@lyrics}]"
end
end
I find that really ugly...
http://www.rubycentral.com/book/index.html
Mike
--
Michael P. Soulier <msoulier at digitaltorque.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort." -Harley Hahn, A Student's Guide to Unix
IM: msoulier at jabber.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20030626/8b684550/attachment.bin
More information about the OCLUG
mailing list