{"id":13,"date":"2007-03-13T07:43:41","date_gmt":"2007-03-13T15:43:41","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=13"},"modified":"2007-03-13T07:43:41","modified_gmt":"2007-03-13T15:43:41","slug":"whats-missing-cpan-for-javascript","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2007\/03\/13\/whats-missing-cpan-for-javascript\/","title":{"rendered":"What&#8217;s missing? CPAN for JavaScript"},"content":{"rendered":"<p>I&#8217;ve been messing around with Perl in-between conferences at <a href=\"http:\/\/2007.sxsw.com\/\">SxSW<\/a>. What&#8217;s delighted me is how little I have to code because of <a href=\"http:\/\/www.cpan.org\">CPAN<\/a>, an archive of Perl Modules.<\/p>\n<p>In order to write a simple RSS aggregator all I had to do was:<br \/>\n1) Create a class for fetching and saving the RSS.<br \/>\n2) Use a Perl module with web client functionality. (LWP::Simple)<br \/>\n3) Use a Perl module that can parse RSS. (XML::RSS::Parser)<\/p>\n<pre>\r\nmy $lostdogs = Fetcher->new();\r\n$lostdogs->feed(\"http:\/\/sfbay.craigslist.org\/search\/ccc\/nby?query=lost%20dog&fo\r\nrmat=rss\");\r\n$lostdogs->getfeed();\r\n$lostdogs->savefeed('lostdogs.rss');\r\n<\/pre>\n<p>Now what if there was something like CPAN for JavaScript? Wouldn&#8217;t it make building all those AJAX apps easier? You wouldn&#8217;t have to be committed to either <a href=\"http:\/\/dojotoolkit.org\/\">Dojo<\/a> or <a href=\"http:\/\/developer.yahoo.com\/yui\/\">YUI<\/a> or <a href=\"http:\/\/www.prototypejs.org\/\">Prototype<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been messing around with Perl in-between conferences at SxSW. What&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-techbiz"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}