r/sysadmin • Systems Engineer • Aug 18 '16

PowerShell is open source, available for Linux and OS X

https://github.com/PowerShell/PowerShell
1.3k Upvotes

369 comments sorted by

View all comments

Show parent comments

13

u/ramblingcookiemonste Systems Engineer Aug 18 '16

there's about a half dozen ways to do each and every damn thing

Hi!

That's odd. Is there one true way to do things in Python? I'm not an expert, but AFAIK any programming language worth using is going to offer more than one way to skin a cat. Sort of a common trait across languages, including spoken ones...

Cheers!

6

u/Findal Aug 18 '16

There is but Python makes a big song and dance about the most pythonic way so at least theoretically there is only one right way. I get where he is coming from but I also think people get too attached to their way or their language.

Personally can't see huge uses for PS in Linux but it might fit someones bill nicely.

4

u/pooogles Aug 18 '16

Python mostly has one clear obvious way to do something. If you look at any well written Python it'll be very similar to someone else's well written Python. It will adhere to Pep 8, and will be clear in its intension. Compare that to C, where styles can vary hugely from company to company.

Unless you're looking at string formatting. Or for loops/list comprehensions/map. Or the nameless other things that can be used but are discouraged.