Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-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 1F96098E9 for ; Thu, 22 Mar 2012 18:07:01 +0000 (UTC) Received: (qmail 11321 invoked by uid 500); 22 Mar 2012 18:07:00 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 11271 invoked by uid 500); 22 Mar 2012 18:07:00 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 11262 invoked by uid 99); 22 Mar 2012 18:07:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2012 18:07:00 +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 todd@cloudera.com designates 209.85.210.169 as permitted sender) Received: from [209.85.210.169] (HELO mail-iy0-f169.google.com) (209.85.210.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2012 18:06:54 +0000 Received: by iajr24 with SMTP id r24so4482547iaj.14 for ; Thu, 22 Mar 2012 11:06:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=TdstUEiiv4zSw88Fxf+r3n+jjaLaA34QiJNIvPesBtQ=; b=giJUaDNNQLGT4fWjU02VJbKjDt/3TD+zOw58disbMZ0JbRQnOU2s8trMLht14cwkWP NUaW/g8puSILMI6ys5uGcUI66++uiY7AS1d166g4EQ2nnyXXG5vafXfz1z2BXxbC7Z7D ON1fWkkexGSCCoQ9QH+rVFVPxTa8QHy6sYWPCzThHs5u94kmy61GbBNyhAUudK6Vg/td 3EEt4SnPmjRAmintOOqSCCL0KIZjVvd2bwOH2yeulS0qwjPv0RqJWBbReGlRlnDDC4jK qWSVvF0kZRbkXoxR0kgj10mgBmnU7jG64HDlB5mGVNFTuTiuLmjDv40SVOsqk+WH+5fl YC+Q== Received: by 10.42.72.130 with SMTP id o2mr6479533icj.8.1332439593683; Thu, 22 Mar 2012 11:06:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.208.70 with HTTP; Thu, 22 Mar 2012 11:06:13 -0700 (PDT) In-Reply-To: References: <000901cd07eb$0fd1d050$2f7570f0$%ch@huawei.com> <1332432010.36053.YahooMailNeo@web121703.mail.ne1.yahoo.com> From: Todd Lipcon Date: Thu, 22 Mar 2012 11:06:13 -0700 Message-ID: Subject: Re: HBASE Code format To: dev@hbase.apache.org Cc: lars hofhansl , "lakshman.ch@huawei.com" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkvHZ8BFnBAUYDVGMLy7XTwfHnWKP9yZb71g6ejrDZyTqnMebAHKJA6Gq7I57pyWEyvVZbO X-Virus-Checked: Checked by ClamAV on apache.org +1 for 100 chars. I think unlimited gets messy. On Thu, Mar 22, 2012 at 9:50 AM, Dave Wang wrote: > +1 on Lars's comment. > > On Thu, Mar 22, 2012 at 9:00 AM, lars hofhansl wrot= e: > >> Put me in the I-couldn't-care-less camp :) 80, 100, 120, or even no limi= t >> is fine with me. >> Would personally prefer no limit. Instead leave it up to the good taste = of >> the contributors and us committers to format the code in the most readab= le >> way. >> >> >> -- Lars >> >> >> ________________________________ >> =A0From: Laxman >> To: dev@hbase.apache.org >> Sent: Wednesday, March 21, 2012 10:17 PM >> Subject: HBASE Code format >> >> Hi Devs, >> >> How about raising the "max line width" from 80 (to 100 or 120)? >> IMO, 80 characters length is too low & it makes the code bit ugly. >> >> Example: >> =A0 =A0 long timstamp =3D conf.getLong(TIMESTAMP_CONF_KEY, >> System.currentTimeMillis()); >> >> Above code snippet after formatting, it turned to >> >> =A0 =A0 long timstamp =3D conf >> =A0 =A0 =A0 =A0 .getLong(TIMESTAMP_CONF_KEY, System.currentTimeMillis())= ; >> >> Please respond with your opinion considering the following points. >> >> - Sun Java coding standards drafted in 1999 >> - Terminals(Monitors) we are using now are very wider and 80 characters = is >> not a valid limit anymore. >> - As per Ted, Google raised this limit >> [https://issues.apache.org/jira/browse/HBASE-5564] >> >> Note: We don't need to reformat entire codebase. My proposal is to apply >> these standards to new code getting commited. >> >> -- >> Regards, >> Laxman >> --=20 Todd Lipcon Software Engineer, Cloudera