X-Received: by 10.66.86.166 with SMTP id q6mr1649879paz.44.1355987741561; Wed, 19 Dec 2012 23:15:41 -0800 (PST) Received: by 10.50.219.133 with SMTP id po5mr1273054igc.17.1355987741494; Wed, 19 Dec 2012 23:15:41 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!f6no3738934pbd.1!news-out.google.com!6ni51708pbd.1!nntp.google.com!f6no3738932pbd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Wed, 19 Dec 2012 23:15:41 -0800 (PST) In-Reply-To: <50d27cf0$0$294$14726298@news.sunsite.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 173.164.137.214 References: <7f36342c-2331-4484-874b-4a0f8953f160@googlegroups.com> <1rfmfoqs8bzc6.4pavkn8829dk$.dlg@40tude.net> <50d25c08$0$282$14726298@news.sunsite.dk> <50d27cf0$0$294$14726298@news.sunsite.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: multi-line Strings From: Lew Injection-Date: Thu, 20 Dec 2012 07:15:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:20617 Arne Vajh=F8j wrote: > The extended name should be related to the purpose not the factor This is best practice, and more consistently followed in proportion to expe= rience in=20 the field, I assess. > to handle the case where a rounding is changed for some calculations. >=20 > FACTOR_TO_ROUND_DOLLAR_AMOUNT > FACTOR_TO_ROUND_DISTANCE_MEASUREMENT > etc. These names serve your pedagogical purpose, but simultaneously serve to=20 illustrate that there's an element of style involved, not just engineering. To my eye those names are longer than need be. I cannot and will not claim = any=20 objective validity to that assessment, but I would in a project push for mo= re elegant=20 names. I don't necessarily mean abbreviated. Elegance is an ineffable match of for= m to=20 function to aesthetic expression. Sometimes terse, sometimes verbose, elega= nce=20 adapts to the circumstance and objectives of the moment. My preference in this instance for the proffered scenarios would be more li= ke DOLLAR_ROUNDER DISTANCE_ROUNDER My reasoning involves degree of information conveyed relative to length and= subitizability of morpheme count. But my action is based on a more intuitive sense, arguably one that subsume= s the=20 rationalized basis. --=20 Lew