From: Dave Thomas Date: 2001-03-24T15:50:13+09:00 Subject: [ruby-talk:13165] Re: Amusing contrast Kevin Smith writes: > >FWIW, I agree that's an ugly piece of code. So, here's a challenge for > >anyone who wants to try it. Re-express this code in 12 or fewer lines > >of Ruby. Make it look 'nice'. Make it more readable. Do it in > >different styles. And post the results here. > > 1. Make it longer than 12 lines. Well, that's not > a hard requirement, but I sure can't think of any reason to limit it > to 12 lines! Are we targeting this to run inside a toaster in less > than 16K of RAM? No, but clarity and conciseness are not competing goals. I deliberately wanted to see examples that were of comparable length to the original. No takers? Dave