Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It hasn't. Powershell is probably one of great things to come out of Windows Server. I still use it with *nix machines and it powers some sidecars at work. If you are stuck with Windows Server, it's only thing that gives you a fighting chance of being able to do anything NotClickOps (tm)

Sure, it's got some unique characteristic that more traditional shell users dislike but that's just a matter of taste.



It irks me that the default for servers still seems to be 5.1 which is anemic and seems to have really weird quirks and syntax differences from later versions. As if the default silent jsondepth thing was not enough converfrom-json hash tables have case insensitive keys. Really?

Someone wrote some automation code that handles json payloads using powershell. When we tried to migrate to azure functions which uses 7.x by default things broke because users never cared to check sensitivity of key names.

It’s also slow even for interpreted language standards.

I’ll seriously never use powershell for anything serious ever again even though I admit syntax and design feels kinda nice.


Because backwards compatibility. I've run into stuff that doesn't working in 7.x without a rewrite.

It's just best to think about Powershell 5.1 and Powershell Core 7.x like Py2 -> Py3. Most of code works as is, some doesn't, and you should use latest when you can.

>Someone wrote some automation code that handles json payloads using powershell. When we tried to migrate to azure functions which uses 7.x by default things broke because users never cared to check sensitivity of key names.

Azure Functions are nightmare in its own. Not sure how much of that is Powershell fault vs Azure Functions.

>It’s also slow even for interpreted language standards.

Actually, it's blown Python out of the water at work. It's startup time can be painful as it's interpreting everything but once it gets going, it really moves. We use it to churn through 4GB CSV at work replacing a Python script, it's much much faster.

>I’ll seriously never use powershell for anything serious ever again even though I admit syntax and design feels kinda nice.

Your loss. Despite the few problems I run into, I really like it and wish more *nix people gave it a try. It's much better then bash nightmares I've seen.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: