this post was submitted on 05 Mar 2025
1667 points (98.9% liked)

Programmer Humor

22244 readers
1281 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
[–] Aceticon@lemmy.dbzer0.com 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.

[–] T156@lemmy.world 8 points 1 month ago (1 children)

Bash substitution is regex-level wizardry.

[–] SpaceNoodle@lemmy.world 7 points 1 month ago (3 children)

Slapping a $ before an environment variable name is "wizardry?"

[–] T156@lemmy.world 5 points 1 month ago (2 children)

Not quite that, but more the ${variable##.*} sort of thing.

[–] SpaceNoodle@lemmy.world 4 points 1 month ago

Right, so that's just the string manipulation functions. I already posted a link to the bible for this following a different reply to the same comment to which you replied.

load more comments (1 replies)
[–] pelya@lemmy.world 4 points 1 month ago (3 children)

Nope, the whole ${variable/regex/replacement} syntax

load more comments (3 replies)
[–] SwordInStone@lemmy.world 4 points 1 month ago

interns be interning

[–] jkercher@programming.dev 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.

[–] Irelephant@lemm.ee 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)
[–] synae@lemmy.sdf.org 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

load more comments
view more: ‹ prev next ›