4 ms·
> what the heck is .CSV doing on an incline?! It is still the most common interchange format for tabular data. Tabular data is too verbose/unreadable when repr
by sradman 6y ago
> what the heck is .CSV doing on an incline?!
It is still the most common interchange format for tabular data. Tabular data is too verbose/unreadable when represented in standard JSON. Databases and Data Science are also on the rise; .csv continues to ride this wave.
- hombre_fatal 6y agoAlso, "Why use something else when we can use data.join(',') -- that should be enough!" must also be a contributing factor to why CSV will never die.
- globular-toast 6y agoExcept that doesn't work. CSV requires quite complicated quoting rules. Plus the records are separated by CRLF, not a "newline" as many seem to think.
- hombre_fatal 6y agoThat was the point of my failed joke. In other words, people thinking they can just join(",") keeps them from reaching for an actual serializer (JSON, XML, etc), and if they realized they already have to bring in a CSV library anyways, they might consider using another format. Comedy gold, huh? Though I'm only half-joking, I've done it before and we've all consumed "CSV" from people who had the some presumption. :)
- mr_toad 6y agoYou can use column-oriented JSON (with an array for each column of data instead of each row), which is roughly the same size as a CSV file. The downside is that you can’t process a row at a time.