106
Bringing the Unix Philosophy to the 21st Century
(blog.kellybrazil.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Not to piss on anyones parade here, but grepping something out of a json structure is one of the most asked questions for jq as well. Of course json is nice, but if the goal is to simplify data extraction, I'm not sure much will be gained by this.
As far as reducing the toolchain necessary to extract the same data, this is a welcome addition.
I've never been able to successfully write a jq command without having to Google it. It is something so complex and I don't do it often, so I just forget everything.
I hope they figure out something with more I tuitive syntax, something SQL-like that people can write without having to look at a manual.
Anyways, AI is here... pretty soon we'll just translate natural text to whatever overly complex language there is.
I'm sure I'll get replies of people saying jq is easy. It isn't for me, right now I can t even remember how to filter and create associations between objects. I think I'll just start writing small python apps to process JSON. A bit longer but at least I can maintain it. The only issue is that Python is too heavy... I'll figure something out.
I've been thinking for a while that what we actually need is a modern shell language. Like a mix between python and shell. Imagine if you had native support to read a JSON using shell.
Edit: oh shit. Said all of this and then saw the comment below talking about Nushell. Today is a good day.