[HECnet] CSV Proposal

Robert Jarratt robert.jarratt at ntlworld.com
Sun May 19 17:02:18 PDT 2013



-----Original Message-----
From: owner-hecnet at Update.UU.SE [mailto:owner-
hecnet at Update.UU.SE] On Behalf Of Brian Hechinger
Sent: 19 May 2013 16:03
To: HECnet Mailing List
Subject: [HECnet] CSV Proposal

CSV as a data format is actually quite powerful, flexible and simple.

In order for it to work, however, we need to agree on some ground rules.

The ground rules are simply this:

1) The first line must *always* be the header. This is not optional.
2) The field separator must be chosen.
3) The names of the columns must be decided on.
4) The column names should be case insensative.
5) The columns need to be defined required or optional.
6) This all needs to be documented somewhere.

The reason for the header being required is you can do column name to
column position mapping. This makes the CSV column layout not fixed. The
columns can be in whichever order each person finds appropriate.

#2 is pretty much already chosen as | seems to be the most common one
(one of my favorites as it rarely appears in text).

There are some already commonly used column names at this point, so we
should make a list of what those are and which we are going to use.

I think the rest are self explanatory. :)

Let's discuss!!

-brian


Well, if the separator is | then it isn't a CSV file :-)

I have no issue with this except that allowing the columns to appear in any
order, while nice and flexible, makes it harder to write the software. It
does not seem worth the effort to have that flexibility given the low
enthusiasm for writing this software, so a simplification would be to fix
the column order.

Actually I am thinking that I wouldn't mind writing the program myself, but
don't wait for me, I have a host of other things I want to do as well.

Regards

Rob



More information about the Hecnet-list mailing list