cm0002@lemmy.world to Programmer Humor@programming.dev · 2 个月前Like programming in bashlemmy.mlimagemessage-square185fedilinkarrow-up11.69Karrow-down118cross-posted to: programmerhumor@lemmy.ml
arrow-up11.67Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 个月前message-square185fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareperishthethought@lemm.eelinkfedilinkEnglisharrow-up51arrow-down5·2 个月前I don’t normally say this, but the AI tools I’ve used to help me write bash were pretty much spot on.
minus-squaremarduk@lemmy.sdf.orglinkfedilinkarrow-up25arrow-down5·2 个月前Yes, with respect to the grey bearded uncles and aunties; as someone who never “learned” bash, in 2025 I’m letting a LLM do the bashing for me.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up41arrow-down1·2 个月前Until the magic incantations you don’t bother to understand don’t actually do what you think they’re doing.
minus-squareembed_me@programming.devlinkfedilinkarrow-up41·2 个月前Sounds like a problem for future me. That guy hates me lol
minus-squareMBM@lemmings.worldlinkfedilinkarrow-up14·2 个月前I wonder if there’s a chance of getting rm -rf /* or zip bombs. Those are definitely in the training data at least.
minus-squarefurikuri@programming.devlinkfedilinkarrow-up3·2 个月前The classic rm -rf $ENV/home where $ENV can be empty or contain spaces is definitely going to hit someone one day
minus-squarearendjr@programming.devlinkfedilinkarrow-up11arrow-down1·edit-22 个月前In fairness, this also happens to me when I write the bash script myself 😂
minus-squarekameecoding@lemmy.worldlinkfedilinkarrow-up4arrow-down2·2 个月前Yes, I have never wrote a piece of code that didn’t do what I thought it would before LLMs, no sir.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up17·edit-22 个月前Yeah, an LLM can quickly parrot some basic boilerplate that’s showed up in its training data a hundred times.
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up6·2 个月前For building a quick template that I can tweak to my needs, it works really well. I just don’t find it to be an intuitive scripting language.
minus-squareewenak@jlai.lulinkfedilinkarrow-up1·2 个月前If When the script gets too complicated, AI could also convert it to Python. I tried it once at least, and it did a pretty good job, although I had to tell it to use some dedicated libraries instead of calling programs with subprocess.
I don’t normally say this, but the AI tools I’ve used to help me write bash were pretty much spot on.
Yes, with respect to the grey bearded uncles and aunties; as someone who never “learned” bash, in 2025 I’m letting a LLM do the bashing for me.
Until the magic incantations you don’t bother to understand don’t actually do what you think they’re doing.
Sounds like a problem for future me. That guy hates me lol
Yeah fuck that guy
I wonder if there’s a chance of getting
rm -rf /*
or zip bombs. Those are definitely in the training data at least.The classic
rm -rf $ENV/home
where$ENV
can be empty or contain spaces is definitely going to hit someone one dayIn fairness, this also happens to me when I write the bash script myself 😂
Yes, I have never wrote a piece of code that didn’t do what I thought it would before LLMs, no sir.
Yeah, an LLM can quickly parrot some basic boilerplate that’s showed up in its training data a hundred times.
For building a quick template that I can tweak to my needs, it works really well. I just don’t find it to be an intuitive scripting language.
IfWhen the script gets too complicated, AI could also convert it to Python.I tried it once at least, and it did a pretty good job, although I had to tell it to use some dedicated libraries instead of calling programs with subprocess.