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

Programmer Humor

21746 readers
2203 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
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 week ago

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

[–] [email protected] 3 points 2 weeks ago

My google history hits for powershell for loop is is in the dozens.

[–] [email protected] 15 points 2 weeks 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

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

The sad thing is that even chatgpt can't program in bash. I just want a simple script and every single time it just doesn't work. I always just end up saying "write this in python instead".

[–] [email protected] 6 points 2 weeks ago (1 children)

Python's usually the better choice anyway tbf. I know piping isn't as good, but there are so many footguns!

Nushell and Fish can be really convenient too.

I used to adhere to sh for an OpenBSD machine but I switched to python, Rust and Go for, even simple things.

[–] [email protected] 2 points 2 weeks ago

Python is just as portable these days (on modern hardware, caveats, caveats).

Honestly so intuitive that I start there too unless I have a need for speed or distinct memory control. There's no job too small for a python script.

[–] [email protected] 4 points 2 weeks ago* (last edited 2 weeks ago)

The older you get, the more things are like programming in bash.

[–] [email protected] 7 points 2 weeks ago

Meh. I had a bash job for 6 years. I couldn't forget it if I wanted to. I imagine most people don't use it enough for it to stick. You get good enough at it, and there's no need to reach for python.

[–] [email protected] 3 points 2 weeks ago (2 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é!

[–] [email protected] 1 points 2 weeks ago (1 children)

Si yo también comprendo, qué necesidad de comentar todo el tiempo en anglais?

[–] [email protected] 2 points 2 weeks ago (1 children)

En un mundo ideal. Todo se traduciría automáticamente del idioma original al idioma del lector y viceversa

[–] [email protected] 1 points 2 weeks ago

¿No nos volvería lentos y flojonazos? (not a real word if you translate, more like slang meaning to be really lazy)

[–] [email protected] 3 points 2 weeks ago

I so understand! Answering I. French for my first Lemmy reply just to see how it’s handled.

Realizing now that language selection is mainly for people filtering. It be cool if it auto translated for people that need it.

[–] [email protected] 9 points 2 weeks ago (2 children)

i used powershell, and even after trying every other shell and as a die hard Linux user I've considered going back to powershell cause damn man

[–] [email protected] 5 points 2 weeks ago

I am a huge fan of using PowerShell for scripting on Linux. I use it a ton on Windows already and it allows me to write damn near cross-platform scripts with no extra effort. I still usually use a Bash or Fish shell but for scripting I love being able to utilize powershell.

[–] [email protected] 4 points 2 weeks ago

Yeah. The best way to write any bash script is:

apt/yum install PowerShell; pwsh script.ps1

[–] [email protected] 9 points 2 weeks ago (2 children)

to be honest I agree and thought we would be using something more intuitive by now

[–] [email protected] 6 points 2 weeks ago

Everything is text! And different programs output in different styles. And certain programs can only read certain styles. And certain programs can only convert from some into others. And don't get me started on IFS.

[–] [email protected] 3 points 2 weeks ago

I think the cool kids are using Nu now

load more comments
view more: next ›