What’s missing? CPAN for JavaScript

by barce on March 13, 2007

I’ve been messing around with Perl in-between conferences at SxSW. What’s delighted me is how little I have to code because of CPAN, an archive of Perl Modules.

In order to write a simple RSS aggregator all I had to do was:
1) Create a class for fetching and saving the RSS.
2) Use a Perl module with web client functionality. (LWP::Simple)
3) Use a Perl module that can parse RSS. (XML::RSS::Parser)

my $lostdogs = Fetcher->new();
$lostdogs->feed("http://sfbay.craigslist.org/search/ccc/nby?query=lost%20dog&fo
rmat=rss");
$lostdogs->getfeed();
$lostdogs->savefeed('lostdogs.rss');

Now what if there was something like CPAN for JavaScript? Wouldn’t it make building all those AJAX apps easier? You wouldn’t have to be committed to either Dojo or YUI or Prototype.

{ 4 comments… read them below or add one }

Leave a Comment

Previous post:

Next post: