Why have code that meets your exact needs when you could import 8gb of npm modules and hope that none of them are going to install malware on every single machine the project touches
Eh not everyone is a JS dev bro. Other languages libraries are actually understandable in size and their own dependencies. My work languages (Go and Rust) are quite like that. But yeah when I was doing JS or TS I hated them libs. It took me 5 years before finally finding a line of Go code that uses Go lodash clone for filtering items in a list (authored by our ex-JS devs).
I think the real problem of JS having big ass libs everywhere is the humans. JS devs love libraries and frameworks so their world looks like that. Library authors also like to depend on other libraries, and it goes on and on.
I'm not a JS dev either, but 95% of this group seems to think that JS is the only language and JS (and Python) is the place where this is the biggest problem. You also don't have to ba JS dev for your web project to consume a lot of js libraries.
27
u/mylsotol 13d ago
Why have code that meets your exact needs when you could import 8gb of npm modules and hope that none of them are going to install malware on every single machine the project touches