News for hackers. Stuff that matters.
Re:Time to retire the CSV? by ARandomerDude on Wednesday August 18, 2021 @11:57AM (#28223093)
I'd add the constraint that it needs to be understandable by most people. A typical non-tech office worker can use CSV without any trouble. Sqlite has an extremely steep learning curve for someone unfamiliar with databases.
Re:Time to retire the CSV? by dragontamer on Wednesday August 18, 2021 @12:06PM (#28223229)
Well yeah, that's kind of my point though.

We programmers get stuck into thinking that openness, speed, or other performance characteristics matter. But CSVs prove otherwise.

The reason why CSVs win in many situations is

1. Because they're convenient to edit.

2. Because they work in Microsoft Excel

CSVs have a myriad of issues: too many to list. But that doesn't matter, because convenience + Excel compatibility are king in practice.

To muse about other benefits is ignoring the core reason why CSV is used.

Re:Time to retire the CSV? by salamandersauce on Wednesday August 18, 2021 @12:03PM (#28223188)
Exactly. Worst case a CSV can be edited and viewed or even created in MS Notepad or any other text editor which is pretty much guaranteed to be on a system. Something to deal with Sqlite? No such luck and the barrier is much higher.
Re:Time to retire the CSV? by masklinn on Wednesday August 18, 2021 @12:35PM (#28223647)
> Worst case a CSV can be edited and viewed or even created in MS Notepad or any other text editor which is pretty much guaranteed to be on a system.

Good luck getting that garbage to be ingestible by anything. Odds are the system you're trying you shove it in will start by choking on the UTF8 BOM notepad insists on, then it will choke on the record separators, then on the incorrect escaping (or quoting).

> Something to deal with Sqlite? No such luck and the barrier is much higher.

SQLite is already present in most if not all environments (usually multiple times too, you have at least one instance of sqlite per browser on your machine, and probably a system one as well, and a few others), so it's really at most a matter of providing SQLite clients by default.

Re:Time to retire the CSV? by sigzero on Wednesday August 18, 2021 @08:37PM (#28229007)
SQLite is not the answer. At all.
Re:Time to retire the CSV? by js8 on Wednesday August 18, 2021 @12:45PM (#28223809)
If you have this problem, maybe you just need to go to https://sqlitebrowser.org/