Hacker News new | ask | show | jobs
by bayindirh 9 days ago
This is because of a couple of cultural and environmental factors.

First, CPAN is old and is labor of an older generation of programmers who were attentive to that sort of problem. Language being Perl and having the same culture in it helped a lot as well.

Moreover, CPAN is available in distributions, as you say, and no distribution maintainer wants to package and ship a dependency hell, so this is a gentle but firm deterrent as well. Lastly, Perl's standard library is comprehensive for what it does, so it doesn't need leftpad style utilities as external libraries.

2 comments

On the last point: JS/TS rightly gets a lot of flak for excessive third party dependency trees, but the JS stdlib is tiny.

For a lot of stuff that could be done with the stdlib in a lot of languages you really do either need a 3rd party package in JS or write a lot of code (and tests) yourself

> [...] but the JS stdlib is tiny.

As a complete outsider to that environment: is there no way to grow the official stdlib and therefore reduce the need for external dependencies?

Stuff does get added - for example the new temporal module that reduces the need for 3rd party dependencies for time related code.

Node also has a more comprehensive stdlib than what’s available in the browser.

It’s just still very limited compared to other languages and always has been, I’m not sure why

So languages that have their own package manager do not always fall prey to the leftpad "problem"?
Exceptions don't invalidate the rule.
of course they do