this post was submitted on 05 Mar 2025
1672 points (100.0% liked)

Programmer Humor

22872 readers
811 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
[–] [email protected] 8 points 1 month 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 1 month 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 1 month ago

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

apt/yum install PowerShell; pwsh script.ps1

[–] [email protected] 8 points 1 month ago

When I was finishing of my degree at Uni I actually spent a couple of months as an auxiliary teacher giving professional training in Unix, which included teaching people shell script.

Nowadays (granted, almost 3 decades later), I remember almost nothing of shell scripting, even though I've stayed on the Technical Career Track doing mostly Programming since.

So that joke is very much me irl.

[–] [email protected] 7 points 1 month 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] 7 points 1 month ago (4 children)

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

load more comments (4 replies)
[–] [email protected] 7 points 1 month ago (5 children)

I mastered and forgot almost entirely RegEx several times now

load more comments (5 replies)
[–] [email protected] 4 points 1 month ago

I feel same with regex....

[–] [email protected] 4 points 1 month ago

Incredibly true for me these days. But don't fret, shellcheck and tldp.org is all you need. And maybe that one stackoverflow answer about how to get the running script's directory

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

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

[–] [email protected] 4 points 1 month ago* (last edited 1 month 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".

[–] Hawk 6 points 1 month 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.

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