Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1B8F9C38 for ; Sun, 30 Sep 2012 14:20:59 +0000 (UTC) Received: (qmail 96961 invoked by uid 500); 30 Sep 2012 14:20:59 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 96914 invoked by uid 500); 30 Sep 2012 14:20:59 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 96901 invoked by uid 99); 30 Sep 2012 14:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 14:20:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vb0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Sep 2012 14:20:53 +0000 Received: by vbbfs19 with SMTP id fs19so5069975vbb.29 for ; Sun, 30 Sep 2012 07:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LrqMiT08VRhiUNKAU5np23rjty8I5STprvKBn56nqds=; b=tfQb5v3yrmE4mA2TLA3Z7/SmDFiV0GC81/V53QnsQi+slms+rlby2BEaHcW4NXNTHY bkrlC7y5bnc6YANWS140uVI+IpSBM8gz3KHJOvX0DG8mAabbUuysrCzS/RfXqqEP9tle AW639i6R10um0EZ9DV829rz4VBfmxwE2Wh/xsAcTcCFzOTEO51pYPZuK0SVPo/ur2VUj w0efvGdMKOB/PUfnYJ5pVRLDFWxgb/EfBkSVO7sysKJmPtH7+uN0DJRxwYR+RwmmdbCX etT/2BX8JQuPGsvgOv4HK1hraXaE2oMDSHkyrCAjQTtJYOzijy1NZ0XGNjJACgnrrdsa ke3w== MIME-Version: 1.0 Received: by 10.58.0.82 with SMTP id 18mr7206492vec.0.1349014833012; Sun, 30 Sep 2012 07:20:33 -0700 (PDT) Received: by 10.58.70.11 with HTTP; Sun, 30 Sep 2012 07:20:32 -0700 (PDT) In-Reply-To: References: <50673C4A.8010603@blueyonder.co.uk> <506740C7.6020701@blueyonder.co.uk> Date: Sun, 30 Sep 2012 15:20:32 +0100 Message-ID: Subject: Re: Code Style [WAS Re: Various dev questions :-)] From: sebb To: dev@creadur.apache.org Content-Type: text/plain; charset=ISO-8859-1 The only rule I hope we can agree on is no TAB characters. This because TAB settings are variable and can badly mess up indentation. Consistency within a single source file is desirable for readability - e.g. it's awkward to follow if indentation is not consistent. But I don't see a particular advantage to consistency across all files and file types. For example, XML files often have deep nesting, so an indent of 2 chars is often better. Whereas Java files don't (or should not) have deeply nested conditions so 4 chars indentation is probably more readable. IMO changing code to suit some arbitrary checkstyle rules is a waste of time (and wasted effort reviewing changes). On 29 September 2012 20:27, Olivier Lamy wrote: > /me was just asking and don't want to start any holy war :-) > > 2012/9/29 Robert Burrell Donkin : >> On 09/29/12 19:31, Jochen Wiedmann wrote: >>> >>> -1: I am just happy with different styles and don't see advantages in a >>> common. >> >> >> Fine by me >> >> Robert > > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy