... moving this to a new thread.

so how do we reach consensus here? :o)

if(format.isSkippingHeaderRecord()) {
 ...
}

sounds better to me than

if(format.isHeaderRecordSkipped) {
  ...
}

Gary made up a good argument about using active voice in method names. How
ever there will be the asymmetry because we're not using Java Bean
conventions here...

Benedikt

2014-07-19 0:17 GMT+02:00 Gary Gregory <[email protected]>:

> On Fri, Jul 18, 2014 at 4:36 PM, Emmanuel Bourg <[email protected]> wrote:
>
> > Le 18/07/2014 22:17, Benedikt Ritter a écrit :
> > > Just to make it clear... We're happy with:
> > > - boolean isIgnoringSurroundingSpaces()
> > > - withIgnoreSurroundingSpaces(boolean)
> > >
> > > So nothing has to change?
> >
> > Not sure, I find the asymmetry a bit disturbing, but if I'm the only one
> > I can pass on that.
> >
> > I still feel better with the -ed form:
> >
> >     withHeaderSkipped()
> >     isHeaderSkipped()
> >
>
> Yikes! That does not sounds good to me.
>
> It is likely that we will not find a good set of names that sound good with
> the 'with' prefix, as a getter, and as a standalone ivar name.
>
> Gary
>
>
> >
> > Emmanuel Bourg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> E-Mail: [email protected] | [email protected]
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Reply via email to