Ruby on Rails Wednesday, August 1, 2012



On Tuesday, 31 July 2012 17:57:59 UTC-4, @masihjesus wrote:

Hello Salvatore,

I think using things like spork or the like is just a band-aid and
they are not a solution to the real problem which is the design and
mixing things all together in rails provided and known things,
specially controllers and models. If we have good design with Single
Responsibility Principle and  Separation of Concerns we can have
incredibly fast tests with focused pieces in our design.

Oh just stop it. Bending your app into a pretzel to get faster tests is the "band-aid".  Tools like Spork address a single issue - "environment reloading is expensive" - with a simple solution, not reloading when it isn't needed. That's *far* more useful, especially if you're a developer on an *existing* app and don't have the luxury of rewriting everything into Object-Oriented Nirvana.

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DiL738KsmcEJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment