These are chat archives for cmaher/backbone.hoard

15th
May 2015
Christian Maher
@cmaher
May 15 2015 17:28
I do. I picture it being a lot of work to do that, when you can just do collection.add(model); model.save()
I'm thinking that the collection mapping should probably be a separate thing, since I'd like to keep core Hoard with as small of a surface area as possible
Gary Kaganas
@Seebiscuit
May 15 2015 18:38
It is a lot of work for the case that the collection is not inproc. Otherwise, it should be simple hash. That's why I'm thinking partial support. What do you think?
Christian Maher
@cmaher
May 15 2015 19:07
I'm worried about creating inconsistent behavior-- I'd rather Hoard be less convenient and consistent than more convenient most of the time and inconsistent some times
do you think we can get it consistent?
Gary Kaganas
@Seebiscuit
May 15 2015 20:21
I don't have any good ideas, frankly. And you're right, unless you lock down the policy to something we can serialize, how could we ever know what the policy is?
Christian Maher
@cmaher
May 15 2015 20:36
yep
It might be best to just implement a custom _getUpdateCollection on strategy to work around this, if you really want it
Gary Kaganas
@Seebiscuit
May 15 2015 21:42
Nah. It's easier add to the collection.
'Twas a good idea for another time