4 ms·
> ... is not something that requires a massive engine like Node. It just isn't. How is asking for a Node install for a Javascript developer a problem? My non-
by nacs 6y ago
> ... is not something that requires a massive engine like Node. It just isn't.
How is asking for a Node install for a Javascript developer a problem?
My non-programmer wife recently started doing some Youtube tutorials to learn Javascript as her first coding experience and almost every single one has step 1 as "Install Node". Installing Nodejs is literally Javascript 101.
Also "Massive"? The Nodejs installer for Windows is 27MB (and requires like 4 clicks to install). On Linux, its available via the native installers and is a 1-click install.
- toyg 6y agoThe fact that people don't see this as troubling, is sad in itself. It's like asking people who want to learn Python: step 1, install Django. Or for Java: step 1, install Spring. A simple browser extension doesn't need Node. It just doesn't. The browser itself already packs everything the extension needs. And I could go on - why would a JS runtime/framework need Visual Studio, at all?
- maple3142 6y ago> It's like asking people who want to learn Python: step 1, install Django. Or for Java: step 1, install Spring. But Node is just a JavaScript runtime, like Python or Java. Of course, you don't need Node to run JavaScript in browser as it is built-in in the browser, but the built-in JavaScript engine doesn't allow you to easily use it externally. > A simple browser extension doesn't need Node. It just doesn't. The browser itself already packs everything the extension needs. You don't need to use it, as web-ext is just a extra tool to make it do some automation. You can just create some files and use Firefox to load it manually. > And I could go on - why would a JS runtime/framework need Visual Studio, at all? Because it uses native addon which is not written in JavaScript, so it need to be compiled when installing. Since Windows doesn't come with a compiler by default, you need to install it. It is more simpler to install it in Linux. BTW, if you don't want a full visual studio to use native addon in Node.js, you can use https://www.npmjs.com/package/windows-build-tools https://www.npmjs.com/package/windows-build-tools instead, which provides tools you needed to compile things on Windows.
- bamboleo 6y agoHow hard is it to understand that Node.js is a JavaScript runtime with access to the filesystem? I don’t understand most of your complaints. Web-ext does not need Visual Studio, it installs just fine on macOS. You should open an issue if you can’t install it on Windows. Also deprecations happen frequently on npm so, while they’re annoying during instal, they’re not really a big deal, modules still work.
- deleted 6y ago[deleted]
- diggan 6y agoI'm not sure where you're coming from, but it's evident you haven't done JS development with nodejs, so let me give you the full picture here. nodejs is not a framework like Django or Spring. nodejs is a runtime for JS, just like Firefox and Chrome could be considered a runtime for JS (kind of, simplifying for you here). In fact, Chrome runs JS via V8, which is what nodejs is using too! It's more correct to say "If you want to learn Python, you need to install a Python runtime", which for me makes a lot of sense. Of course I need somewhere to run Python if I want to learn Python. Same with JS, you need some sort of runtime, either the browser or something like nodejs. Many people go the nodejs route, as you'll end up probably needing or wanting tools from the nodejs ecosystem anyways, but some of us got started way before nodejs was even a thing, and some still do, nothing wrong with that. > A simple browser extension doesn't need Node. It just doesn't. The browser itself already packs everything the extension needs. Yeah, this is absolutely true today, for both Firefox and Chrome. In fact, the browser extensions we develop don't even have access to anything nodejs! This tool (web-ext) is simply a tool for making the developer experience better. You're in no way required to use it. You can simply create your files and manually zip things up, sign it and publish. Although it gets a bit easier with web-ext.