2 ms·
Well, compared to a shell script or a static binary...the Node example requires you to have Node (+ NPM) on your machine and, unless you wrap it all up for home
by ljm 7y ago
Well, compared to a shell script or a static binary...the Node example requires you to have Node (+ NPM) on your machine and, unless you wrap it all up for homebrew/apt/some other package repo. you're going to be using `npm install -g` to use it as opposed to shoving an executable into your PATH.
All of your stated benefits are nice for the maintainer but mean little to the end user. This gushing praise for Node reads like nobody has ever built elegant CLI apps until Ryan Dahl turned of age and put JS on a server.
- w56rjrtyu6ru 7y agoThe Node example has zero external dependencies other than its the interpreter. `chmod +x`, put it in /usr/local/bin if you're feeling especially sacrilegious today, and that's it. > All of your stated benefits are nice for the maintainer but mean little to the end user. I fail to see how better tools for authors and maintainers don't result in better software for end users. > This gushing praise for Node reads like nobody has ever built elegant CLI apps until Ryan Dahl turned of age and put JS on a server. And what of it? Node makes building CLI apps accessible to an ever wider audience. I'm just putting my "glowing review" out there to counteract all the naysayers who like to piss on Node because it's JavaScript, usually without even _attempting_ to make an argumented case against it.