Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AB2E4BFC for ; Sat, 4 Jun 2011 18:26:26 +0000 (UTC) Received: (qmail 4954 invoked by uid 500); 4 Jun 2011 18:26:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4918 invoked by uid 500); 4 Jun 2011 18:26:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 4910 invoked by uid 99); 4 Jun 2011 18:26:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 18:26:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.161.180] (HELO mail-gx0-f180.google.com) (209.85.161.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jun 2011 18:26:19 +0000 Received: by gxk10 with SMTP id 10so1785791gxk.11 for ; Sat, 04 Jun 2011 11:25:57 -0700 (PDT) Received: by 10.146.248.19 with SMTP id v19mr592995yah.25.1307211957272; Sat, 04 Jun 2011 11:25:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.125.13 with HTTP; Sat, 4 Jun 2011 11:25:37 -0700 (PDT) In-Reply-To: <20110604124653.8ba3b3b6.mk@cognitivedissonance.ca> References: <20110602082348.1d0b6ed2.mk@cognitivedissonance.ca> <20110603075541.fbe3f2ec.mk@cognitivedissonance.ca> <20110604124653.8ba3b3b6.mk@cognitivedissonance.ca> From: Mark Hahn Date: Sat, 4 Jun 2011 11:25:37 -0700 Message-ID: Subject: Re: Updates To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015175cfa4e5c023104a4e700dd --0015175cfa4e5c023104a4e700dd Content-Type: text/plain; charset=ISO-8859-1 > I don't want to duplicate/rewrite them for couch. I'm using nodejs and I created a nodejs version of jquery.couch.js so I can run my couchdb access code on either the server or the client with zero changes. On Sat, Jun 4, 2011 at 9:46 AM, MK wrote: > On Fri, 3 Jun 2011 14:52:59 -0700 > Mark Hahn wrote: > > I just hate writing server-side pages that only take an ajax call to > > do one small thing when I can just get it directly from the db with > > ajax. > > Much of what I'm doing requires a logged in user, cookie data, et > al. This has to include ajax routes, because it is spec that we > block spoofing by people who try to bypass the interface (which also > means data validation has to be done server-side). Since those > authentication and validation routines are already part of the server > code proper, I don't want to duplicate/rewrite them for couch. > > > There is probably a performance advantage of going around the > > other server also. > > I imagine a very negligible one. > > MK > > -- > "Enthusiasm is not the enemy of the intellect." (said of Irving Howe) > "The angel of history[...]is turned toward the past." (Walter Benjamin) > > -- Mark Hahn Website Manager mark@boutiquing.com 949-229-1012 --0015175cfa4e5c023104a4e700dd--