From dev-return-11462-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Thu Aug 19 17:05:45 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 95686 invoked from network); 19 Aug 2010 17:05:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 17:05:45 -0000 Received: (qmail 98465 invoked by uid 500); 19 Aug 2010 17:05:44 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98399 invoked by uid 500); 19 Aug 2010 17:05:44 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 98391 invoked by uid 99); 19 Aug 2010 17:05:43 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 17:05:43 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 17:05:21 +0000 Received: by eya25 with SMTP id 25so1818539eya.11 for ; Thu, 19 Aug 2010 10:05:01 -0700 (PDT) Received: by 10.216.54.16 with SMTP id h16mr128832wec.6.1282237500315; Thu, 19 Aug 2010 10:05:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.220.143 with HTTP; Thu, 19 Aug 2010 10:04:39 -0700 (PDT) In-Reply-To: <3CC28116-DD53-430D-A451-98DD9BBC87B8@apache.org> References: <739B8B5B-842A-4CC4-871C-2DC5B0616266@apache.org> <3CC28116-DD53-430D-A451-98DD9BBC87B8@apache.org> From: Jason Smith Date: Fri, 20 Aug 2010 00:04:39 +0700 Message-ID: Subject: Re: Vhosting Requirements (was: Re: [jira] Commented: (COUCHDB-230) Add Support for Rewritable URL) To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485f5cfa2b958be048e302e90 X-Virus-Checked: Checked by ClamAV on apache.org --001485f5cfa2b958be048e302e90 Content-Type: text/plain; charset=UTF-8 On Thu, Aug 19, 2010 at 23:53, Noah Slater wrote: > > On 19 Aug 2010, at 17:48, Benoit Chesneau wrote: > > >> 3. Everybody knows them > > > > that's not true. http://xkcd.com/208/ > > > > To answer to this "reinventing" . We had long discussions on how to > > manage rewriting in couchapps. Some included "regexp", we fall in the > > current system. Ie pattern matching because it was a lot easier to > > understand and *simple*. SInce the system is already in place, I > > wanted to reuse it too, there is no need to have 2 dofferent ways to > > handle rewriting. > > > > I would like to keep it *simple*, that's the key. > > We're approaching bike shed territory... :D > Sure. This is my final statement on the matter. My feeling is when you need * pattern matching (the concept, not Erlang) * capturing substrings * building new strings based on the captured parts * Understood by *most* programmers and sysadmins is lagniappe Then the burden of proof is on the person who says regular expressions are inferior to an off-the-cuff implementation. -- Jason Smith Couchio Hosting --001485f5cfa2b958be048e302e90--