Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Benedikt Ritter
; > isQuoting() > > > > > > > > > > > > > > they all do the same thing: test an ivar for null. > > > > > > > > > > > > > > So the simple thing to do is to make sure we have a good ivar > > name > > >

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Gary Gregory
gt; > use > > > > > > the JAXB inspired pattern: ivar foo has a test method called > > > isFooSet() > > > > > > > > > > > > commentStart : Character > > > > > > escape : Character > > > > > > quoteChar : Char

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Benedikt Ritter
x? > > > > > Let's do that and match the method names. > > > > > > > > > > This also gives us room for String versions later, > > > > getCommentStartString() > > > > > for example, without breaking BC. > > > > > >

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Gary Gregory
gt; > getCommentStartString() > > > > for example, without breaking BC. > > > > > > > > For the with* methods, having the Character postfix does not make > > sense, > > > > since the type of the argument is in the signature. So > > > >

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Benedikt Ritter
> > > Now, that's better :-) > > > > > > My only question now is should "char delimiter" be "char > delimiterChar"? > > > > > > See revision 1612352. > > > > > > Gary > > > > > >

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Gary Gregory
> > > > > > > > > > br, > > > Benedikt > > > > > > > > > 2014-07-20 14:04 GMT+02:00 Gary Gregory : > > > > > > > I like using all "get" methods and no "is" methods. It is simpl

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Benedikt Ritter
It is simpler and > > > makes the getters easier to access as a group with code completion IMO. > > The > > > with methods do not behave like Java bean method so I do not thing we > > need > > > to worry about that. Unless we want to register immutability.

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Gary Gregory
ith methods do not behave like Java bean method so I do not thing we > need > > to worry about that. Unless we want to register immutability... > > > > Gary > > > > Original message From: Benedikt Ritter < > > brit...@apache.org> Date:07/20/2014 04:02

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-21 Thread Benedikt Ritter
f getters and setters in > CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1) > using "get" for methods that return booleans is very uncommon imho... > > how about leaving all the gramme stuff out and use: > > void withSkipEmptyHeaders(boolean) > boolea

Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Emmanuel Bourg
Le 20/07/2014 22:35, Benedikt Ritter a écrit : > Okay, but we can agree upon "allow missing column names" instead of "ignore > empty headers"? I'm ok for "allow missing column names" or "missing column names allowed". Emmanuel Bourg -

Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Benedikt Ritter
ike isActive, isEnabled, is closed > > Gary > > Original message From: Benedikt Ritter > Date:07/20/2014 04:06 (GMT-05:00) > To: Commons Developers List > Subject: Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] > Release Commons CSV 1.0 based on R

Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Gary Gregory
Date:07/20/2014 04:06 (GMT-05:00) To: Commons Developers List Subject: Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1) Any thoughts about this? I still think isAllowingEmptyColumnNames() is a good name.​ :) Benedikt

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Gary Gregory
mmutability... Gary Original message From: Benedikt Ritter Date:07/20/2014 04:02 (GMT-05:00) To: Commons Developers List Subject: Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1) using "get" for m

