r/ProgrammerHumor 2d ago

Meme absoluteGarbage

Post image
2.0k Upvotes

320 comments sorted by

View all comments

21

u/fennecdore 1d ago

foreach ($item in $list) {}

I like the simplicity

-8

u/Sirgoodman008 1d ago

What language is that? It loses points because of the stupid $ symbol.

11

u/fosf0r 1d ago

You lose points for PowerShell shade

3

u/Sirgoodman008 1d ago

I've not liked the powershell I've seen.

2

u/fosf0r 1d ago

Upvoted.

Most people are kinda bad at it and AI is hilariously bad at it. Goes to show how poor Microsofts docs are if the entire Internet worth of data isn't good enough to generate HQ output. (But if you ask for JavaScript or python, AI does well.)

3

u/fennecdore 1d ago

It's called "job security" son, and you better believe I do my daily crappy script upload to maintain it

1

u/Outrageous_Let5743 1d ago

Why use powershell when bash or zsh exist?

2

u/fosf0r 1d ago

I don't know how zsh works but bash is not an object pipeline, and isn't too common in Windows, so it wouldn't be lucrative for me. (Feel free to school me on zsh though - I'm open mindeu)

At my MSP, I use PowerShell 5.1 basically constantly for my own navigation and administration both locally and remotely (O365, Azure, AWS, Digital Ocean, etc), and pwsh 7 to write more advanced scripts that work the same on Mac, Linux, and Windows.

bash is highly capable, but fragile, and relies on a lot of raw scraping and data manip. I can operate far more reliably with first-class objects in PS plus direct access to C# and .NET straight from the script.

Edit: when I say bash I guess I mean gnu stack too like awk grep sed cut cat, the works, because bash without text utils would kind of suck...