by swombat · 15y ago · 0 comments
Sounds like Ruby's Gems: http://rubygems.org/ or even python's PyPi: http://pypi.python.org/pypi ...
And most importantly: It provides you globalized automated testing on a variety of systems of anything you upload, through CPANTesters.
Just as an example: I uploaded a module yesterday and now it has 38 tests on as many different configurations already: http://matrix.cpantesters.org/?dist=CGI-Application-Plugin-T...
So not only gives it a very useful and otherwise extremely expensive tool to you, the developer, it also shows you this information about other modules, so it lets you gauge the quality of the modules you are considering to use.
Edit: Also, as an additional goody: The testing culture of CPAN allows development of ancillary tools that analyze the current state of CPAN and highlight modules that are having issues with their tests: http://analysis.cpantesters.org/ This can help generate bug reports for developers who don't have time to figure out exactly why a test failed on an obscure combo and they provide an in for CPAN-Newbies by pointing out to them which distributions could use patches.
Haskell's system is called "hackage" for example and "R" has its "CRAN" and so on.
Though it's really no fair comparison as CPAN contains what.. 89033 modules? http://search.cpan.org/
I'm not very familiar with PyPi since I'm not a Python programmer, but Gems pretty much work exactly like they should. Especially when you throw RVM into the mix.
89033 modules
Only 21694 distributions, though. The analogue in Ruby is a gem and RubyGems already has 19502.Note I didn't say there is not such product/framework, just, as the articles says, they are not promoted/known.
There's a whole bunch of them, with different design goals or philosophies.
Why do people keep trotting out this stupid pointless number. How much of that is duplication? How much of it is crap? How much of it is literally toys (e.g. ACME stuff)? In any case, Java has vastly, vastly more so any language that runs on the JVM automatically beats perl here.
99% of programmers will never notice any functionality missing in Ruby or Python that CPAN has.
Metcalfe's Law. The value of the CPAN increases dramatically with every addition, especially because of the maturity of the entire CPAN infrastructure: CPAN testers, CPANTS, annotations, reviews, dependency tracking, BackPAN tracking, gitpan, linked documentation, et cetera.
Demonstrably nonsense. Let me add a new module called ACME::DoNothing. What have I increased besides disk space and a meaningless module count?
CPAN is the only reason that I've kept my Camel book around since 2000, hoping that "someday" I'll learn Perl.
Oh, and "It has MOAR!" isn't really a good argument. I've authored two gems, I think. Those are the only two times in two years of using Ruby that I haven't had the ability to just install the library that I needed.
(I loved Perl for years until I found Ruby, then never turned back...)