Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 87520 invoked from network); 30 Nov 2010 13:35:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 13:35:24 -0000 Received: (qmail 89408 invoked by uid 500); 30 Nov 2010 13:35:24 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 89164 invoked by uid 500); 30 Nov 2010 13:35:23 -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 89155 invoked by uid 99); 30 Nov 2010 13:35:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:35:23 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robert.newson@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 13:35:19 +0000 Received: by vws13 with SMTP id 13so1758306vws.11 for ; Tue, 30 Nov 2010 05:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=p0AmbGvRtVtLgbqrZ69xtLkEyauJiPG9gX/Vqvon9s4=; b=MPQeUz+Z3Nf9GNLd33cfY7RAy6t4Di0IZ7pGWofXudFFQRp5Lo0+ZJUaFvdAnPw6J2 8jZ7b+f0/taRwrdbS23QNdVjg0CEPB0nVuEwNB6rLNGfML5733KTX69etRqKdiZZDgPJ xgbP8pAC7D7u9L037r48CK9qUglF8bM046d/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=YNdOH17TZ6n+FI3/Efoe6vwL30V8PiFtu0osP5v8F5Nq+gxkMIFXco7B+b5tb6i+9y 3FCRzqwg1mV/n0tsaXh2jHmve8y/kWkwv04ltpqEubeX9FLfk+G55D3WRXk/1o0hA85R w26lPm9TB0FT7gyMndBh/FulXn1zSmVO4YSa8= MIME-Version: 1.0 Received: by 10.229.88.146 with SMTP id a18mr6236500qcm.60.1291124097937; Tue, 30 Nov 2010 05:34:57 -0800 (PST) Received: by 10.220.176.137 with HTTP; Tue, 30 Nov 2010 05:34:57 -0800 (PST) In-Reply-To: References: Date: Tue, 30 Nov 2010 13:34:57 +0000 Message-ID: Subject: Re: use view functions to emit changes From: Robert Newson To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am I the only one that thinks our code is already indented to 4 spaces? :) B. On Tue, Nov 30, 2010 at 1:32 PM, Benoit Chesneau wrot= e: > On Tue, Nov 30, 2010 at 1:50 PM, Jan Lehnardt wrote: >> >> On 30 Nov 2010, at 13:05, Benoit Chesneau wrote: >> >>> On Tue, Nov 30, 2010 at 12:22 PM, Filipe David Manana >>> wrote: >>>> >>>> 3) Avoid the unnecessary white-space only changes: >>>> >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L2R396 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L2R477 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L3R255 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L4R60 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L4R85 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L4R247 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L4R503 >>>> https://github.com/benoitc/couchdb/commit/651e29e1bb767fb493bf75497623= dae89bf9a5ad#L3R191 >>> >>> >>> about 2 & 3 can we add indent rules on top of our sources from now ? >>> I think there is something common between vim and emacs for example. >>> That should solve such errors. I don't want to change my config each >>> time I'm using a project. Using such rules solves that automatically. >>> >>> Ex: >>> >>> %% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*- >>> %% ex: ts=3D4 sw=3D4 et >>> >>> works on erlang and vim and surely other editors. >> >> a) I don't mind adding these markers they it help anyone. >> b) My editor and git tell me about trailing whitespace. >> c) Because of b), these markers never helped me. >> >>> About the 2 spaces >>> in js, imo we should go to a 4 spaces indentations, which is a way >>> more readable and more common. (Mozilla uses that rule.) >> >> We agreed on two spaces early on: >> >> =A0http://wiki.apache.org/couchdb/Coding_Standards >> >> Coding standards are not to find the best one, but to pick one and >> stick to it. >> > Coding standard are here to make the code more easy to share *between* > developers, this isn't just a convention. Sorry to disagree with the 2 > spaces indentation. > > While we are in coding standard , there is one I really think we > should follow "http://www.erlang.se/doc/programming_rules.shtml#REF14536" > . I think I can add for some, but need help for btree codes and view > server, anyone can help me on that ? > > - beno=EEt. >