[rspec-users] Fixjour and others
patnakajima at gmail.com
Sun Feb 8 09:01:49 EST 2009
I started writing up a response about why I wrote Fixjour, and why I
want it to be its own project, but it got really long. Here's a
Markdownified gist: http://gist.github.com/60389.
For the record, I think FR is a great tool (I link to it in Fixjour's
README), it's just not for me. Read the gist above and you'll be able
to see why.
On Feb 7, 9:36 pm, Jim Morris <wolfma... at gmail.com> wrote:
> Well sometimes one can't use an existing library becuase of some
> reason or other, like in my case not using ActiveRecord.
> So I came up with yet another way to do it, I think it is a hyvrid
> between Fixtures and Factories.
> outlined here...
> On Feb 7, 8:16 am, Jay Levitt <lists-rs... at shopwatch.org> wrote:
> > Scott Taylor wrote:
> > > [
> > > "So my main objective with fixjour is to have the simplest
> > > implementation possible, with a very simple API. So it will create the
> > > following methods: new_[model], create_[model], and
> > > valid_[model]_attributes."
> > This seems to be an anti-pattern in the Rails community:
> > "I can't follow Library X, so I'll write Library Y, which is lightweight and
> > obeys YAGNI, and is the simplest possible implementation."
> > I confess: I've done it too. But it's nearly always the wrong approach. If
> > you can't follow Library X's *implementation*, but you agree with its
> > *philosophies*, refactor it!
> > Competing libraries should have different goals, different purposes,
> > different anything other than just "cleaner code". If Merb can refactor
> > itself into Rails, you can do it with fixtures, authentication, file
> > attachments, or what have you. As easy as Github makes forking, the choice
> > of libraries should no longer be driven by "this one was updated most
> > recently" or "this one uses the most recent design idioms".
> > As someone wrote recently: The minute you start coding, you're writing
> > legacy code.
> > Jay Levitt
> > _______________________________________________
> > rspec-users mailing list
> > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users