r/PowerShell • Community Blogger • 15h ago

News Why developers hate PowerShell

https://powershellexplained.com/2026-11-24-why-developers-hate-PowerShell/?utm_medium=post&utm_content=rpowershell&utm_source=reddit

This is a post that I have been thinking about writing for a very long time now. I find that developers struggle with PowerShell in a very different way that the sysadmin learning to automate. They bring intuitions and assumptions with them from other languages that catch them off guard when they skip over the documentation. In this article I try to capture some of those experiences and misunderstandings.

I cover a lot of ground in this one: running scripts, execution policy, aliases, objects and formatting, calling functions, output and return values, unrolling, operators, case sensitivity, type conversion, truthiness, strings, scope, automatic variables, paths, encoding, errors, native commands, and classes.

While this one is targeting Software Engineers more then Systems Engineers, I would still appreciate your feedback and stories of your own frustrating experiences.

Thank you, -Kevin

226 Upvotes

71 comments sorted by

View all comments

-4

u/Medium-Comfortable 14h ago

ls exists, but it isn’t the ls you know.

That's where I stopped reading. No shit Sherlock, a different script language behaves differently.

7

u/aguerooo_9320 14h ago

This is Kevin Marquette, he's aware of it all, just explaining from the point of view of a developer.

6

u/KevMar Community Blogger 14h ago

Yes, I do point out some obvious things in a post about people making assumption. I generally start overly basic before diving into more challenging things.

1

u/chrono13 12h ago edited 12h ago

But that's not the command. The command is Get-ChildItem. GCI has expected behavior. LS in powershell does not have the expected behavior in its output or flags.

This is an alias, but an alias that doesn't take the ls flags. Which means despite being cross-platform, And the command existing on both systems, it breaks depending on which operating system it's ran on. A better example is how this aliasing breaks the expected behavior of curl.

To put it another way, if I were to simply list the contents of a folder as the only command in powershell with a single flag, and it's working on Linux, BSD and Mac, it will break on Windows. That's not expected behavior for a cross platform scripting language.

1

u/BlackV 10h ago

Medium-Comfortable

ls exists, but it isn’t the ls you know.

That's where I stopped reading. No shit Sherlock, a different script language behaves differently.

Sounds like maybe you should have read more then, sounds like that was exactly the point they were making....

1

u/neotearoa 9h ago

Bruh, this is nature or evolution at play. Be a gentle god and let it work itself out 🙏.

Remember that you can lead a horticulture, but you can not make it think.

1

u/BlackV 9h ago

Ha, can do