I greatly prefer TSV over CSV. https://en.wikipedia.org/wiki/Tab-separated_values
A love letter to the CSV format
21–30 of 711 posts
Re: A love letter to the CSV format
#22This is what keeps me coming back.
Re: A love letter to the CSV format
#23Way easier to parse
Re: A love letter to the CSV format
#24CSV is ever so elegant but it has one fatal flaw - quoting has "non-local" effects, i.e. an extra or missing quote at byte 1 can change the meaning of a comma at byte 1000000. This has (at least) two annoying consequences: 1. It's tricky to parallelise processing of CSV. 2. A small amount of data corruption can have a big impact on the readability of a file (one missing or extra quote can bugger the whole thing up).…
Re: A love letter to the CSV format
#25I greatly prefer TSV over CSV. https://en.wikipedia.org/wiki/Tab-separated_values
Agreed, much easier to work with, especially if you can guarantee no embedded tabs or newlines. Otherwise you end up with backslash escaping, but that's still usually easier than quotes.
Re: A love letter to the CSV format
#26I greatly prefer TSV over CSV. https://en.wikipedia.org/wiki/Tab-separated_values
Re: A love letter to the CSV format
#27Re: A love letter to the CSV format
#28CSV is ever so elegant but it has one fatal flaw - quoting has "non-local" effects, i.e. an extra or missing quote at byte 1 can change the meaning of a comma at byte 1000000. This has (at least) two annoying consequences: 1. It's tricky to parallelise processing of CSV. 2. A small amount of data corruption can have a big impact on the readability of a file (one missing or extra quote can bugger the whole thing up).…
That would be solved by using the ASCII control chars Record Separator / Unit Separator! I don't get how this is not widely used as standard.
The characters you mention could be used in a custom delimiter variant of the format, but at that point it's back to a binary machine format.
Re: A love letter to the CSV format
#29CSV is lovely. It isn't trying to be cool or legendary. It works for the reasons the author proposes, but isn't trying to go further.
I work in a work of VERY low power devices and CSV sometimes is all you need for a good time.
If it doesn't need to be complicated, it shouldn't be. There are always times when I think to myself CSV fits and that is what makes it a legend. Are those times when I want to parallelise or deal with gigs of data in one sitting. Nope. There are more complex formats for that. CSV has a place in my heart too.
Thanks for reminding me of the beauty of this legendary format... :)