From: Daniel Carrera Date: 2003-01-16T07:39:42+09:00 Subject: Re: Ruby advocacy in sigs On Thu, 16 Jan 2003, Gennady wrote: > > > > my favourite: > > 99.downto 1 do |x| > > puts "#{x} bottles of beer on the wall", > > " #{x} bottles of beer!", > > "Take one down, pass it around," end > > > > puts "No more bottles of beer on the wall!" > > > > A small refactoring ;-) -- > > 99.downto 1 do |x| > puts "#{x} #{@b||='bottles of beer'} #{@w||='on the wall'}", > " #{x} #{@b}!", > "Take one down, pass it around," end > puts "No more #{@b} #{@w}!" > Well, the idea is that any reader can understand the code, thus demonstrating the readability of Ruby. I can't figure out what your code does, so I doubt a non-rubyist would. How about?: 99.downto 1 do |x| puts <