From: Gregory Brown Date: 2007-01-06T03:44:02+09:00 Subject: Re: Class Variable Confusion On 1/5/07, Rob Muhlestein wrote: > dblack@wobblini.net wrote: > > You had me at "I generally avoid class variables" :-) > > ...snip... > > I love Ruby madly, but (or "therefore"? :-) I would be happy never to > > see another class variable again. The confusingness-to-usefulness > > ratio is extremely high. > > David and gang, thanks for pulling me out of denial. > > [Here's a blog post about my facing reality, finally: > http://rob.muhlestein.net/2007/01/ruby-class-variables-just-dont-go-there.html] I blogged it too, though mine is mostly just a quick paste of the two bits of code from David and Gary, and a link to your blog entry. My NubyGems series is usually like that, a big chunk of code from an IRB session meant to make people go 'whoa, yeah, that does suck' http://www.oreillynet.com/ruby/blog/2007/01/nubygems_dont_use_class_variab_1.html