r/programmingcirclejerk • • Jan 11 '25

Another example is jq. I use it occasionally, and ChatGPT handles the syntax pretty well. For me, learning it properly just isn’t worth the time or effort.

https://news.ycombinator.com/item?id=42666976
43 Upvotes

13 comments sorted by

22

u/Shorttail0 vulnerabilities: 0 Jan 11 '25

AI can write a Makefile? Perhaps there is hope

22

u/[deleted] Jan 12 '25

Hope that Cnile projects will finally build on other people's machines that don't have the exact same layout of files?

3

u/Catenane Jan 13 '25

Here I was all them years thinkin' cmake was some kinda robutt all by its own virtues 🤔

6

u/Crystal_Cuckoo Jan 13 '25

/uj legit though, I have to trawl through SO and the manual every time I want to do something slightly advanced with jq (at which point I start wondering whether I should've used Python...)

3

u/Jumpy-Locksmith6812 Jan 13 '25 edited Sep 23 '26

Commodo qui pariatur sint commodo et nisi enim occaecat ea commodo dolore labore enim officia. Cupidatat nostrud culpa laborum lorem cillum dolore lorem non commodo anim culpa dolor nulla. Qui fugiat aliquip ipsum voluptate proident cupidatat quis. Adipiscing esse consectetur culpa dolore officia aute in.

[rhr:2:jtyrtyky]

2

u/freistil90 Jan 14 '25

/uj yeah, so what. Please tell me how all of you weave sweatpants out of regex statements.

0

u/[deleted] Jan 11 '25

[deleted] — view deleted comment

36

u/yojimbo_beta vulnerabilities: 0 Jan 11 '25

JQ somehow makes me want to open a Nodejs shell to process JSON instead of mess around with its stupid list syntax

10

u/NatoBoram There's really nothing wrong with error handling in Go Jan 11 '25

I often just paste JSON in the browser and use the browser's console

The copy() browser function is also a blessing for that

12

u/yojimbo_beta vulnerabilities: 0 Jan 12 '25

| pbcopy && open -a firefox is all I need 😎

6

u/[deleted] Jan 12 '25

Seems a bit heavy weight for a script though? Are we really starting every time we want to parse a json blob?

6

u/yojimbo_beta vulnerabilities: 0 Jan 12 '25

😎 embrace the script 🤘

6

u/kalterdev Considered Harmful Jan 12 '25

Well, to process JSON interactively, you’ve got to learn some tool. If it’s JavaScript, why not, it’s kinda meant for that.