logoalt Hacker News

bayindirh • today at 8:52 AM • 2 replies • view on HN

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.


Replies

ifwinterco • today at 10:37 AM

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

ioasuncvinvaer • today at 10:14 AM

So languages that have their own package manager do not always fall prey to the leftpad "problem"?

➕ show 1 reply