incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quang Van <>
Subject Re: Node.js client for CouchDB
Date Fri, 08 Jun 2012 18:22:50 GMT
Any good Nano vs Cradle comparisons?

I'm using cradle right now... and if a lot of people is recommending Nano
over cradle, I wonder why...


On Fri, Jun 8, 2012 at 1:25 PM, Mark Hahn <> wrote:

> > I find myself wondering why someone hasn't simply taken the javascript
> code that
> runs Futon and dropped it into a node.js module?
> I did something like that.  I wrote a module that was a clone of jQuery
> that just implemented the ajax with http.requests.  Then I made minor mods
> to the jquery code supplied with futon to make it a module.   So I was able
> to write DB code that ran on the server and client with no mods.
> I found 3 reasons to not do this ...
> 1) The futon driver used a sync ajax call which was impossible to implement
> in node.  I had to rewrite some of the code.  The person at microsoft who
> decided to include an sync call should be shot, as well as the futon coder
> who used it.
> 2) The futon driver used non-standard callback returns.  Different
> callbacks were used for success and error.
> 3) I discovered there was no benefit in my code to having the same code run
> both places.
> So I switched to nano.  I love nano. I'm using rpc's over to get
> db access from browser.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message