incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albin Stigö <>
Subject So here is an idea...
Date Wed, 12 Oct 2011 08:59:56 GMT
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

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?


View raw message