| Follow @yevthedev
Software Engineer, with an open source governance bend. Occasional developer outreacher. All opinions are my own.
Brain droppings here.
Software Engineer, with an open source governance bend. Occasional developer outreacher. All opinions are my own.
Brain droppings here.
Authored Comments
Alexander,
Here's a tutorial that describes all the exception handling features of PowerShell. https://www.vexasoft.com/blogs/powershell/7255220-powershell-tutorial-t…. The article was clearly written on Windows, as it uses the Windows paths, but all the error handling mechanisms work the same on every platform.
I am not suggesting that you use PowerShell as an alternative to Python in writing application code. I am suggesting that you use PowerShell where you might previously have opted to write a bash shell script. Even if you choose to write the implementation logic in an actual programming language, writing a wrapper script in PowerShell, instead of a Posix shell, can provide a smoother user experience via the features I described in the post.
Keep in mind too that PowerShell runs on top of the .Net Core platform and natively interacts with the .Net type system. So you can, if you so choose, implement the actual application logic in C#, F#, or any other language that builds .Net Standard-compliant libraries, and then invoke that logic through PowerShell and receive structured objects as output, for easy subsequent manipulation.
Edward,
PowerShell 6 is built on top of .Net Core, a new .Net moduler runtime that's built natively for each of its target platforms. There are no exes. No emulators. No Windows.