News for hackers. Stuff that matters.
Re:A love letter to the CSV format by nukem222 on Wednesday March 26, 2025 @07:49PM (#43488879)
> It's simple

My experience has indicated the exact opposite. CSVs are the only "structured" format nobody can claim to parse 100% (ok probably not true thinking about html etc, just take this as hyperbole.) Just use a well-specified format and save your brain-cells.

Occasionally, we must work with people who can only export to csv. This does not imply csv is a reasonable way to represent data compared to other options.

Re:A love letter to the CSV format by PaulHoule on Wednesday March 26, 2025 @08:39PM (#43489188)
The HTML 5 spec says exactly how you're supposed to deal with broken HTML files.
Re:A love letter to the CSV format by nukem222 on Wednesday March 26, 2025 @08:42PM (#43489204)
Yes, that is a single spec with correspondingly-small importance. Generally parsing html remains extremely difficult.
Re:A love letter to the CSV format by kibwen on Wednesday March 26, 2025 @09:56PM (#43489670)
It's of quite large importance, and despite being difficult, it is well-specified, which is the point here. Importantly, there is also no competing HTML spec, either de facto or otherwise. CSV doesn't have anything of comparable authority.
Re:A love letter to the CSV format by kokada on Thursday March 27, 2025 @08:33AM (#43492919)
> CSVs are the only "structured" format nobody can claim to parse 100%

You don't need to though since in most cases you just need to support whatever CSV format the tool you're handling, unless of course you're trying to write the next Excel/Google Sheets competitor.