[rspec-users] class << self considered harmful... really?

Mark Wilden mark at mwilden.com
Thu Nov 27 21:17:23 EST 2008

On Thu, Nov 27, 2008 at 5:57 PM, Brian Takita <brian.takita at gmail.com>wrote:

> I'm wondering if this is a discussion about taste.

I think you're right. I've been using the 'def self.foo' style in various
languages for almost 20 years, so of course it feels more natural to me.
These languages (except for Smalltalk) had nowhere near the metaprogramming
capability nor 'objects all the way down'-ness of Ruby, and 'class << self'
is one of those things.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081127/214011a2/attachment.html>

More information about the rspec-users mailing list