Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 21205 invoked from network); 27 Oct 2009 01:29:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 01:29:50 -0000 Received: (qmail 31658 invoked by uid 500); 27 Oct 2009 01:29:49 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 31567 invoked by uid 500); 27 Oct 2009 01:29:49 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 31556 invoked by uid 99); 27 Oct 2009 01:29:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 01:29:49 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nbeyer@gmail.com designates 209.85.216.193 as permitted sender) Received: from [209.85.216.193] (HELO mail-px0-f193.google.com) (209.85.216.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 01:29:47 +0000 Received: by pxi31 with SMTP id 31so3618303pxi.20 for ; Mon, 26 Oct 2009 18:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=AdManLGdBDZ9tQT8EAhMcvKYkuVutFLAINtioQLNi84=; b=pOMhHClDvuumQ2h8f+TBSCE6xOBempnRnNo/HjSffcDXXDGGcwL59fgPrA3Ref1EtR 5f18OrUEyA45bvchpf8Qx+ptd7XOswO8cprxN+vyL1zrlR6X6sbzDiONkcYZmoo3VP/D 4igzr+6rChFPOP3n9NmP9B5PQoiatkMaB/mn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=vb9kTFEUQnQErfJug5YK9O/dR82vQ1aLAXJV6jGIfjLZ9udDxh9EuE9iyWOn8cRBv9 w1Qo3qiT5GydwuNK2GEAmYBWvVNvzQir7GIJ+eT1nUL65bCsYkcq2s8S26cnvVER/udP ORe5LljNOnMxFW53lJlnxodSdbVCSY5w3GFg0= MIME-Version: 1.0 Sender: nbeyer@gmail.com Received: by 10.114.252.14 with SMTP id z14mr8471927wah.84.1256606967086; Mon, 26 Oct 2009 18:29:27 -0700 (PDT) In-Reply-To: References: <200910270058.59096.gshimansky@apache.org> <20091026224454.B6090816048@nike.apache.org> Date: Mon, 26 Oct 2009 20:29:27 -0500 X-Google-Sender-Auth: 69081a8b8e101a16 Message-ID: <3b3f27c60910261829v3eae886ex308f704fb2d3cbe9@mail.gmail.com> Subject: Re: Idiomatic Java: return-at-method-end in Harmony From: Nathan Beyer To: dev@harmony.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 26, 2009 at 6:15 PM, Jesse Wilson wrot= e: > On Mon, Oct 26, 2009 at 3:44 PM, Mark Hindess > wrote: > >> Modern programmers do refactoring and testing. =C2=A0I'm more than happy= with >> this. =C2=A0I want our code to be readable and using idiomatic style goe= s a >> long way to achieving that. =C2=A0Working is important but being maintai= nable >> is important too. >> >> +1 for making such changes but I'd prefer to see them as distinct >> patches not part of broader changes so it is easier to verify that they >> really are syntactic refactorings. >> > > Sounds good. If I find myself cleaning up code en route to fixing it, I'l= l > try to make a habit of submitting the non-functional change as an > intermediate step. > +1 for this approach. My opinion is that refactoring is fine as long as there is a high amount of testing - the refactoring in most cases should just make the code more efficient, simple or easier to read. I do think refactoring should be separated from bug fixes and enhancements when possible - it makes watching the changes easier. -Nathan