News for hackers. Stuff that matters.
Re:TSV Utilities: Command line tools for large, tabular data... by Annatar on Sunday September 01, 2019 @04:56AM (#20851242)
Both JSON and YAML are very difficult to construct parsers for.

To make matters worse, both formats are full of pitfalls:

http://seriot.ch/parsing_json.php https://arp242.net/yaml-config.html

using either of these, in my opinion, is extremely misguided.

Re:TSV Utilities: Command line tools for large, tabular data... by chucksmash on Thursday September 05, 2019 @08:33AM (#20885968)
Can't find a source for it now, but one of the design goals of JSON iirc was that it should be easy to parse.

You should have a go at writing a JSON parser to convince yourself it isn't hard. Can manually lex it in less than 150 lines of Python.

Re:TSV Utilities: Command line tools for large, tabular data... by dev_dull on Sunday September 01, 2019 @10:48AM (#20852556)
The flip side to that is that json and yaml parsers exist in every language, and would be more than capable of replacing any logic you’d find in a CSV.
Re:TSV Utilities: Command line tools for large, tabular data... by Annatar on Monday September 02, 2019 @02:35AM (#20857174)
CSV's are a data structure. They do not contain any logic.