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 C39411014E for ; Sat, 5 Oct 2013 11:04:18 +0000 (UTC) Received: (qmail 3285 invoked by uid 500); 5 Oct 2013 11:03:59 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 3200 invoked by uid 500); 5 Oct 2013 11:03:57 -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 2870 invoked by uid 99); 5 Oct 2013 11:03:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Oct 2013 11:03:36 +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 beneritter@gmail.com designates 209.85.214.53 as permitted sender) Received: from [209.85.214.53] (HELO mail-bk0-f53.google.com) (209.85.214.53) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Oct 2013 11:03:29 +0000 Received: by mail-bk0-f53.google.com with SMTP id d7so1896346bkh.40 for ; Sat, 05 Oct 2013 04:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=8ZpgctJDEa1gI+LOvKsYpmcUAwS/5WPdP/kMvL9Ivgk=; b=vtcHyaUrFFg1hRfoQJzu+FBVEo66F2EHuddyP7XLT8mcPHu37Qywqwj4RLkNGZkOx/ 3LPBpO2w/jcuJyUJGDYXVeK9kKNguMC+uHQSsnyZ4VTEUwoCNeXhuFey1CEVJNazZR3n rBac5JLFkoJjnHrstXZarrlgLXlA6e5LZnReJgj+SvZHMtptR2x1//xlJoppTkLmYxdx USR2RcL0Ef4gy7AyQvKUPApIIrf5CqRcIU0O8c01DJnYFZYBHQ3MR07OG8D5pSMlcIEA TjREzCf/GUDnc1HnEBp1nzF3QwcVjAgv99eZmIxTaHetp2OxAtPVEhPqM6KzrkbBLOW3 3d3Q== X-Received: by 10.204.121.201 with SMTP id i9mr17646762bkr.13.1380970988939; Sat, 05 Oct 2013 04:03:08 -0700 (PDT) Received: from [192.168.2.104] (dslb-188-109-108-151.pools.arcor-ip.net. [188.109.108.151]) by mx.google.com with ESMTPSA id z6sm10809802bkn.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Oct 2013 04:03:08 -0700 (PDT) Subject: Re: svn commit: r1528612 - /commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java References: <20131002201230.2F3CD23888A6@eris.apache.org> From: Benedikt Ritter Content-Type: text/plain; charset=us-ascii X-Mailer: iPad Mail (11A501) In-Reply-To: Message-Id: Date: Sat, 5 Oct 2013 13:03:06 +0200 To: Commons Developers List Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org Hi James, Send from my mobile device > Am 05.10.2013 um 00:33 schrieb James Carman : >=20 > Also, since when did we start nit-picking code in the sandbox? Why > not leave these folks alone and let them work out their ideas? The > sandbox should be an area where folks can play around with stuff and > share new ideas without being hassled by folks. If we make it a pain > in the butt, then people will just go elsewhere with their cool ideas. > It's one thing if you're collaborating on the project, but trolling > commit logs and picking out things you don't like is just plain rude, > IMHO. I'm not sure I agree with all of your points. Yes, the sandbox is a place to= try new ideas out. Does this mean certain quality criterions do not apply? I= don't think so. This all has to be corrected before promotion, so why not m= ake it correct right from the start? Is pointing out that something may be improved nit-picking? Well, I think it= depends :-) Just sending a -1 for a commit like this would definitely be. I= n this case an improvement has been pointed out. I'm more then happy for fee= dback like this, because it helps me become a better developer. And in the e= nd, discussing commits is part of the game ;-) Regards, Benedikt >=20 >> On Fri, Oct 4, 2013 at 6:23 PM, James Carman = wrote: >>> On Fri, Oct 4, 2013 at 6:11 PM, sebb wrote: >>>=20 >>> Back to the case in point: why is the string ".activate" and not anythin= g else? >>=20 >> Why not just extract a constant and name it something logical like >> "ACTIVATED_INDICATOR"? Then, the actual value of the constant can be >> whatever you want. The value of the string isn't important (other >> than making it a bit more human-readable of course). What is >> important is that you use the string in a consistent fashion >> throughout your code. By not using a constant, it makes it more >> likely to fat-finger the value when you type it again somewhere. >> Anyway, I'm sure I'm not telling you anything new. I just don't think >> it's relevant to go into a lengthy discussion about the string that's >> used as some sort of marker. Just extract the constant (and use it) >> and move on. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org