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 replies on “What’s missing? CPAN for JavaScript”
YUI has already started a mini JS CPAN with a twist. Since this is the ‘net and this is JavaScript, instead of downloading a library for local installation, your application can connect to Yahoo’s copy of the library hosted on their own high-performance network.
* http://yuiblog.com/blog/2007/02/22/free-yui-hosting/
So, it’s even easier that CPAN, or Maven, or any of that 🙂
-Ted.
Thanks, Ted. I just read the blog that Ted posted, and can’t wait to try the JPAN. I’ll follow up with another blog post.
My mind flubbed earlier; I wasn’t thinking of JSON, I was thinking of JSAN, the Javascript Archive Network that is closely derived from CPAN: http://www.openjsan.org/
That’s exactly what I’m looking for, thanks!