← Back to context

Comment by holysoles

4 hours ago

I've written a lot of powershell in my time..

PS is really powerful for Windows OS level concepts and enterprise software that have good modules (AD, IIS, Citrix). However it has so many semantics that can burn you; non-strict mode, implicit type conversion, ordered null checks [1], not to mention the amount of boilerplate in a module and the runtime overhead. At a certain scale/complexity you need to graduate to using C# and .NET.

[1] https://learn.microsoft.com/en-us/powershell/utility-modules...

I like Powershell but what's funny is you can now write single file C# scripts and run them from the dotnet command. No need for a solution or anything. Actually pretty nice for shell scripting now.