Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.programmer Subject: Re: Inserting Multiple Lines from Console Date: Thu, 11 Apr 2013 11:11:17 -0700 Organization: A noiseless patient Spider Lines: 59 Message-ID: References: <1g78uhsyrvwdo.wcwiwmnmky0$.dlg@40tude.net> <51dbac84-c063-43fa-b7cc-7a86fbf50a29@googlegroups.com> <87r4ik8vu0.fsf@xopzuey.i-did-not-set--mail-host-address--so-tickle-me> <87d2u246v9.fsf@xopzuey.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx05.eternal-september.org; posting-host="60d0d39a542030f45c674d6e1df82370"; logging-data="24168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Xct8Poe7HM2ztrCK0hbzWf9aNZHKmnkE=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:pIhlfLBySucyoGS0FiOROKCbXtk= Xref: csiph.com comp.lang.java.programmer:23422 On Wed, 10 Apr 2013 14:43:39 -0400, Eric Sosman wrote: [snip] >See the matrices? They're still there, if you sort of tilt your >head to the side and squint a little; it may help if you're slightly >astigmatic. See the right-hand sides in their systematic little >dance? Not I, not with all the head-tilting my vertebrae can manage. >Somebody's insistence on his own notions of formatting (as embodied >in the mechanical formatter) transformed my code from crystal-clear >to opaque and ugly. Of course, it can go the other way around, too. Sometimes, formatters do help clean up code. One reason that I have avoided using code formatters though is because sometimes, aesthetics is important. Your code is an example of this. Another would be a function/method call with some parameters that are important. How would you split (typed all on one line): retval=functionname(importantparm1,importantparm2,option1,option2,option3,option4,option5); I would probably use retval=functionname(importantparm1,importantparm2, option1,option2,option3,option4,option5); or retval=functionname( importantparm1,importantparm2,option1,option2,option3,option4,option5); It is extremely unlikely that I would use retval=functionname(importantparm1,importantparm2,option1,option2, option3,option4,option5); but how do I specify what the aesthetics are? > Perhaps I should just be thankful it left the line breaks >in place. It doesn't always, you know! About a month ago I used >this well-known pattern: > > Quotation quo = new Quotation.Builder() > .setDate(elt.getAttribute(DATE)) > .setPrice(elt.getAttribute(PRICE)) > .setSize(elt.getAttribute(SIZE)) > .setSource(elt.getAttribute(SOURCE)) > .build(); > >... which the friendly formatter turned into: > > Quotation quo = new >Quotation.Builder().setDate(elt.getAttribute(DATE)).setPrice(elt.getAttribute(PRICE)).setSize(elt.getAttribute(SIZE)).setSource(elt.getAttribute(SOURCE)).build(); > >... after which the check-in system dinged me for line length. Are you coming? We got you. Are you going? We got you. Sincerely, Gene Wirchenko