News for hackers. Stuff that matters.
Re:Toy Store: ORM for Riak, Redis, Cassandra, Memcached, dar... by JonnieCache on Thursday January 27, 2011 @02:35PM (#2149141)
And it's ActiveModel-based! Hallelujah!

For those not of a rails persuasion, ActiveModel is basically all the non-datastore stuff abstracted out from ActiveRecord, rails' ORM.

So, this Toy Store lib will share all its validation, accessor etc. apis with ActiveRecord and so will already automatically be compatible with the huge range of rails libraries out there. A good example is simple_form, a rails gem for doing lovely forms without any markup. In theory you should be able to hook this into Toy Store and therefore all those key/value stores with zero effort.

https://github.com/plataformatec/simple_form

ActiveModel is on course to become Rack for data objects. When this idea is fully explored it's gonna make so many things so easy.

Soon we're all going to be auto-generating javascript client-side validation code from our server-side activemodel validation definitions, without ever having to think for a second about how or where the data is actually stored.

Re:Toy Store: ORM for Riak, Redis, Cassandra, Memcached, dar... by kotrin on Thursday January 27, 2011 @07:23PM (#2150226)
abstraction abstraction abstraction