Re:Interactive Examples for Learning Jq
by DanielHB on Wednesday November 08, 2023 @09:49AM
(#38191116)
pro tip: write in your favourite language and ask chatgpt/github copilot to translate it to bash/jq
[ Parent
| on HN ]
Re:Interactive Examples for Learning Jq
by Ajnasz on Wednesday November 08, 2023 @10:31AM
(#38191809)
But if you already have it in your favorite language, why would you need to translate it to bash or jq? :)
Re:Interactive Examples for Learning Jq
by nkozyra on Wednesday November 08, 2023 @09:52AM
(#38191162)
Pro tips should make you faster, not slower ;)
Carting your request over to chatgpt rather than learning the basics of jq doesn't make much sense.
I basically know enough jq to traverse a document, which took a few days of muscle memory. Totally worth it. One of the best tools I've used in the last decade and I'm barely scratching the surface.
Re:Interactive Examples for Learning Jq
by DanielHB on Wednesday November 08, 2023 @10:16AM
(#38191542)
not saying you shouldn't know `curl some.json | jq -r '.someField'`, but anything beyond that is overkill unless you do hardcore bash scripting all the time. My annual bash script quota is like a couple hundred lines at most so I don't really want to learn this stuff deeply.