this post was submitted on 05 Mar 2025
1064 points (99.0% liked)

Programmer Humor

27500 readers
1550 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
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] JTskulk@lemmy.world 3 points 8 months ago

Bash was the first language I learned, got pretty decent at it. Now what happens is I think of a tiny script I need to write, I start writing it in Bash, I have to do string manipulation, I say fuck this shit and rewrite in Python lol

[–] Tungsten5@lemm.ee 3 points 8 months ago (1 children)

And I thought I was the only one… for smaller bash scripts chatGPT/Deepseek does a good enough job at it. Though I still haven’t tried VScode’s copilot on bash scripts. I have only tried it wirh C code and it kiiiinda did an ass job at helping…

[–] cm0002@lemmy.world 1 points 8 months ago (1 children)

AI does decently enough on scripting languages if you spell it out enough for it lol, but IMO it tends to not do so well when it comes to compiled languages

I've tried Python with VScode Copilot (Claude) and it did pretty good

[–] isVeryLoud@lemmy.ca 1 points 8 months ago

That's because scripted languages are more forgiving in general.

[–] traches@sh.itjust.works 3 points 8 months ago (1 children)

This is why I finally switched to nushell.

[–] Kissaki@programming.dev 2 points 8 months ago (1 children)
[–] traches@sh.itjust.works 1 points 8 months ago* (last edited 8 months ago)

I’d been considering it for awhile, but thought it wasn’t worth the trouble of switching until I realized just how often I do things the tedious manual way because writing a bash script to do it is so arcane

[–] MelodiousFunk@slrpnk.net 3 points 8 months ago

VLOOKUP. Every time. Also Catan Cities and Knights.

[–] victorz@lemmy.world 2 points 8 months ago (1 children)

Ever since I switched to Fish Shell, I've had no issues remembering anything. Ported my entire catalogue of custom scripts over to fish and everything became much cleaner. More legible, and less code to accomplish the same things. Easier argument parsing, control structures, everything. Much less error prone IMO.

Highly recommend it. It's obviously not POSIX or anything, but I find that the cost of installing fish on every machine I own is lower than maintaining POSIX-compliant scripts.

Enjoy your scripting!

load more comments (1 replies)
[–] wwb4itcgas@lemm.ee 2 points 8 months ago

I have a confession to make: Unless shell script is absolutely required, I just use Python for all my automation needs.

[–] DarkShaggy@lemmy.world 2 points 8 months ago

I feel same with regex....

[–] Irelephant@lemm.ee 1 points 8 months ago

It seems like it does stuff differently for the sake of it being different.

[–] Zink@programming.dev 1 points 8 months ago

I don’t write very small shell scripts because I am not a job destroyer.

[–] jaybone@lemmy.world 1 points 8 months ago

Or it’s because other people are assholes. And write shit garbage. And then you go to fix a bug or add an enhancement. And then you are stuck.

[–] Akito@lemmy.zip 1 points 8 months ago

Very true. Been programming/scripting in Bash since many many years, I could almost consider myself an "expert", however I still need to look up the same crap over and over again, since remembering weird symbol constellations is the last thing you should do, when you actually just wanna achieve a goal with the script and not learn how to summon the spirit of some C-related language creator.

[–] Pixelbeard@lemmy.ca 1 points 8 months ago (3 children)

Je comprend tellement! Je répond en français pour ma première réponse sur Lemmy juste pour voir comment ça va être géré!

load more comments (3 replies)
load more comments
view more: ‹ prev next ›