this post was submitted on 17 Jan 2024
519 points (95.8% liked)

Programmer Humor

32426 readers
636 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://startrek.website/post/5735388

Counterspell this

top 32 comments
sorted by: hot top controversial new old
[–] null@slrpnk.net 50 points 9 months ago (2 children)
[–] abclop99@beehaw.org 18 points 9 months ago
[–] quantenzitrone@feddit.de 18 points 9 months ago (1 children)

where nushell, xonsh, rush, yash, dash, powershell, oil, elvish?

[–] tetris11@lemmy.ml 11 points 9 months ago

these are really bad band names

[–] SnotFlickerman@lemmy.blahaj.zone 35 points 9 months ago (1 children)

We don't talk about the red-headed step-child PowerShell.

[–] Deebster@programming.dev 29 points 9 months ago (2 children)

Clever but really verbose incantations that no-one can remember.

Even more biased towards the English-speaking set of command-line Wizards than the standard fare!

[–] thecrotch@sh.itjust.works 10 points 9 months ago (1 children)

Just use the List-And-Display-Available-Relevant-Commands-Formatted-As-Table commandlet. Couldn't be easier.

[–] SnotFlickerman@lemmy.blahaj.zone 3 points 9 months ago* (last edited 9 months ago) (1 children)

I mean...

get-command *mycommand* | format-table

Isnt that hard to remember is it?

[–] thecrotch@sh.itjust.works 7 points 9 months ago

It ruins my joke about the overly verbose commands though

[–] PM_Your_Nudes_Please@lemmy.world 12 points 9 months ago* (last edited 9 months ago) (1 children)

I made a quick (not an exaggeration. I was sloppy with my trimming and filling in the text) 128x128 discord emoji out of this, for those who care:

Alakablam

[–] CanadaPlus@futurology.today 1 points 9 months ago* (last edited 9 months ago) (1 children)

Hmm, let me try this.

Counterspell

Edit: Nice! For anyone else, just copy the link from the source of the comment.

[–] PM_Your_Nudes_Please@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

I mean, you can do that with any image. Adding the exclamation point before the link tells Lemmy to embed the image instead. And anything you put in the brackets turns into alt text, which users can view by hovering over the image.

My point was mostly to be able to add it to my discord server (or anywhere that allows custom emoji’s, really.) Since they use a standardized 128x128 image size, it’s just a matter of scaling it down to that and trimming it so it’s transparent.

[–] mdhughes@lemmy.ml 11 points 9 months ago

csh/tcsh (not anymore, I use zsh)

scsh (more usable scripting than interactive), with the best acknowledgments

[–] tuto193@lemmy.world 9 points 9 months ago

Where is "nu" though?

[–] Frederic@beehaw.org 7 points 9 months ago

tcsh also! I used it a lot uhhhh last century

[–] hperrin@lemmy.world 5 points 9 months ago

fish best shell

[–] xantoxis@lemmy.world 5 points 9 months ago

I've been eyeing Wizard with a Gun for a minute, maybe this is a sign

[–] tabris@lemmy.ml 5 points 9 months ago (1 children)

Don't forget pwsh! πŸ€ͺ

[–] lars@lemmy.sdf.org 0 points 9 months ago (1 children)

Instead of putting the onus on you, I let ChatGPT do the heavy lifting… of some answers adjacent to the one I wanted. Yes I was being kinda lazy.

[–] Bene7rddso@feddit.de 2 points 9 months ago

The only reason I can think of to use pwsh.exe is to run it in Wine

[–] cupcakezealot@lemmy.blahaj.zone 4 points 9 months ago (1 children)

with a dry cool wit like that, gandalf could be an action hero

[–] wahming@monyet.cc 4 points 9 months ago

Read the dresden files, that's pretty much its main conceit

[–] r00ty@kbin.life 4 points 9 months ago

Hah, I remember using ksh on an old IBM AIX box.

[–] BlueFairyPainter@feddit.de 2 points 9 months ago (1 children)
[–] lars@lemmy.sdf.org 3 points 9 months ago

Most def. So does dash.

[–] Odinkirk@lemmygrad.ml 1 points 9 months ago

This screams Dresden Files.

[–] kender242@lemmy.world 1 points 9 months ago

Outlaw Star needs to be in here somewhere....

[–] TCB13@lemmy.world 0 points 9 months ago (3 children)

Why do people keep creating new shells when bash is mostly okay?

Why create anything new or different?

[–] vox@sopuli.xyz 6 points 9 months ago

fieh and nushell actually offer something new, and zsh is just a better bash if you want that

[–] mdhughes@lemmy.ml 4 points 9 months ago

There's a massive number of security holes in bash, shellshock being the most egregious. bash has some really terrible design flaws, especially parsing $var multiple times so you can't reliably break on spaces. Almost any other shell is safer and more productive.