[rspec-users] class << self considered harmful... really?
Avdi Grimm
avdi at avdi.org
Wed Nov 26 12:21:30 EST 2008
On Wed, Nov 26, 2008 at 12:17 PM, Matt Wynne <matt at mattwynne.net> wrote:
>> And class variables are problematic in Rails in development mode because
>> of class reloading.
>
> And more generally dangerous for threading reasons, right?
All of the above. My rule of thumb is: don't use them unless I have a
very, very good reason. I can't think of the last time I had that
good a reason.
--
Avdi
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