On Sun, Feb 1, 2009 at 1:02 AM, Phlip <[email protected]> wrote: > > I need you to focus: Writing fixtures in blocks to the database, and using a > transaction around each test case is a best practice. Sorry to trigger a > diatribe; I'm aware that the Merb community is very good at finding > alternatives. One of them is extra complex fixture systems, redundantly > declared...
Yeesh. Condescending much? "Best practice" in the absence of context (i.e., the specific problem to be solved) is corporatespeak that means about as much as "synergy" or "standards-based." I don't trust anyone who tries to tell me what the Right Answer is without considering my question. I really don't think you've absorbed yet that Merb isn't monolithic, and the 'community' isn't either. Fixture frameworks are "redundantly declared" because not everybody wants to use them the same way. Personally, I don't like fixtures at all. I'm of the camp that thinks they're fragile and hard to follow. Telling me you have 242 fixtures in your test suite reinforces my opinion. I think, "Holy crap, changing anything in those models has got to be a huge trickle-down headache." I spent some time messing with different factory frameworks, and now I like Machinist. It has a clean syntax and the Sham functionality is a cool idea. I use the dm-machinist gem from Github and I'm happy. Would you be happy with Machinist? I don't know and I don't care. I can tell you it works for *me.* One of the reasons you get under people's skin is that when something fails to work for you, you declare it a general failure of Merb or the "Merb community." It's not. The most useful thing Derek said was something you rolled right over. "It looks like the main issue is you are attempting to learn Merb through updating someone else's code." He's right. That's not effective, given that you don't seem to especially care about the code you're working with. If you really want to exercise the framework, think of a problem you need solved, and write an application to solve it. Fiddling with tests for code you don't intend to use and that doesn't resemble your real use cases is... Well, I was going to say "it's just masturbating," but it isn't even that. It's like _practicing_ masturbating with scale model action figures. And then declaring that sex isn't everything you heard it was. -- Have Fun, Steve Eley ([email protected]) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
