6 ms·
Loved? Well, it's a point of view. I personally hate it, due to the tooling and the dependency management (npm and yarn are catastrophic, an "hello world" examp
by IloveHN84 8y ago
Loved? Well, it's a point of view. I personally hate it, due to the tooling and the dependency management (npm and yarn are catastrophic, an "hello world" example with React downloads on average more than 100 packages).
- paraditedc 8y agoOn the plus side, once you built it, the only dependency you have is the browser, and you can distribute it however you want since it's cross-platform compatible.
- ticmasta 8y ago>> the only dependency you have is the browse HA! maybe this is technically true, because in the end that's where it runs, but have you looked in your modules folder at any substantial project lately? The dependencies run deep and they run wide...
- paraditedc 8y agoTell me about it. https://news.ycombinator.com/item?id=12209300 https://news.ycombinator.com/item?id=12209300
- kabacha 8y agoAs much as I dislike Javascript OP is right. The latest stack overflow survey[1] puts #7 on most loved languages and it's not even in top 25 most dreaded ones. [1] - https://insights.stackoverflow.com/survey/2018#most-loved-dreaded-and-wanted https://insights.stackoverflow.com/survey/2018#most-loved-dr...
- andai 8y agoAnd #2 in most wanted, right after Python.
- tincholio 8y agoI do wonder how much of that love is from devs who basically only know JS, and have done nothing by web stuff.
- deleted 8y ago[deleted]
- tracker1 8y agoCan't speak for anyone else... but will say I'm far more productive with full-stack JS. My second most familiar language is C#, followed by Ruby, VB, Java and several other languages. Most of the productivity outside the browser is because of Node + NPM though. Also the browser gives you a much more rich rendering target than pretty much any common UI platform out there. Including some very nice abstractions. In the end, it isn't the best choice for many things, but it's good enough for most things. As such, it's what I tend to reach for first, since getting something working takes less time, and gets in my way so much less. Windows, Mac, Linux via Node, Electron, Carlo (node + installed chrome), not to mention Cordova (iOS/Android) and React Native. Best of all, I don't have to deal with a lot of issues seen in other platform specific tools. It's so much closer to write once, run everywhere with less friction than anything else that has been done in computing. Aside from trivial projects.
- nobleach 8y agoI hear a lot of complaining like this from Java devs. Oddly, they are often okay only knowing one language (Java). The exact words from a Java dev were, "well, when all you have is a hammer, everything looks like a nail".
- devxpy 8y agoTypescript and other transpilers especially, seem to be quite resouce hungry, slow and a pain to configure — always getting in my way :(
- kowdermeister 8y agoMy "secret" weapon against tooling creep is https://parceljs.org https://parceljs.org it really lives up it its tagline.
- growtofill 8y agoWhat's 'catastrophic' about Yarn?
- rafaelvasco 8y agoNot exactly Yarn or NPM. The problem is that JS is suffering from extreme dependency hell, due to overly fragmentation of modules. It's appalling. It is not a good thing starting a project, doing a install and having hundreds and hundreds of modules on node_modules, some with less then 50 lines of code. Of course things must be modular, but unwraping everything in a folder like this is far from good.
- addicted 8y agoIsn't the issue here basically that JS doesn't have a "standard" authorized library, like Java or C# and NPM has basically become the standard library? Having someone like Google steward a "standard" library (and it could even be distributed using NPM), would pretty much bring JS dependency management at par and beyond Java or C#.
- modzu 8y agohmm maybe you're onto something here..
- deleted 8y ago[deleted]
- untog 8y agoI'm curious: why is it bad? I very, very rarely have to delve into my node_modules folder to take a look at something.
- addicted 8y agoThe leftpad fiasco (which I believe NPM has now mitigated), and the recent security issue where a certain popular package was uploading any passwords it found showed the current dangers with NPM.
- doomslice 8y agoHaving just inherited a legacy python project where I couldn't use a library due to conflicting dependencies on ancient, incompatible versions of a dependency's dependencies... I'd kill for the npm way of dealing with it. To each his own I guess.
- paulie_a 8y agoThat's interesting, what happened? I've always loved the simplicity of a couple of inhereted requirements files in Python depending on the environment. Pin the version as necessary and call it a day. usually my requirements files for local, dev, QA and production are 30 lines total. Js land is a complete shit show of ever changing dependencies with an ungodly amount of sub dependcies that will break every thing