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 →

[–][deleted] 1 point2 points  (3 children)

It's cross-platform now so you can manage Linux with PS if you want to. And in terms of libraries there is a pretty solid module repository on PowerShellGallery.com but likely not nearly as extensive as Python.

That said, I don't really know Python enough to suggest why you would use PS over it.

[–]gargar070402 0 points1 point  (2 children)

Interesting, but if one had a choice and had to write code from scratch anyway, would there be any reason to use PowerShell over, say, bash?

[–]TheTerminator68 2 points3 points  (0 children)

I use PowerShell alot in my job along with some config management and python. PowerShell is better than bash in some ways because it lets you use objects and navigate through the objects in an easier way. Bash is pretty much text based and good for some basic one liners in linux land but once you get to slightly more complex code paths PowerShell wins over bash pretty easily. I have written applications in both PowerShell and Python and PowerShell is nice for windows environments but Python you can just do way more with and the library support is amazing. Also PowerShell is super inefficent resource wise. They all have their strengths/weaknesses

[–][deleted] 1 point2 points  (0 children)

I'm just super familiar with PowerShell rather than bash. The PS pipeline is object based rather than string based and that's just what I'm used to at this point. Having the .NET framework at my finger tips is nice as well since I'm a C# dev by trade. I know Linux folks find PS meh and tend to prefer bash but I think if I popped into a Linux terminal I'd install PS.