3 ms·
But people don't use javascript to write scripts. Javascript is mostly used in writing web services.
by sampo 7y ago
But people don't use javascript to write scripts. Javascript is mostly used in writing web services.
- wilsonrocks 7y agoI mostly write javascript now for my day job... But python is nicer for scripts... The asynchronous nature of node makes it a pain for me
- josteink 7y agoAsync/await largely solves that though.
- wilsonrocks 7y agoTo an extent... If you're using something that supports promises and not callbacks, which not all of the things you want to use to write an actual script do.
- josteink 7y agoYou can easily transform a callback into a promise via simple glue-functions: let result = await CallbackPromise.from(some.callbackConventionFunction, param); Then you get a unified form for the code-base.