5 ms·
> npm install -g gitid Please don’t write command line tools in javascript. I’d never install npm, yarn… on my system just to try a tool out. CLI tools are per
by cornercasechase 3y ago
> npm install -g gitid
Please don’t write command line tools in javascript. I’d never install npm, yarn… on my system just to try a tool out. CLI tools are perfect for compiled languages so you can distribute a binary.
- dncornholio 3y agoNot disagreeing, but isn't npm / yarn being installed basically the same as having make / cmake installed? This package in question has no dependencies and I can read the source code, can't do that with a binary. Though I agree, but for other reasons, this tool is a bit silly in JS because you also need node, and it's basically just moving files around.
- Zandikar 3y agoNo. Not everyone lives in Javascript world.
- westernpopular 3y agoNot everyone lives in C world either
- sitzkrieg 3y agobut some OS do by default-ish :D
- deleted 3y ago[deleted]
- Zandikar 3y agoCorrect. These are not mutually exclusive positions, and furthermore, this isn't so much to do with languages necessarily, it can be written in brainfuck or use some obscure compiler for all I care. The issue is fragmenting tools between multiple package managers. That's a pain, and the source of my opposition to this concept here. Doubly so if they're language specific package managers (fine for development/in isolation, not for system wide user facing tools though).
- seszett 3y ago> isn't npm / yarn being installed basically the same as having make / cmake installed? Not really as npm and yarn are whole package managers that work in parallel to your distro's standard package manager. They pull various sources (that haven't been vetted by anyone except hopefully by the end programmer who told you to use npm install) from who knows where and install them either in your own home, or system-wide with -g like suggested here. I would never use npm to install a system tool.
- tracker1 3y agoSo like anything else that isn't in your package manager... including the latest version.
- tcfhgj 3y agoI dont have (c)make installed
- Nzen 3y agoLuckily, we are talking about an MIT licensed repository of source code that many of us could rewrite as a bash script, and open ourselves to complaints that it doesn't run on windows. It looks like InderdeepBajwa, specifically, has tried to make a couple of projects in various languages: php, c++, go, python, javascript. So, the refrain 'write what you know' does not quite apply.
- rcme 3y ago> Please don’t write command line tools in javascript. This is such a rude thing to say to someone providing free software. If you want to write tools in the language of your choice, then you're free to do so.
- funcDropShadow 3y agoHow is this rude? Is disagreeing already rude? GP started that sentence with "Please" not with "YOU MUST NOT".
- rcme 3y agoYou realize saying "please" doesn't magically make it polite, right?
- joshmanders 3y agoPlease do not sell your products in your own store. I will never shop outside of Walmart just to get your product. Walmart is the perfect distributor of goods so you can get everything you need in one stop. See how ridiculous it sounds now?
- funcDropShadow 3y agoThat would mean the original request was unreasonable and not rude.
- bin_bash 3y agolol I see a lot of tools using npm to distribute binary CLIs written in compiled languages: https://blog.orhun.dev/packaging-rust-for-npm/ https://blog.orhun.dev/packaging-rust-for-npm/ people are way more likely to be setup with npm than they are with cargo
- nemetroid 3y agoI’d never download some random person’s binary.
- GoblinSlayer 3y agohttps://www.gnu.org/software/automake/ https://www.gnu.org/software/automake/ I will just leave it here.