News for hackers. Stuff that matters.
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.
Re:PowerShell is open sourced and is available on Linux by tracker1 on Friday August 19, 2016 @05:39AM (#12318891)
I tend to favor es2015 + async/await (via babel-node). Combined with bits from shelljs and mz packages, it all comes together pretty well.