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

Avdi Grimm avdi at avdi.org
Tue Nov 25 12:59:41 EST 2008

On Tue, Nov 25, 2008 at 8:41 AM, Matt Wynne <matt at mattwynne.net> wrote:
> Sorry, I know this is off-topic, but I'd really like to know what the
> revered ruby-hackers who read this list think.
> See
> http://ozmm.org/posts/class__self_is_harmful.html

For the case of defining class methods I completely agree.  It's
unnecessary and it makes classes harder to read, because you have to
scroll back just to determine whether you're looking at class or
instance methods.  Just type "def self.foo()".  It's not that hard.


Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

More information about the rspec-users mailing list