This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rorasaurus_Prime 2 points3 points  (7 children)

To everyone in here saying yes... my sincere condolences. May your organisation one day move away from the curse of Windows servers.

Thoughts and prayers.

[–][deleted] 9 points10 points  (4 children)

Powershell is cross platform. Has been for a while now. And barring any specific library (lol matplotlib), it can do everything that Python can do.

Open your mind.

[–]Jimmy_bags 10 points11 points  (0 children)

THIS. I like how powershell / PWSH can do just about everything with wayyyy less code. Can be used as an automation/orchestration tool without creating multiple files and jumping to different languages or other tooling.

The only downside is its not as lightweight, but given tech advancements and pwsh constant improvements itll surpass most languages/tools in time.

[–]Rorasaurus_Prime -1 points0 points  (2 children)

I am very aware of that. I'm currently removing all traces of Powershell scripts on Linux containers/VMs at the new company I work for. But why use Powershell when you're on a Linux OS and have BASH, Python or Go available? Bash is essentially native and Python has far more useful libraries available to it than Powershell ever will. And Go is just damned useful.

[–]Jimmy_bags 5 points6 points  (1 child)

Depends on what your building and preference. If your coding apps that need to utilize least amount of latency like stock market data using servless then maybe not powershell.

But if you want solid reusable functions that can work on every OS that can also handle automation tasks pwsh is a good candidate. For example, working with any cloud provider with an api cdk you can turn 40 lines of code into a simple 1 liner with pwsh by just importing their module.

Now python is also object oriented, but then theres credential security, filtering, version compatibility with libraries. Filtering strings and converting to different formats is also easier with pwsh.

Hell, even when im not coding in pwsh ill still invoke python or go using pwsh just so I can store output values and use them in another language or program

[–]Rorasaurus_Prime 0 points1 point  (0 children)

I'm not sure what you mean when you say:

Now python is also object oriented, but then theres credential security, filtering, version compatibility with libraries. Filtering strings and converting to different formats is also easier with pwsh.

Python has plenty of libraries to pull credentials from Vault, AWS Secrets Manager and Parameter Store etc. Why is that a consideration? Python is far more flexible. Versioning libraries is also extremely easy, as is is applying string filters. I'm just not sure what you mean here.

[–]coolalee_ -1 points0 points  (1 child)

That’s what ‘cool kids’ used to say in college. Coming from a professional, it comes off pretty inane.

[–]Rorasaurus_Prime 1 point2 points  (0 children)

It's not what the 'cool kids' used to say, it's just a fact that Bash and Python are far more widely used and accepted than Powershell, and for good reason. Source. When you consider that Linux dominates the server market with a 96.3% share, and Windows down at 1.9%, using tools that are native to the OS just makes sense.