I've been playing with Rails3beta with mongomapper and mongoid the
past week, and started wondering why are they reinventing the wheel?
Then i discovered http://github.com/solnic/dm-mongo-adapter/ and this
group (?!). A DM adapter seems a more intuitive direct approach.
What's the status of this project? it seems the other wrappers
presently have more momentum, but is that the right approach?
On Feb 22, 1:02 pm, linoj <lino...@gmail.com> wrote:
> Hiya,
>
> I've been playing with Rails3beta with mongomapper and mongoid the
> past week, and started wondering why are they reinventing the wheel?
> Then i discoveredhttp://github.com/solnic/dm-mongo-adapter/and this
Probably because they are not familiar with DataMapper.
> Then i discoveredhttp://github.com/solnic/dm-mongo-adapter/and this
> group (?!). A DM adapter seems a more intuitive direct approach.
Yes it is, however it's not as easy as you might think :)
> What's the status of this project?
There's a pre-release available as a gem. I'm using it in 2
applications
but in a very basic setups, no issues so far.
The first stable and fully-featured release will be done along with
the
DataMapper 1.0 release which should happen during next...few months.
I'm
working on various major improvements in dm-core at the moment that's
why I
haven't done much work in the adapter lately. Most of the upcoming
changes in
dm-core will make possible to implement mongo-specific features
without
altering DataMapper's private API, like embedded documents or handling
of
custom property types like Array and Hash.
> it seems the other wrappers presently have more momentum, but is that the
right approach?
With DataMapper you get a lot for free so you don't have to implement
everything from scratch AND you get a bunch of various extensions and
plugins.
For instance I didn't have to implement timestamps, pagination,
aggregations
etc. I just used available DataMapper plugins. That's a great
advantage over
writing a dedicated Mongo framework like MM or Mongoid. We just need
to
finalize DataMapper itself and then the development of the adapter
will be much easier.
Cheers!
solnic