Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 79172 invoked from network); 22 Mar 2011 13:22:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 13:22:36 -0000 Received: (qmail 31251 invoked by uid 500); 22 Mar 2011 13:22:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31199 invoked by uid 500); 22 Mar 2011 13:22:35 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 31192 invoked by uid 99); 22 Mar 2011 13:22:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 13:22:35 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 13:22:28 +0000 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p2MDM6EX020803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 22 Mar 2011 13:22:07 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p2MDM5Kv019984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Mar 2011 13:22:06 GMT Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p2MDM5Mg003366 for ; Tue, 22 Mar 2011 08:22:05 -0500 Received: from richard-hillegas-computer.local (/10.159.12.102) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 22 Mar 2011 06:22:05 -0700 Message-ID: <4D88A27C.5000706@oracle.com> Date: Tue, 22 Mar 2011 06:22:04 -0700 From: Rick Hillegas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Official stance on tabs References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4D88A27E.005B,ss=1,fgs=0 Hi Tiago, Derby approved a set of coding conventions in August, 2006, mostly to satisfy an Apache requirement that projects should establish standards in this area: http://old.nabble.com/-VOTE---Approve-coding-conventions-for-the-Derby-project-to5771191.html#a5771954 The Derby conventions include a large primer published by Sun (now Oracle) plus a couple explicit modifications to that primer. I have never seen a reviewer even mention, let alone enforce any of the rules in that primer. Three of the explicit modifications have earned special mention on the checklist for new contributors: http://wiki.apache.org/db-derby/DerbyContributorChecklist These hot buttons are: i) A preference for 4-space tabs. ii) Elimination of @author tags. iii) A preference by some for 80 character lines. In order to get a submission committed, a new contributor needs to conform to the coding philosophy of the committer who reviews the patch. Once in a great while, someone will rework an already committed patch to enforce a hot button preference. There is little enthusiasm for enforcing the Derby conventions systematically. I think this is because: a) Most of the classes pre-date the adoption of conventions and don't conform to them. b) Contributors are discouraged from reformatting existing classes in order to make them conform to the conventions. This eliminates cosmetic diffs which complicate code archaeology. c) To promote readability, contributors are encouraged to follow the coding style of the class they are working on. To answer your specific question about tabs: 4-space tab settings are preferred but not systematically enforced. Hope this helps, -Rick On 3/21/11 2:24 PM, Tiago Espinha wrote: > Hi all, > > What's our (Derby's) official stance regarding the tab spacing? How > strict are we being with patches? Are we enforcing the 4-spaced tab or > are we happy with the tab-spaced tabs? > > I remember when I was a GSoC student I was asked to change my settings > in Eclipse, but I seem to remember have seen patches being committed > after that with just tabs instead of spaces. Do we have an official > position on this? > > Cheers, > Tiago