+++
Why isn’t there a decent file format for tabular data?
81–90 of 355 posts
Re: Why isn’t there a decent file format for tabular data?
#82I never understood why the ASCII separator characters aren't used more. It seems like we're one simple text editor feature away from having easy display and modification. Is there some historical reason for not doing that?
ASCII separators (mnemonics FS, GS, RS, US) are difficult for most users to type, and have no obvious/standardized visual representation.
Re: Why isn’t there a decent file format for tabular data?
#83I thought in-band signalling was generally considered harmful these days? +++
Re: Why isn’t there a decent file format for tabular data?
#84Earlier quoted context omitted.
I think CSV is crappy because commas are so common in real data. For almost all scenarios I've had to work with, I'd have been perfectly happy with TSV where literal Tab was a disallowed character. No escaping histrionics required.
Not being able to include Tabs and Carriage Returns in your data can be a problem though.
I think that was the motivation for multi-character delimiters like or {{ }} in templating languages.
Re: Why isn’t there a decent file format for tabular data?
#85> No escaping. If you want to put \u001F or \u001E in your data – tough you > can’t. Use a different format. > It would be reasonably compact, efficient to parse and easy to manually edit > (Notepad++ shows the unit separator as a ‘US’ symbol). Is it me or it won't be human readable because of the lack of new lines?
Re: Why isn’t there a decent file format for tabular data?
#86I never understood why the ASCII separator characters aren't used more. It seems like we're one simple text editor feature away from having easy display and modification. Is there some historical reason for not doing that?
ASCII separators (mnemonics FS, GS, RS, US) are difficult for most users to type, and have no obvious/standardized visual representation.
Re: Why isn’t there a decent file format for tabular data?
#87But Excel as a tool is on so many desktops that you can assume access, and so it gets used.
I have a strong sense that this may be the biggest reason why no other format has taken over. It's "good enough" that it steals oxygen from any competing idea.
Re: Why isn’t there a decent file format for tabular data?
#88Earlier quoted context omitted.
But usually it will be 1 character vs 4. So that adds a lot of space that doesn’t add much value. It’s also harder to read.
I would say invisible control characters would be even harder to read.
Re: Why isn’t there a decent file format for tabular data?
#89I think it’s because csv is good enough. All the standards I’ve seen haven’t been worth the effort to implement. So since csv, with all its flaws, is good enough it crowds out other open standards. People complain about it, but it’s not really much of a challenge to use csv. I’d also prefer it over the crap (rdf, xml, even schemad json) proposed by people who value more structure. It’s easier for me to just make clea…
CSV is fine. If you care about edge cases, implement RFC 4180: https://www.rfc-archive.org/getrfc.php?rfc=4180 If you don't, then split each line on ",". Problem solved. If you find tab delimited easier to read (as I do), then check out the IANA spec for TSV files: https://www.iana.org/assignments/media-types/text/tab-separa... It's easier to parse than CSV. Unfortunately, you have to decide how to handle newlines an…
And the millionth bad CSV parser is born.