this post was submitted on 05 Mar 2025
1653 points (99.1% liked)

Programmer Humor

21680 readers
531 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] perishthethought@lemm.ee 45 points 2 weeks ago (4 children)

I don't normally say this, but the AI tools I've used to help me write bash were pretty much spot on.

[–] marduk@lemmy.sdf.org 19 points 2 weeks ago (1 children)

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.

[–] SpaceNoodle@lemmy.world 40 points 2 weeks ago (4 children)

Until the magic incantations you don't bother to understand don't actually do what you think they're doing.

[–] embed_me@programming.dev 41 points 2 weeks ago (1 children)

Sounds like a problem for future me. That guy hates me lol

[–] WhatAmLemmy@lemmy.world 6 points 2 weeks ago

Yeah fuck that guy

[–] MBM 14 points 2 weeks ago (1 children)

I wonder if there's a chance of getting rm -rf /* or zip bombs. Those are definitely in the training data at least.

[–] furikuri@programming.dev 3 points 1 week ago

The classic rm -rf $ENV/home where $ENV can be empty or contain spaces is definitely going to hit someone one day

[–] arendjr@programming.dev 10 points 2 weeks ago* (last edited 2 weeks ago)

In fairness, this also happens to me when I write the bash script myself 😂

[–] kameecoding@lemmy.world 2 points 2 weeks ago

Yes, I have never wrote a piece of code that didn't do what I thought it would before LLMs, no sir.

[–] SpaceNoodle@lemmy.world 17 points 2 weeks ago* (last edited 2 weeks ago)

Yeah, an LLM can quickly parrot some basic boilerplate that's showed up in its training data a hundred times.

[–] henfredemars@infosec.pub 6 points 2 weeks ago

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.

[–] ewenak@jlai.lu 1 points 2 weeks ago

~~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.