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

Programmer Humor

24790 readers
713 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
[–] Tungsten5@lemm.ee 3 points 4 months ago (2 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…

load more comments (2 replies)
[–] traches@sh.itjust.works 3 points 4 months ago (1 children)

This is why I finally switched to nushell.

[–] Kissaki@programming.dev 2 points 4 months ago (1 children)
[–] traches@sh.itjust.works 1 points 4 months ago* (last edited 4 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 4 months ago

VLOOKUP. Every time. Also Catan Cities and Knights.

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

I feel same with regex....

[–] victorz@lemmy.world 2 points 4 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!

If you're going to write scripts that requires installing software, might as well use something like python though? Most Linux distros ship also ship with python installed

[–] wwb4itcgas@lemm.ee 2 points 3 months ago

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

[–] Akito@lemmy.zip 1 points 4 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 4 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)
[–] jaybone@lemmy.world 1 points 4 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.

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

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

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

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

load more comments
view more: ‹ prev next ›