Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



json 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.


TOML

What's the problem?


What are you trying to ask? I don’t understand. I’m not talking about toml.


I 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.


Csv files are bad for many reasons, some of which are listed as positives in the article. I’m not talking about other formats.


But TOML is not a good file format. Quite the opposite actually.

https://hitchdev.com/strictyaml/why-not/toml/


I found that post unconvincing.

> It's very verbose.

This is his example: 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: