logoalt Hacker News

evikstoday at 8:42 AM4 repliesview on HN

That's not the benefit of text, just adoption. All these tools could've just as well grown to be popular with a proper format, and your point would be exactly the same


Replies

seletskiytoday at 11:15 AM

Master Git and a novice were walking to the market to collect alms.

The novice asked: "Master, what is the advantage of unstructured text over structured? Is it not mere adoption?"

Master Git said nothing and pointed to the first shop, kept by the old scrooge Postgre.

As they entered, Master Git said quietly, shaping his mouth funnily:

  SELECT weight/2 FROM shelf WHERE name = ''
Postgre, long weary of Master's wisdoms, took a weight of three from the nameless shelf and cut it unevenly. The whole piece he pressed into the novice's bowl; the larger part, he kept for himself.

Next stood a shop kept by a bright newcomer, Duck D'Bee.

Master Git repeated:

  SELECT weight/2 FROM shelf WHERE name = ''
Duck D'Bee smiled, carefully took an unnamed jar from a vertical stack and handed over one piece and half of another.

Their journey ended at a giant abandoned building beneath a dead neon sign: ORCL. The door stood open. Inside, putrid odour and dust lay upon deflated balloons and faded banners saying A.I. The shelves were still full of unmarked boxes.

Master Git shouted into the dark:

  SELECT weight/2 FROM shelf WHERE name = ''
Silence was the reply. At this point the novice became enlightened.
throw0101dtoday at 10:57 AM

> All these tools could've just as well grown to be popular with a proper format, and your point would be exactly the same

And what would this "proper format" be? Currently JSON is in vogue (or JSON5, which allows comments?), but a few years ago it would have been XML, before that… CSV? TSV?

Or perhaps do a Choose Your Own Adventure:

* https://libxo.readthedocs.io/

The Unix-y world has been around for decades, so it many ways it has evolved rather than be designed.

show 1 reply
psd1today at 10:24 AM

You're damned right - much better is possible than the gnu tools. I'm one of the savages using pwsh on Linux (the other two are still on reddit). I have no need for sed/awk ascii salad, and jq can fuck off into the far distance.