4 ms·
That came far after csv files started being used and many parsers don’t follow the spec. Even if they do, editing the file manually can easily and silent break
by IanCal 1y ago
That came far after csv files started being used and many parsers don’t follow the spec. Even if they do, editing the file manually can easily and silent break it - my criticisms are of entirely valid to the new spec files. The wide range of ways people make csvs is a whole other thing I’ve spent years fixing.
It’s not about the stupidity of the humans, and if it was then planning for “no stupid people” is even stupider than those messing up the files.
> Maybe you need a database or an app rather than flat files.
Flat files are great. What’s needed are good file formats.
- burnt-resistor 1y agoTOML What's the problem?
- IanCal 1y agoWhat are you trying to ask? I don’t understand. I’m not talking about toml.
- burnt-resistor 1y agoI gave you a good text file format. You're acting like there are no good file formats. Either invent a domain-specific one, use a standard one, or use a different modality rather than complain that a utopia you won't bother to create doesn't exist.
- IanCal 1y agoCsv files are bad for many reasons, some of which are listed as positives in the article. I’m not talking about other formats.
- integralid 1y agoBut TOML is not a good file format. Quite the opposite actually. https://hitchdev.com/strictyaml/why-not/toml/ https://hitchdev.com/strictyaml/why-not/toml/
- ioasuncvinvaer 1y agoI found that post unconvincing. > It's very verbose. This is his example: https://github.com/crdoconnor/strictyaml/blob/master/hitch/story/map.story https://github.com/crdoconnor/strictyaml/blob/master/hitch/s... I think you shouldn't use yaml or toml for this. > TOML's hierarchies are difficult to infer from syntax alone True! The point of TOML is to flatten the hierarchical structures. I would argue your configuration files shouldn't have much nesting anyway. > Overcomplication: Like YAML, TOML has too many features Basically TOML has a date type and all associated problems and advantages. I think it's a reasonable thing to include. > Syntax typing I think this is a good thing. I want to know whether something is a string or a number.
- knome 1y agojson makes for a great flat file format these days, with jq around to munge the data in it. csv is pretty bad for errors. mostly use it to dump data when I need to pass it to someone that will want to shove it in excel.