couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: So here is an idea...
Date Wed, 12 Oct 2011 09:31:27 GMT
On Wed, Oct 12, 2011 at 11:27 AM, Albin Stigö <albin.stigo@gmail.com> wrote:
> There you go! :-)
>
> On Wed, Oct 12, 2011 at 11:23 AM, Benoit Chesneau <bchesneau@gmail.com> wrote:
>> On Wed, Oct 12, 2011 at 10:59 AM, Albin Stigö <albin.stigo@gmail.com> wrote:
>>> Background:
>>> I've recently been doing a lot of Objective-C Cocoa development for
>>> the mac and iphone. For those of you that don't know Cocoa it's a MVC
>>> framework  (imho on of the best).
>>> In Cocoa you you rely extensively on something known as Key Value
>>> Observing (KVO) for keeping the View (UI) up to date with the Model
>>> (the logic part of your program). I.e. if you change the value of a
>>> variable (property) the ui element it is bound to automatically
>>> updates.
>>>
>>> The idea:
>>> I don't see any reason why this couldn't be done with CouchDB. Using
>>> CouchDB as the Model you could have a javascript library acting as
>>> View and Controller. You would then bind certain fields in your
>>> document to ui elements. The controller would long poll the changes
>>> stream and if the currently viewed document changes the ui can be
>>> updated appropriately (indicating a change or updated)
>>>
>>> tl;dr Instead of polling and updating. Is there something were you can
>>> just bind a doc to the ui and the library handles the rest?
>>>
>>> Is there something like this?
>>>
>>> --Albin
>>>
>>
>> backbone-couchdb :
>>
>> https://github.com/benoitc/backbone-couchdb
>>
>> - benoît
>>
>

I was supposed to post the maintainer link ... Sorry for that.

https://github.com/janmonschke/backbone-couchdb is where you should
take the code from.

- benoit

Mime
View raw message