Re:PowerShell is open sourced and is available on Linux
by ryanbrunner on Thursday August 18, 2016 @03:35PM
(#12315681)
How do you find dealing with async? Virtually everything I'd want to do with scripting would almost certainly be async in node libraries, and while I'm willing to pay the callback / promise tax in production code, for scripts it seems like the convenience of just dealing with everything synchronously would outweigh the advantage of keeping things in one language.
Re:PowerShell is open sourced and is available on Linux
by jaegerpicker on Thursday August 18, 2016 @04:19PM
(#12316036)
Personally for me I use es2015 and async/await in shell scripts since it's so close to writing sync code to me. I have an alias to my global babel so it's uber easy to transpile and run the code. I right a lot of node code for work so it's just native to me but I'd recommend others look into it. NPM is such an amazing ecosystem for it.
Re:PowerShell is open sourced and is available on Linux
by deegles on Thursday August 18, 2016 @03:54PM
(#12315827)
In scripts I'll keep things synchronous unless I have a specific need for async.
One of the big advantages IMO is that I only need to master one language for all of my needs, from browser to server to shell :)