Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 E7281FFF6 for ; Thu, 4 Apr 2013 22:07:47 +0000 (UTC) Received: (qmail 31647 invoked by uid 500); 4 Apr 2013 22:07:47 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 31561 invoked by uid 500); 4 Apr 2013 22:07:47 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 31537 invoked by uid 99); 4 Apr 2013 22:07:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 22:07:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garydgregory@gmail.com designates 209.85.219.54 as permitted sender) Received: from [209.85.219.54] (HELO mail-oa0-f54.google.com) (209.85.219.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 22:07:43 +0000 Received: by mail-oa0-f54.google.com with SMTP id n12so3397656oag.13 for ; Thu, 04 Apr 2013 15:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=D7ZCwtl/6RKk6i3IZb3qbDk0dsP8jZtJzDueHE57LqY=; b=TzYk8gCdhqsBqXHkfBtUh9a3RZIQbnseAsE5Csm0DdREHCRYjOKs6TqRe3e5/okq4Z gpxCQLw5gkkWJN3DAdmo/f5zOyhiquSAxMNnUBa+a7QshNM199+uv56gL7bTiZx46AOw yf8tAzeNRgI/wWp2k624Xn6f7dKr36ejR7Vl+u8W0c7NAd9q+YpxRhH6fjwF5eaa/Y8y AXVrdsu0v7nuqTDylkrmyyKG4ZUVH81TDfn8JhTjYRNF+nDoOHmLyrg/IKHsOOcVQfxp XLqO4v1uj1mDorXfqX9tBtZjyCd9GoZj57Gef6NKb86EZK/RddeVfMK9mQpLo2uBNOMh 8pmg== MIME-Version: 1.0 X-Received: by 10.60.12.170 with SMTP id z10mr6140536oeb.122.1365113242380; Thu, 04 Apr 2013 15:07:22 -0700 (PDT) Received: by 10.60.118.3 with HTTP; Thu, 4 Apr 2013 15:07:22 -0700 (PDT) In-Reply-To: <515DE482.7030005@apache.org> References: <515DD2FC.1000607@apache.org> <515DD775.1020409@apache.org> <515DE482.7030005@apache.org> Date: Thu, 4 Apr 2013 18:07:22 -0400 Message-ID: Subject: Re: [codec][lang] LetterCase proposal From: Gary Gregory To: Commons Developers List Content-Type: multipart/alternative; boundary=e89a8fb201eae3eece04d9903170 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb201eae3eece04d9903170 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Worry not, I consider code duplication an affront to my extreme/agile programmer creds as much as the next guy/gal. This said, yes, I am proposing duplication. Over the years, when I've mentioned one commons component depending on another, tomatoes start flying. There is a definitive camp that really wants standalone components. I assume there are the folks that are RAM or disk challenged by their runtime environments. My current context is a big app server, we deliver ~100 third party libraries, some we use directly, others are dragged in transitively. To give you an idea, we embed Jetty and CXF, so that's a big pile just there. For my sanity, the less code the better, the less jars the better, thankfully, both Jetty and CXF deliver 'all-in-one' jars, but their dependencies are all individual jars. Ideally, I would but all 'commons commons' code in [lang] when that makes sense, like with LetterCase, and have all the other components depend on [lang]. Tomatoes? Gary On Thu, Apr 4, 2013 at 4:37 PM, Emmanuel Bourg wrote: > Le 04/04/2013 22:12, sebb a =C3=A9crit : > > > The enum is two-state only; the duplication is tiny. > > The duplication will create a confusion in projects using lang and codec > (which is quite common). Typically the auto import popup in IntelliJ > will suggest the two alternatives when trying to resolve the LetterCase > enum, and the hesitation to select the good one is at least equivalent > to the unintuitive boolean value for upper/lower cases. > > Emmanuel Bourg > > > --=20 E-Mail: garydgregory@gmail.com | ggregory@apache.org JUnit in Action, 2nd Ed: http://bit.ly/ECvg0 Spring Batch in Action: http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory --e89a8fb201eae3eece04d9903170--