Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 13373 invoked from network); 29 Dec 2008 13:59:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2008 13:59:01 -0000 Received: (qmail 11120 invoked by uid 500); 29 Dec 2008 13:58:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 11044 invoked by uid 500); 29 Dec 2008 13:58:54 -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 11022 invoked by uid 99); 29 Dec 2008 13:58:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 05:58:54 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 13:58:47 +0000 Received: from [10.0.1.194] (unknown [67.86.14.166]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A325A23E3AB; Mon, 29 Dec 2008 08:58:24 -0500 (EST) Cc: dev@couchdb.apache.org Message-Id: From: "Geir Magnusson Jr." To: user@couchdb.apache.org In-Reply-To: <0743DF91-9015-43DD-9A0F-7E79D6DF4632@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Changing rev to _rev in view results (Was: Re: newbie question #1) Date: Mon, 29 Dec 2008 08:58:23 -0500 References: <98979283-BB61-4D15-AF05-196979FA42BC@pobox.com> <49C5583B-254D-4D4D-A4F7-AD7306E758F1@gmail.com> <8A2A146E-F011-4502-9DD9-336300392CDC@apache.org> <0743DF91-9015-43DD-9A0F-7E79D6DF4632@gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org That rule would have been perfectly clear to me as a newbie. +1 geir On Dec 29, 2008, at 8:55 AM, Antony Blakey wrote: > > On 29/12/2008, at 11:11 PM, Damien Katz wrote: > >> The problem was there where other reserved fields in documents that >> started with underscore, but in other places the fields wouldn't >> have an underscore. Keep track of which fieldname had underscores >> and where became confusing. The rule was changed to be simpler to >> understand and deal with. > > A simpler rule is: _rev is the name no matter where it appears, same > with _id. I'd go so far as say that this kind of rule is so > fundamental to our idea of identity and naming, that it doesn't even > count as a rule. And there had better be a really good reason to > introduce a rule contrary to such an strongly implicit and intrinsic > concept. > > And as far as 'Keeping track of which fieldname had underscores", it > would seem that the current situation is the worst, because you have > to keep track not based on identity e.g. _rev and _id, but rather on > context, which is a dynamic and more intellectually demanding > concept than semantic identity. Furthermore, in this scheme, names > must be mapped under structural transformation (such as copying the > _id and _rev fields from one context to another), which complicates > generic transformations. > > IMO the name isn't "rev" with sometimes an underscore, rather the > name IS "_rev". Same with "_id". > > A single name for a concept, lexically consistent, is less cognitive > load both initially and on an ongoing basis. > > Antony Blakey > ------------- > CTO, Linkuistics Pty Ltd > Ph: 0438 840 787 > > The ultimate measure of a man is not where he stands in moments of > comfort and convenience, but where he stands at times of challenge > and controversy. > -- Martin Luther King > >