From: Matthew Moss Date: 2006-04-22T05:16:07+09:00 Subject: Re: [QUIZ] Text Munger (#76) On 4/21/06, ara.t.howard@noaa.gov wrote: > On Sat, 22 Apr 2006, Ryan Leavengood wrote: > > > Strictly speaking, any Ruby code can be made into one line with > > liberal use of the semi-colon (;). It would just be an extremely long > > line! > > > > My full, nicely abstracted solution for this quiz is 36 lines > > (including empty lines), but I also wrote a somewhat obfuscated > > one-line version which is 104 characters. But it is missing some of > > the features of the full one. But overall it solves the quiz. It is > > probably possible to make an even shorter version. > > > > Ryan > > > my fully oo version is 12 lines and only 40 words. > > i went golfing and got one line : 96 chars > > let the games begin ;-) Oh great... Now I have to read these solutions when writing up a summary. (Suddenly, I have recollections of my time as a teaching assistant, having to read mountains of pages of Pascal code written by freshman newbie programmers.... .)