<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Advancing JavaScript with Libraries</title>
	<atom:link href="http://ajaxian.com/archives/advancing-javascript-with-libraries/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/advancing-javascript-with-libraries</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: foriniswrong</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249455</link>
		<dc:creator>foriniswrong</dc:creator>
		<pubDate>Mon, 16 Apr 2007 12:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249455</guid>
		<description>@cdr - Extending the &#039;Object object&#039;s prototype is bad news because loads of things use it. For-in loops  ARE supposed to be used with &#039;Object objects&#039;. That is not the case with Arrays. For example, Prototype Framework does NOT extend the &#039;object Object&#039; prototype but is cool extending the Array prototype. If you don&#039;t dig that don&#039;t use frameworks that support doing that. What is your hand up on wanting to use a for-in loop with an Array? That is mis-use! I think your consensus is wrong. Extending basic data types can be a great thing. myString.capitalize() or myString.toJSON(), myArray.toJSON(), myArray.each() and other really cool extensions are great and offer a quick and easy to read programming solution.</description>
		<content:encoded><![CDATA[<p>@cdr &#8211; Extending the &#8216;Object object&#8217;s prototype is bad news because loads of things use it. For-in loops  ARE supposed to be used with &#8216;Object objects&#8217;. That is not the case with Arrays. For example, Prototype Framework does NOT extend the &#8216;object Object&#8217; prototype but is cool extending the Array prototype. If you don&#8217;t dig that don&#8217;t use frameworks that support doing that. What is your hand up on wanting to use a for-in loop with an Array? That is mis-use! I think your consensus is wrong. Extending basic data types can be a great thing. myString.capitalize() or myString.toJSON(), myArray.toJSON(), myArray.each() and other really cool extensions are great and offer a quick and easy to read programming solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelly Storm</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249450</link>
		<dc:creator>Kelly Storm</dc:creator>
		<pubDate>Mon, 16 Apr 2007 02:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249450</guid>
		<description>It does not cease to amaze me that, while covering a variety of fresh web applications and frameworks, you can still write up a viciously thorough, yet strikingly simplistic, article like this one. 

Keep up the *great* work.</description>
		<content:encoded><![CDATA[<p>It does not cease to amaze me that, while covering a variety of fresh web applications and frameworks, you can still write up a viciously thorough, yet strikingly simplistic, article like this one. </p>
<p>Keep up the *great* work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giggle Platypus</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249449</link>
		<dc:creator>Giggle Platypus</dc:creator>
		<pubDate>Mon, 16 Apr 2007 02:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249449</guid>
		<description>Sho&#039; nuff, yo.</description>
		<content:encoded><![CDATA[<p>Sho&#8217; nuff, yo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cdr</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249448</link>
		<dc:creator>cdr</dc:creator>
		<pubDate>Mon, 16 Apr 2007 02:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249448</guid>
		<description>im pretty sure theres a concensus that its not kosher for libraries to modify basic object type prototypes, especially the ones with literal syntax help, for precisely that kind of issue. 

not being able to use for..in and extended Array/Object prototypes at the same time sounds like something that could be fixed. i&#039;m interested in your thoughts on how to do that (introducing the unwritten, hidden &#039;archetype&#039; vs &#039;prototype&#039; distinctino into the syntax would make the inheritance system even more crazy than it already is..)</description>
		<content:encoded><![CDATA[<p>im pretty sure theres a concensus that its not kosher for libraries to modify basic object type prototypes, especially the ones with literal syntax help, for precisely that kind of issue. </p>
<p>not being able to use for..in and extended Array/Object prototypes at the same time sounds like something that could be fixed. i&#8217;m interested in your thoughts on how to do that (introducing the unwritten, hidden &#8216;archetype&#8217; vs &#8216;prototype&#8217; distinctino into the syntax would make the inheritance system even more crazy than it already is..)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foriniswrong</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249446</link>
		<dc:creator>foriniswrong</dc:creator>
		<pubDate>Mon, 16 Apr 2007 01:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249446</guid>
		<description>@cdr - you should know good and well by now that using a for-in loop on an array is bad practice. A for-in loop iterates over all properties and methods in an object and the Array object is no different. Just because some people do it doesn&#039;t make it good practice or correct. For Arrays you should stick with regular for loops iterating over the indexes of the array.

Frameworks are meant to be used from the ground up in a project. The code you make shouldn&#039;t contain the for-in loop array pit-fall. If you are concerned with 3rd party JavaScript code using the for-in loop wrong, most text editors allow you to do a search through files for a &#039;for-in&#039; loop (At least I know Zend IDE allows it).

Some interesting information on array sandboxing can be found here:
http://dean.edwards.name/weblog/2006/11/hooray/</description>
		<content:encoded><![CDATA[<p>@cdr &#8211; you should know good and well by now that using a for-in loop on an array is bad practice. A for-in loop iterates over all properties and methods in an object and the Array object is no different. Just because some people do it doesn&#8217;t make it good practice or correct. For Arrays you should stick with regular for loops iterating over the indexes of the array.</p>
<p>Frameworks are meant to be used from the ground up in a project. The code you make shouldn&#8217;t contain the for-in loop array pit-fall. If you are concerned with 3rd party JavaScript code using the for-in loop wrong, most text editors allow you to do a search through files for a &#8216;for-in&#8217; loop (At least I know Zend IDE allows it).</p>
<p>Some interesting information on array sandboxing can be found here:<br />
<a href="http://dean.edwards.name/weblog/2006/11/hooray/" rel="nofollow">http://dean.edwards.name/weblog/2006/11/hooray/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cdr</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249445</link>
		<dc:creator>cdr</dc:creator>
		<pubDate>Mon, 16 Apr 2007 00:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249445</guid>
		<description>Rizqi: how do you extend Array literals globally without polluting the &#039;for..in&#039; and similar iteration? are they fixing that in JS2?</description>
		<content:encoded><![CDATA[<p>Rizqi: how do you extend Array literals globally without polluting the &#8216;for..in&#8217; and similar iteration? are they fixing that in JS2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cdr</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249444</link>
		<dc:creator>cdr</dc:creator>
		<pubDate>Mon, 16 Apr 2007 00:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249444</guid>
		<description>heres the link if you happen to have Flash: 

http://video.yahoo.com/video/play?ei=UTF-8&amp;b=0&amp;vid=410472&amp;gid=133414</description>
		<content:encoded><![CDATA[<p>heres the link if you happen to have Flash: </p>
<p><a href="http://video.yahoo.com/video/play?ei=UTF-8&#038;b=0&#038;vid=410472&#038;gid=133414" rel="nofollow">http://video.yahoo.com/video/play?ei=UTF-8&#038;b=0&#038;vid=410472&#038;gid=133414</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cdr</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249443</link>
		<dc:creator>cdr</dc:creator>
		<pubDate>Mon, 16 Apr 2007 00:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249443</guid>
		<description>if any of the folks from Yahoo! are reading this, any chance you are planning to put a mp4 version of this talk on the YUI Theatre website? flash-impaired on 64bit OSes out here in the dev jungle..</description>
		<content:encoded><![CDATA[<p>if any of the folks from Yahoo! are reading this, any chance you are planning to put a mp4 version of this talk on the YUI Theatre website? flash-impaired on 64bit OSes out here in the dev jungle..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carmen</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249442</link>
		<dc:creator>carmen</dc:creator>
		<pubDate>Mon, 16 Apr 2007 00:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249442</guid>
		<description>with apologizes for mispelling crockford,

as for the Ruby code. youd need a browser running on the JVM - afaik netscape was working on it at one point - it would be nice, for sure.</description>
		<content:encoded><![CDATA[<p>with apologizes for mispelling crockford,</p>
<p>as for the Ruby code. youd need a browser running on the JVM &#8211; afaik netscape was working on it at one point &#8211; it would be nice, for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carmen</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249441</link>
		<dc:creator>carmen</dc:creator>
		<pubDate>Mon, 16 Apr 2007 00:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249441</guid>
		<description>ok..the first half of the article is pretty straightforward &#039;abstraction away from buggy/broken implementations is good, presents common API&#039;, etc. 

then it jumps off the deep end (is this summarizing another article?)

ajaxian is JQuery2? the syntax is not JS-style, eh..

and whats this about LISP in firefox?? you mean crockfordgs scheme.js?</description>
		<content:encoded><![CDATA[<p>ok..the first half of the article is pretty straightforward &#8216;abstraction away from buggy/broken implementations is good, presents common API&#8217;, etc. </p>
<p>then it jumps off the deep end (is this summarizing another article?)</p>
<p>ajaxian is JQuery2? the syntax is not JS-style, eh..</p>
<p>and whats this about LISP in firefox?? you mean crockfordgs scheme.js?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevinin</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249430</link>
		<dc:creator>Kevinin</dc:creator>
		<pubDate>Sat, 14 Apr 2007 22:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249430</guid>
		<description>In &quot;Waiting for the document to load&quot;, I&#039;m sure that &quot;document.getElementById&quot;test&quot;.docus();&quot; should be &quot;document.getElementById(&quot;test&quot;).focus();&quot;</description>
		<content:encoded><![CDATA[<p>In &#8220;Waiting for the document to load&#8221;, I&#8217;m sure that &#8220;document.getElementById&#8221;test&#8221;.docus();&#8221; should be &#8220;document.getElementById(&#8220;test&#8221;).focus();&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249419</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 14 Apr 2007 10:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249419</guid>
		<description>@remiss, Actually both of you are wrong.
Technically, the syntax should be:
&quot;document.body.setAttribute(&quot;class&quot;,&quot;home&quot;);&quot;. HOWEVER, this doesn&#039;t work properly in IE. The content gets added to the body, however it doesn&#039;t render. Therefore you should use &quot;document.body.className = &#039;home&#039;;&quot;.</description>
		<content:encoded><![CDATA[<p>@remiss, Actually both of you are wrong.<br />
Technically, the syntax should be:<br />
&#8220;document.body.setAttribute(&#8220;class&#8221;,&#8221;home&#8221;);&#8221;. HOWEVER, this doesn&#8217;t work properly in IE. The content gets added to the body, however it doesn&#8217;t render. Therefore you should use &#8220;document.body.className = &#8216;home&#8217;;&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: remiss</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249418</link>
		<dc:creator>remiss</dc:creator>
		<pubDate>Sat, 14 Apr 2007 07:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249418</guid>
		<description>Hmm..
&quot;document.body.setAttribute(&quot;className&quot;, &quot;home&quot;);&quot;

Sure you don&#039;t mean document.body.class = &quot;home&quot;; ?
The last one would break, the first one just doesn&#039;t make sense..

 Another thing, what about browsers like konqueror that doesn&#039;t support xpath?</description>
		<content:encoded><![CDATA[<p>Hmm..<br />
&#8220;document.body.setAttribute(&#8220;className&#8221;, &#8220;home&#8221;);&#8221;</p>
<p>Sure you don&#8217;t mean document.body.class = &#8220;home&#8221;; ?<br />
The last one would break, the first one just doesn&#8217;t make sense..</p>
<p> Another thing, what about browsers like konqueror that doesn&#8217;t support xpath?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rizqi Ahmad</title>
		<link>http://ajaxian.com/archives/advancing-javascript-with-libraries/comment-page-1#comment-249412</link>
		<dc:creator>Rizqi Ahmad</dc:creator>
		<pubDate>Fri, 13 Apr 2007 23:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/archives/advancing-javascript-with-libraries#comment-249412</guid>
		<description>You&#039;re rock john! But I think jquery lacks of array extensions</description>
		<content:encoded><![CDATA[<p>You&#8217;re rock john! But I think jquery lacks of array extensions</p>
]]></content:encoded>
	</item>
</channel>
</rss>

