3 ms·
Not sure why you are being downvoted, you aren't wrong. How does it compare to Python?
by FlyMoreRockets 6y ago
Not sure why you are being downvoted, you aren't wrong.
How does it compare to Python?
- 7thaccount 6y agoPowershell can be pretty expressive. It has a lot in common with Python, but the syntax is more C like when you're scripting, but can be used like a standard shell as well. The learning curve is partially steep as it takes time to learn the advantages and complexity of piping objects around instead of text streams (like Linux does). The major deal breaker for me is that file reads and writes which are glacially slow. Like waayyy slower than Python if you can believe it even if you basically call the .NET libraries directly instead of the cmdlets. So it makes the most sense for Windows IT admin tasks.
- Pet_Ant 6y agoThe syntax is uglier, and it doesn't have anything like PyCharm. However, as a shell it's syntax lends itself to typing out on the command line. It does have this weird thing where you use lots of aliases to make things ergonomic on the command line, but tend to use the full name in the script. Example "ls" is "Get-Child-Item" and is usable on more than just directories. What sets it apart IMHO is that it return records instead of just string so you can declare which fields you are interested in instead of trying to parse the string output with "cut"