←back to thread

1369 points universesquid | 7 comments | | HN request time: 1.076s | source | bottom
Show context
stathibus ◴[] No.45169926[source]
As an outsider to the npm ecosystem, reading this list of packages is astonishing. Why do js people import someone else's npm module for every little trivial thing?
replies(11): >>45169990 #>>45169999 #>>45170008 #>>45170014 #>>45170015 #>>45170016 #>>45170038 #>>45170063 #>>45170879 #>>45170926 #>>45170953 #
dist-epoch ◴[] No.45170015[source]
This is spreading everywhere, Rust, Python, ...
replies(3): >>45170086 #>>45170495 #>>45171565 #
grishka ◴[] No.45170086[source]
Not Java, thankfully! Libraries containing 1-2 trivial classes do exist, but they're an exception rather than a rule. Might be that the process of publishing to Maven Central is just convoluted enough to deter the kinds of people who would publish such libraries.
replies(1): >>45170299 #
1. Deukhoofd ◴[] No.45170299[source]
Also because Java, .NET, etc. all have very expansive standard libraries. You don't need to import most stuff, as it's already built-in.
replies(3): >>45170367 #>>45170379 #>>45171180 #
2. tracker1 ◴[] No.45170367[source]
Very true... I'm more experienced with .Net, but usually when you bring in something, it's much more of a compositional library or framework for doing something... like a testing harness (XUnit), web framework (FastEndpoints), etc. No so much in terms of basic utilities, where the std library and extensions for LINQ cover a lot of ground, even if you aren't using LINQ expressions themselves.
3. szatkus ◴[] No.45170379[source]
I mean, Apache Commons are still widely used. But it's just a handful of libraries maintaned by one organisation.
4. kelvinjps10 ◴[] No.45171180[source]
But then you depend on Microsoft for everything. I prefer python where it's battery Included but you depend on a foundation
replies(1): >>45171535 #
5. grishka ◴[] No.45171535[source]
Hasn't .net been open-source for like 10 years?
replies(2): >>45172554 #>>45178261 #
6. int_19h ◴[] No.45172554{3}[source]
It is, but it's still firmly controlled by Microsoft, particularly when it comes to ecosystem evolution. Some people find that uncomfortable even if the source is open - legal right to fork is one thing, technical ability to do so and maintain said fork is another.
7. kelvinjps10 ◴[] No.45178261{3}[source]
But most of the documentation and tooling is around visual studio and azure