3 ms·
Except they did, and I for one wish traditional Unix shells would die. Composing software by having every single program and script include a half-assed parser
by TeMPOraL 6y ago
Except they did, and I for one wish traditional Unix shells would die. Composing software by having every single program and script include a half-assed parser and serializer is causing a lot of unnecessary waste and occasional security problems in computing. Moving structured data in pipes is just a better idea.
- rbanffy 6y agoThen use JSON or XML in those pipes. Nothing forces you to deal with unstructured data.
- TeMPOraL 6y agoWish I could (actually, I'd prefer JSONB or other binary format). Unfortunately, every program in the UNIX ecosystem assumes unstructured text in pipes, and makes it my responsibility to glue them together by building ad-hoc parsers with grep, head, sort, sed and awk.
- rbanffy 6y agoA lot of more recent programs (such as AWS, K8s tools) can easily output JSON. You can make schemas match, but you'll most of the time need to use something like jq to transform what one program outputs into what makes sense for the other. I always try to design my tools with a "terse" output that makes it easier to pipe it into other programs.