Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23397

Re: Inserting Multiple Lines from Console

From Arved Sandstrom <asandstrom2@eastlink.ca>
Newsgroups comp.lang.java.programmer
Subject Re: Inserting Multiple Lines from Console
References (2 earlier) <1g78uhsyrvwdo.wcwiwmnmky0$.dlg@40tude.net> <MmG8t.110815$8d.85821@newsfe14.iad> <51dbac84-c063-43fa-b7cc-7a86fbf50a29@googlegroups.com> <87r4ik8vu0.fsf@xopzuey.i-did-not-set--mail-host-address--so-tickle-me> <e9643093-3765-490b-ab6f-0626af042ff8@googlegroups.com>
Message-ID <stQ8t.185632$m21.117009@newsfe02.iad> (permalink)
Organization Public Usenet Newsgroup Access
Date 2013-04-09 05:39 -0300

Show all headers | View raw


On 04/08/2013 09:59 PM, Lew wrote:
> znôrt wrote:
>> Lew writes:
>>> In this case it's a bizarre answer.
>>
>> i [sic] found it amusing, and quite brilliant.
>
> This is a Java newsgroup, and the OP clearly was trying to learn Java.
>
>>> The suggestion to use Scanner or a string tokenizer was better.
>>
>> instead of pointing to some basic building blocks with which to build a
>> rudimentary parser, he presented a working solution using a complete
>> parser already available to java [sic]. i [sic] would definitely hire this guy! xD
>
> Not appropriate for the question, though.
>
>> and his code style isn't that bad. anyway if your eyes start to bleed
>> just paste into eclipse [sic] and hit ctrl-shift-f!
>
> You don't work in a professional programming environment with source control and
> code reviews, do you?
>
> Formatting changes introduce more to review and get wrong. They are frowned upon.

The problem there sounds more like unclear ownership of source code. The 
move away from formal checkout-checkin in source control systems 
(although oddly enough not in many other systems, like CMS or ECM) 
doesn't mean that there shouldn't be _informal_ checkout-checkin, i.e. 
at any given time only certain individuals should have "ownership" of a 
file, optimally one person per file per branch.

If this informal policy is observed, formatting changes accompany real 
changes, and sometimes the formatting changes *are* the real changes. 
Basically this kind of "known ownership" goes a long way to eliminate 
dabbling, including casual formatting tweaks.

> Everywhere I've worked has insisted on a house style before checkin is permitted.

I've worked in places that had a "house style" and enforced it, places 
that said they had one but didn't enforce it, and on projects that 
didn't have one at all. I've found that the need for a house style 
diminishes if coders know not to dabble and nitpick, they know only to 
do a format if it's an intentional _refactoring_ of sorts to improve 
maintainability, and the individual styles of people are good (IOW, good 
coders).

To the latter point, I have no problem working with another programmer's 
style if it's clear and makes sense. If I have been called upon to make 
minor mods, I adopt the style.

> Also, I program on a Mac a lot of the time, so Ctrl-Shift-F doesn't work, and when at
> home I usually use NetBeans, which has a different key chord.
>
> Not everyone uses Eclipse or NetBeans, either.
>
> Stefan is notable for his attitude about conventional formatting and simple type names.
>
AHS

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Inserting Multiple Lines from Console subhabangalore@gmail.com - 2013-04-08 06:59 -0700
  Re: Inserting Multiple Lines from Console Joerg Meier <joergmmeier@arcor.de> - 2013-04-08 17:04 +0200
    Re: Inserting Multiple Lines from Console Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-04-08 14:10 -0700
      Re: Inserting Multiple Lines from Console Lew <lewbloch@gmail.com> - 2013-04-08 15:10 -0700
        Re: Inserting Multiple Lines from Console x@x.com (znôrt) - 2013-04-09 01:08 +0200
          Re: Inserting Multiple Lines from Console Lew <lewbloch@gmail.com> - 2013-04-08 17:59 -0700
            Re: Inserting Multiple Lines from Console x@x.com (znôrt) - 2013-04-09 08:46 +0200
            Re: Inserting Multiple Lines from Console Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-04-09 05:39 -0300
              Re: Inserting Multiple Lines from Console Martin Gregorie <martin@address-in-sig.invalid> - 2013-04-09 23:04 +0000
              Re: Inserting Multiple Lines from Console x@x.com (znôrt) - 2013-04-10 19:45 +0200
                Re: Inserting Multiple Lines from Console Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-10 14:43 -0400
                Re: Inserting Multiple Lines from Console Gene Wirchenko <genew@telus.net> - 2013-04-11 11:11 -0700
                Re: Inserting Multiple Lines from Console Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-11 15:05 -0400
  Re: Inserting Multiple Lines from Console lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-08 16:21 +0100
  Re: Inserting Multiple Lines from Console markspace <markspace@nospam.nospam> - 2013-04-08 09:56 -0700
  Re: Inserting Multiple Lines from Console lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-09 08:28 +0100

csiph-web