3 ms·
> library use is orthogonal to language. > assume that there are only C and JS Not so much ignoring other languages, as just talking about the one which coinc
by j1elo 3y ago
> library use is orthogonal to language.
> assume that there are only C and JS
Not so much ignoring other languages, as just talking about the one which coincidentally (or maybe not) is the one that usually attracts most conversations about dependency ballooning, at least around here on HN.
> if those exact same devs would write C, they would somehow magically stop seeking out libraries to solve the problem for them?
I'd posit that an ecosystem which doesn't encourage to add a third party library for the tiniest of needs, yes, does indeed discourage from using libraries except for the most egregious needs.
E.g. you wouldn't implement a whole object-based oo-style programming paradigm in C, it would be wiser to just use GLib with its GObject implementation.
But it would be uncommon to use a stupid library like is-even. Something that is very common to do in JS.
And actually this leaves the space of being opinion based and is more supported by evidence. You'd hard pressed to find this kind of mindless lazy usage of libraries in well consolidated and popular C-based software. But I bet you wouldn't need even 30 seconds to find some popular JS package that in its transitive dependency tree ends up using a left-pad [1] level of library.
[1]: https://www.theregister.com/2016/03/23/npm_left_pad_chaos/ https://www.theregister.com/2016/03/23/npm_left_pad_chaos/