Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pro tip: write in your favourite language and ask chatgpt/github copilot to translate it to bash/jq


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.


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.


But if you already have it in your favorite language, why would you need to translate it to bash or jq? :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: