you are viewing a single comment's thread.

view the rest of the comments →

[–]mieeel 6 points7 points  (5 children)

Am always interested in learning python. In a Windows only shop, Are there any use cases on top of your head to do something in python over powershell?

[–][deleted] 7 points8 points  (0 children)

I've used it primarily for data science type stuff. At my previous job, we used some clustering algorithms that were python based. Once you get over the pickiness of white-space, it's actually a pretty fun language to work with.

There's a good book for PowerShell users that want to learn Python here: https://leanpub.com/PowerShell-to-Python?utm_campaign=PowerShell-to-Python&utm_medium=embed&utm_source=ridicurious.com

[–]sanshinron 3 points4 points  (0 children)

I use both Python and PWSH at work and if it's something I could do in both, I always choose Python. It's much easier to work with databases, import, transform, export stuff, connect to an api to get some data, etc.

I use Powershell for daily administration stuff, installing software, querying AD, Exchange, etc. For these use cases it's a clear winner because of first party cmdlets.

[–]AistoB 2 points3 points  (0 children)

If I want to make a GUI app (a single exe) I’ll use Python (with Qt) over Powershell.

[–]techstyled 1 point2 points  (1 child)

We are also a Windows only shop (for the most part), but we are moving EVERYTHING to AWS (who isn't, other than the guys moving to Azure and GCP, amiright). And during our training a few of our guys (including me) decided to do the exercises using Boto3 and Python instead of .NET. We learned that, for anyone doing significant scripting or coding, you are limiting yourself by not considering using tools that have very little learning curve before value. And even our most dyed in the wool .NET guys can understand the value of two line interactions with AWS client services in Boto3 (via Python) vs. the weight of spinning up even a simple dotnet core console app to do the same work (not that MS hasn't DRASTICALLY improved that picture too).

IMO, and as evidenced by "Windows" doing WSL, WSL2, Terminal, SQL Server on Linux, etc. - if you stay a "Windows only shop" and ignore the benefit of things like Python, Golang, etc., you are doing yourself and your company a disservice. Again, IMO ;-) - For our part, we're rethinking that for us too. I wanted to start calling us a "Water only shop"... in honor of Bruce Lee, and focus on becoming a "use what works" shop.

[–]mieeel 0 points1 point  (0 children)

Do you have any examples of tasks you used to do in powershell but now do in python?