From: James Edward Gray II Date: 2006-06-04T05:58:52+09:00 Subject: Re: Where can one find examples of masterful Ruby code? On Jun 3, 2006, at 3:48 PM, Alder Green wrote: > For example: check if integer i is a power of 2, with an expression no > more than 13 characters long. > > Solution: (i & (i - 1)) Yuck. Thanks for reminding me that "masterful code" is definitely in the eye of the beholder. ;) > Out of the many suggestions raised in this thread, it seems that > following the Ruby Quiz would be most appropriate. By such > participation much improvement might be gained. In such competitions, > the winning solutions are frequently required to be "masterful code" > according to the above definition. Ruby Quiz isn't about "winning." It's just a collection of fun exercises to keep us sharp. Everyone who plays or follows along is a winner, in my opinion. James Edward Gray II