Re: [CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Benedikt Ritter
Any thoughts about this? I still think isAllowingEmptyColumnNames() is a good name.​ :) Benedikt

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-20 Thread Benedikt Ritter
using "get" for methods that return booleans is very uncommon imho... how about leaving all the gramme stuff out and use: void withSkipEmptyHeaders(boolean) boolean isSkipEmptyHeaders that would - restore symmetry between getter and setter - almost follow JavaBean conventions (except for the "wi

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Dipanjan Laha
Although i am not familiar with CSV's codebase, imho "get" is more straight forward, so +1 to Gary's suggestion. On Saturday, 19 July 2014, Gary Gregory wrote: > On Sat, Jul 19, 2014 at 12:14 PM, Emmanuel Bourg > wrote: > > > Le 19/07/2014 13:48, Gary Gregory a écrit : > > > > > Can we go back

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Gary Gregory
On Sat, Jul 19, 2014 at 12:14 PM, Emmanuel Bourg wrote: > Le 19/07/2014 13:48, Gary Gregory a écrit : > > > Can we go back to use "get"? > > We are running in circles Gary, Benedikt and I, if others could weigh in > that would help. > Circles, back and forth, to and fro, call it what you will. I

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Emmanuel Bourg
Le 19/07/2014 13:48, Gary Gregory a écrit : > Can we go back to use "get"? We are running in circles Gary, Benedikt and I, if others could weigh in that would help. Emmanuel Bourg - To unsubscribe, e-mail: dev-unsubscr...@com

Re: [CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Gary Gregory
Using *ing and *ed versions are worse IMO. *ed like isHeaderRecordSkipped makes it sound like we are asking if something has happened in the past. *ing ( isSkippingHeaderRecord) makes is sounds like you are controlling something that is happening right now. I think it might make the getter methods

[CSV] Naming pattern of getters and setters in CSVFormat (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Benedikt Ritter
... 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 b

[CSV] Rename isIgnoreEmptyHeaders? (was: Re: [VOTE] Release Commons CSV 1.0 based on RC1)

2014-07-19 Thread Benedikt Ritter
... moving this to a new thread. The name isIgnoreEmptyHeaders seems to cause confusion, since in this case an entry in the header is meant and not the whole header (like in skipHeaderRecord) The JavaDoc of isIgnoreEmptyHeaders is: /** * Specifies whether empty headers are ignored when

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
On Fri, Jul 18, 2014 at 4:36 PM, Emmanuel Bourg 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

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
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.

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
On Fri, Jul 18, 2014 at 4:01 PM, Benedikt Ritter wrote: > I think "isAllowingMissingColumnNames" is a good name. > That does not real well at all unfortunately. Gary > > Send from my mobile device > > > Am 18.07.2014 um 17:43 schrieb Emmanuel Bourg : > > > > Le 18/07/2014 17:37, Gary Gregory

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
Le 18/07/2014 22:05, Benedikt Ritter a écrit : > While looking at CSVFormat again, I noticed that the methods currently are > withQuotePolicy and getQuotePolicy. Now I'm feeling we should go with the > more verbose but more explicit name for that enum. Ok. We could use QuoteMode instead of Quot

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Benedikt Ritter
Just to make it clear... We're happy with: - boolean isIgnoringSurroundingSpaces() - withIgnoreSurroundingSpaces(boolean) So nothing has to change? Benedikt Send from my mobile device > Am 18.07.2014 um 16:12 schrieb Gary Gregory : > > There is a nice pattern now with ivar and method names whe

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Benedikt Ritter
Send from my mobile device > Am 15.07.2014 um 20:07 schrieb Benedikt Ritter : > > Hello Emmanuel, > > thanks for your thorough review. I've worked through your list. Here are my > comments: > > > 2014-07-12 19:02 GMT+02:00 Emmanuel Bourg : >> I took a fresh look at the API and here is my re

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Benedikt Ritter
I think "isAllowingMissingColumnNames" is a good name. Send from my mobile device > Am 18.07.2014 um 17:43 schrieb Emmanuel Bourg : > > Le 18/07/2014 17:37, Gary Gregory a écrit : > >> So what do you call the individual names in a header record? > > A column name. That's the term used in CSVRe

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
Le 18/07/2014 17:37, Gary Gregory a écrit : > So what do you call the individual names in a header record? A column name. That's the term used in CSVRecord. Emmanuel Bourg - To unsubscribe, e-mail: dev-unsubscr...@commons.apac

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
On Fri, Jul 18, 2014 at 11:35 AM, Emmanuel Bourg wrote: > Le 18/07/2014 17:29, Gary Gregory a écrit : > > > There is indeed one header record. But that record contains one header > per > > column, so one could conceivably says that there are one or more headers > > per record, just like there is

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
Le 18/07/2014 17:29, Gary Gregory a écrit : > There is indeed one header record. But that record contains one header per > column, so one could conceivably says that there are one or more headers > per record, just like there is one or more value per data record. That's what I found confusing. Fr

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
On Fri, Jul 18, 2014 at 11:20 AM, Emmanuel Bourg wrote: > Le 18/07/2014 16:13, Gary Gregory a écrit : > > Would using "Headers" (plural) be better: withSkipHeadersRecord(boolean) > ? > > Isn't the plural form withSkipHeaderRecords() instead? > > But since there is only one header record I'd keep

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
Le 18/07/2014 16:13, Gary Gregory a écrit : > Would using "Headers" (plural) be better: withSkipHeadersRecord(boolean) ? Isn't the plural form withSkipHeaderRecords() instead? But since there is only one header record I'd keep the singular form. Emmanuel Bourg -

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
Would using "Headers" (plural) be better: withSkipHeadersRecord(boolean) ? Gary On Fri, Jul 18, 2014 at 7:54 AM, Emmanuel Bourg wrote: > Thank you for the fixes Benedikt. > > Le 15/07/2014 20:07, Benedikt Ritter a écrit : > > > skipHeaderRecord refers to the header records as a whole (so it's

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Gary Gregory
There is a nice pattern now with ivar and method names where we have the ivar ignoreSomething (note that it is verb first in the active void) and withIgnoreSomething. It is important IMO to use the active void instead of passive (somethingIgnored) to make it clear who performs the action. It's wi

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-18 Thread Emmanuel Bourg
Thank you for the fixes Benedikt. Le 15/07/2014 20:07, Benedikt Ritter a écrit : > skipHeaderRecord refers to the header records as a whole (so it's > singular). ignore empty headers refers to header column values, so it's > plural. I guess that makes sense. Ok, I misunderstood the intent then.

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-15 Thread Benedikt Ritter
Hello Emmanuel, thanks for your thorough review. I've worked through your list. Here are my comments: 2014-07-12 19:02 GMT+02:00 Emmanuel Bourg : > I took a fresh look at the API and here is my review based on the > Javadoc and the content of the site only: > > - The Javadoc for CSVFormat menti

Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Emmanuel Bourg
Le 13/07/2014 14:01, Gary Gregory a écrit : > I do not think we should bother with Java 5. > > For me the discussion should be whether we require Java 6 or 7. +1 for Java 7 Emmanuel Bourg - To unsubscribe, e-mail: dev-unsubscr

Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Gary Gregory
I do not think we should bother with Java 5. For me the discussion should be whether we require Java 6 or 7. Gary Original message From: Adrian Crum Date:07/13/2014 05:27 (GMT-05:00) To: Commons Developers List Subject: Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on

Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Adrian Crum
I would be inclined to leave Java 5 compatibility to the few (if any) people who still use it. They have access to the CSV source code and they can modify it to make it Java 5 compatible. Adrian Crum Sandglass Software www.sandglass-software.com On 7/13/2014 10:30 AM, Benedikt Ritter wrote: 2

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Benedikt Ritter
2014-07-12 3:17 GMT+02:00 Gary Gregory : > +1 > > Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; > 2014-06-17T09:51:42-04:00) > Maven home: C:\Java\apache-maven-3.2.2 > Java version: 1.7.0_60, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.7.0_60\jre > Default lo

Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Benedikt Ritter
2014-07-13 11:27 GMT+02:00 Adrian Crum : > Why would we target Java 5? It is long past end-of-life. Well I don't have a strong preference here. The reason people bring up for targeting older Java versions is, to reach a broader user group. I'm fine with targeting Java 7. > > > Adrian Crum > Sa

Re: [CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Adrian Crum
Why would we target Java 5? It is long past end-of-life. Adrian Crum Sandglass Software www.sandglass-software.com On 7/13/2014 10:12 AM, Benedikt Ritter wrote: Hi all, this vote it canceled to address the various issues identified. I'll need some time to work through the list, so I expect the

[CANCEL][VOTE] Release Commons CSV 1.0 based on RC1

2014-07-13 Thread Benedikt Ritter
Hi all, this vote it canceled to address the various issues identified. I'll need some time to work through the list, so I expect the next RC by mid of the week (help is always welcome ;-). Till then I'd like to hear comments regarding the Java version to target. >From what I've seen it looks lik

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Gary Gregory
So that means another RC which is fine, since we have a long list of work items from emmanuel email. Original message From: Jörg Schaible Date:07/12/2014 14:05 (GMT-05:00) To: dev@commons.apache.org Subject: Re: [VOTE] Release Commons CSV 1.0 based on RC1 Gary Gregory

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Gary Gregory
I'm fine with Java 7. YMMV. Gary Original message From: Emmanuel Bourg Date:07/12/2014 13:22 (GMT-05:00) To: dev@commons.apache.org Subject: Re: [VOTE] Release Commons CSV 1.0 based on RC1 Le 12/07/2014 17:57, Jörg Schaible a écrit : > According release notes J

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Gary Gregory
[VOTE] Release Commons CSV 1.0 based on RC1 I took a fresh look at the API and here is my review based on the Javadoc and the content of the site only: - The Javadoc for CSVFormat mentions a parseFile() method, but this method doesn't exist. - CSVFormat.DEFAULT states that empty lines are "

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Jörg Schaible
Gary Gregory wrote: > Let's change the docs then. The release notes are included in the artifacts. - Jörg - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.or

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Jörg Schaible
Emmanuel Bourg wrote: > Le 12/07/2014 17:57, Jörg Schaible a écrit : > >> According release notes Java 5 is supported, but it uses already methods >> available in Java 6: > > It's even Java 7, CSVParser implements AutoCloseable. I did no code analysis, but my Java 6 JDKs could compile and run t

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Emmanuel Bourg
Le 12/07/2014 17:57, Jörg Schaible a écrit : > According release notes Java 5 is supported, but it uses already methods > available in Java 6: It's even Java 7, CSVParser implements AutoCloseable. Emmanuel Bourg - To unsubscr

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Gary Gregory
Let's change the docs then. Gary Original message From: Jörg Schaible Date:07/12/2014 11:57 (GMT-05:00) To: dev@commons.apache.org Subject: Re: [VOTE] Release Commons CSV 1.0 based on RC1 Hi Benedikt, -1 According release notes Java 5 is supported, but it uses al

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Emmanuel Bourg
I took a fresh look at the API and here is my review based on the Javadoc and the content of the site only: - The Javadoc for CSVFormat mentions a parseFile() method, but this method doesn't exist. - CSVFormat.DEFAULT states that empty lines are "allowed". Does it mean the empty lines are ignored

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-12 Thread Jörg Schaible
Hi Benedikt, -1 According release notes Java 5 is supported, but it uses already methods available in Java 6: == %< === [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:3.1:compile (default-compile) on project commons

Re: [VOTE] Release Commons CSV 1.0 based on RC1

2014-07-11 Thread Gary Gregory
+1 Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T09:51:42-04:00) Maven home: C:\Java\apache-maven-3.2.2 Java version: 1.7.0_60, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_60\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows

[VOTE] Release Commons CSV 1.0 based on RC1

2014-07-11 Thread Benedikt Ritter
We have worked a long time on CSV and more an more people seem to be using the SNAPSHOT since there is no stable release. Although we still have some outstanding issues regarding some corner cases and uncommon formats, It feels like the API as reached a solid state. So I'd like to finally release