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 AAC77F42A for ; Fri, 4 Oct 2013 22:46:42 +0000 (UTC) Received: (qmail 15920 invoked by uid 500); 4 Oct 2013 22:46:41 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 15823 invoked by uid 500); 4 Oct 2013 22:46:41 -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 15815 invoked by uid 99); 4 Oct 2013 22:46:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 22:46:41 +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 (athena.apache.org: domain of sebbaz@gmail.com designates 74.125.82.53 as permitted sender) Received: from [74.125.82.53] (HELO mail-wg0-f53.google.com) (74.125.82.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Oct 2013 22:46:37 +0000 Received: by mail-wg0-f53.google.com with SMTP id x12so4857748wgg.20 for ; Fri, 04 Oct 2013 15:46:16 -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=b5SFAI/wcSJNIyPMmVCq3ztYhbbIK7ftukNsJXCcqZM=; b=Q2hv3h2rR9/yYA/BN6CuaDGkkUvPVY6clGXb4uzSjgiiTK7TdOwX+vXu1tdAFvjgxP dXLRMR8yKRjET0Su2yV75f4rf84ADR96REvlDMCOj2sNwDtm7m37d8Rc7ikaQt3ScA0t YQ+D5N29LtQ6sxGLQVtAr+BHk0j0Df9VYwyFxOEwahR4GJFt3EjE2DtHElrsMofDcKTx xORq+toxDqczInYHfsKNNEmLbHez7UtrAzbi1WXA+D/z+/7jiFNuKOPCHhxZk7345tyB nN7EyBnSk4+Gh+5i5NrCJJFhVRO9LVuURP7nATJ88DrheVRjr/AZKoqqZaYo1uFVHfN+ 4X1Q== MIME-Version: 1.0 X-Received: by 10.194.193.4 with SMTP id hk4mr14430966wjc.29.1380926776144; Fri, 04 Oct 2013 15:46:16 -0700 (PDT) Received: by 10.194.24.99 with HTTP; Fri, 4 Oct 2013 15:46:16 -0700 (PDT) In-Reply-To: References: <20131002201230.2F3CD23888A6@eris.apache.org> Date: Fri, 4 Oct 2013 23:46:16 +0100 Message-ID: Subject: Re: svn commit: r1528612 - /commons/sandbox/monitoring/trunk/reporting/src/main/java/org/apache/commons/monitoring/reporting/web/plugin/PluginRepository.java From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 4 October 2013 23:23, James Carman wrote: > On Fri, Oct 4, 2013 at 6:11 PM, sebb wrote: >> >> Back to the case in point: why is the string ".activate" and not anything else? >> > > 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. That was exactly my point. However, I don't think the value is arbitrary, given that it is only used once. It looks to me as though the code is relying on some external convention for property naming. > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org