<?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: How well do you know Prototype?</title>
	<atom:link href="http://ajaxian.com/archives/how-well-do-you-know-prototype/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/how-well-do-you-know-prototype</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: Web Design NY</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258978</link>
		<dc:creator>Web Design NY</dc:creator>
		<pubDate>Sun, 18 Nov 2007 03:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258978</guid>
		<description>People should really read the docs!

Those things are there!</description>
		<content:encoded><![CDATA[<p>People should really read the docs!</p>
<p>Those things are there!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258729</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 15 Nov 2007 00:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258729</guid>
		<description>I couldn&#039;t post a comment on Part I. But the author might want to note that $F doesn&#039;t work for radio buttons. As a newbie, that tripped me up.

It would be nice if that gets fixed.</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t post a comment on Part I. But the author might want to note that $F doesn&#8217;t work for radio buttons. As a newbie, that tripped me up.</p>
<p>It would be nice if that gets fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor Kojouharov</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258592</link>
		<dc:creator>Viktor Kojouharov</dc:creator>
		<pubDate>Mon, 12 Nov 2007 10:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258592</guid>
		<description>@Marlon: there was a bug somewhere between versions of prototype that made various selectors (like getElementsByClassName, which is now deprecated) to be very slow in IE. However, this was fixed a long time ago. Though it might not be as fast as firefox (IE doesn&#039;t support xforms), it&#039;s not &#039;6 seconds&#039; slow either.</description>
		<content:encoded><![CDATA[<p>@Marlon: there was a bug somewhere between versions of prototype that made various selectors (like getElementsByClassName, which is now deprecated) to be very slow in IE. However, this was fixed a long time ago. Though it might not be as fast as firefox (IE doesn&#8217;t support xforms), it&#8217;s not &#8217;6 seconds&#8217; slow either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jsJihad</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258587</link>
		<dc:creator>jsJihad</dc:creator>
		<pubDate>Sun, 11 Nov 2007 20:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258587</guid>
		<description>prototype is tha shit. there is a better lib</description>
		<content:encoded><![CDATA[<p>prototype is tha shit. there is a better lib</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlon</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258564</link>
		<dc:creator>Marlon</dc:creator>
		<pubDate>Sat, 10 Nov 2007 14:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258564</guid>
		<description>How well you know prototype also has to be tempered with how well you now your browser.  Case in point, I had a long list of checkboxes in a tree that had to be set and cleared depending on what the user selected.  I had used the &quot;prototype way&quot; of doing things which worked fine in Firefox (it finished in just under 1 second), but when tested in IE, the function ran over 6 seconds long.  Only by taking out some of the prototype syntax sugar, was I able to get the times below 1 second on IE.</description>
		<content:encoded><![CDATA[<p>How well you know prototype also has to be tempered with how well you now your browser.  Case in point, I had a long list of checkboxes in a tree that had to be set and cleared depending on what the user selected.  I had used the &#8220;prototype way&#8221; of doing things which worked fine in Firefox (it finished in just under 1 second), but when tested in IE, the function ran over 6 seconds long.  Only by taking out some of the prototype syntax sugar, was I able to get the times below 1 second on IE.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258560</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Sat, 10 Nov 2007 06:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258560</guid>
		<description>&lt;blockquote&gt;extending base objects bad, because we used prototype some time ago, and now itâ€™s really hard to get rid of it because those .bind() and few array and string extensions are used sometimes across the code.&lt;/blockquote&gt; I can understand (in some cases) wanting your code to be portable, but given the different philosophies of the various popular JS libraries, you&#039;d have the same problem with any one of them. I fail to see how this is prototype&#039;s fault any more than any other library. I mean, if you&#039;re advocating against using a library at all, that&#039;s fine too, but I can&#039;t really imagine a good argument for that.

Come on. Until you&#039;re ready to rewrite an application, it&#039;s okay to use a single library&#039;s API as part of your application. And you can always use a different library on a different application. You wouldn&#039;t expect changing your house&#039;s foundation to be a quick and easy task, not especially if you&#039;re moving your house to a different locale with different geological demands. Why would you expect that of the foundation of your UI logic?</description>
		<content:encoded><![CDATA[<blockquote><p>extending base objects bad, because we used prototype some time ago, and now itâ€™s really hard to get rid of it because those .bind() and few array and string extensions are used sometimes across the code.</p></blockquote>
<p> I can understand (in some cases) wanting your code to be portable, but given the different philosophies of the various popular JS libraries, you&#8217;d have the same problem with any one of them. I fail to see how this is prototype&#8217;s fault any more than any other library. I mean, if you&#8217;re advocating against using a library at all, that&#8217;s fine too, but I can&#8217;t really imagine a good argument for that.</p>
<p>Come on. Until you&#8217;re ready to rewrite an application, it&#8217;s okay to use a single library&#8217;s API as part of your application. And you can always use a different library on a different application. You wouldn&#8217;t expect changing your house&#8217;s foundation to be a quick and easy task, not especially if you&#8217;re moving your house to a different locale with different geological demands. Why would you expect that of the foundation of your UI logic?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trulli</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258557</link>
		<dc:creator>Trulli</dc:creator>
		<pubDate>Sat, 10 Nov 2007 02:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258557</guid>
		<description>Nice checklist and some interesting stuff on the blog as well.

@Simon: Why are you posting that jQuery code here? Want some Mootools and YUI code too? Maybe it&#039;s a good idea if you made your own checklist?</description>
		<content:encoded><![CDATA[<p>Nice checklist and some interesting stuff on the blog as well.</p>
<p>@Simon: Why are you posting that jQuery code here? Want some Mootools and YUI code too? Maybe it&#8217;s a good idea if you made your own checklist?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Jia</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258544</link>
		<dc:creator>Simon Jia</dc:creator>
		<pubDate>Fri, 09 Nov 2007 19:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258544</guid>
		<description>Oh, and one more thing to mention, if you need to set &quot;background-color&quot;, the syntax should be &quot;backgroundColor&quot;.
Pretty sure most of u guys know this already.</description>
		<content:encoded><![CDATA[<p>Oh, and one more thing to mention, if you need to set &#8220;background-color&#8221;, the syntax should be &#8220;backgroundColor&#8221;.<br />
Pretty sure most of u guys know this already.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Jia</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258543</link>
		<dc:creator>Simon Jia</dc:creator>
		<pubDate>Fri, 09 Nov 2007 19:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258543</guid>
		<description>This actually goes the same as jQuery except jQuery&#039;s selector doesn&#039;t really return a raw DOM object.

I&#039;ve seen ppl doing this
&lt;code&gt;
$(&quot;#some_node&quot;).css(&quot;background&quot;, &quot;red&quot;);
$(&quot;#some_node&quot;).css(&quot;color&quot;, &quot;#FFFFFF&quot;);
&lt;/code&gt;
Which the actual better and more efficient way is
&lt;code&gt;
$(&quot;#some_node&quot;).css({background: &quot;red&quot;, color, &quot;#FFFFFF&quot;});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This actually goes the same as jQuery except jQuery&#8217;s selector doesn&#8217;t really return a raw DOM object.</p>
<p>I&#8217;ve seen ppl doing this<br />
<code><br />
$("#some_node").css("background", "red");<br />
$("#some_node").css("color", "#FFFFFF");<br />
</code><br />
Which the actual better and more efficient way is<br />
<code><br />
$("#some_node").css({background: "red", color, "#FFFFFF"});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Holton</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258540</link>
		<dc:creator>Mark Holton</dc:creator>
		<pubDate>Fri, 09 Nov 2007 18:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258540</guid>
		<description>Nice post, I found a couple idioms I need to start using.  ...(@Mark ..Prototype (the JS library) hasn&#039;t extended the Object.prototype since version 1.4, many moons ago. )</description>
		<content:encoded><![CDATA[<p>Nice post, I found a couple idioms I need to start using.  &#8230;(@Mark ..Prototype (the JS library) hasn&#8217;t extended the Object.prototype since version 1.4, many moons ago. )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobie Langel</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258536</link>
		<dc:creator>Tobie Langel</dc:creator>
		<pubDate>Fri, 09 Nov 2007 17:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258536</guid>
		<description>@Mark, Tim: Just to clarify, Prototype doesn&#039;t override native properties, it extends them. There&#039;s nothing wrong with using &lt;code&gt;document.getElementById&lt;/code&gt;, for example, it&#039;s just not using the full power of Prototype, that&#039;s all.</description>
		<content:encoded><![CDATA[<p>@Mark, Tim: Just to clarify, Prototype doesn&#8217;t override native properties, it extends them. There&#8217;s nothing wrong with using <code>document.getElementById</code>, for example, it&#8217;s just not using the full power of Prototype, that&#8217;s all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mhusson</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258534</link>
		<dc:creator>mhusson</dc:creator>
		<pubDate>Fri, 09 Nov 2007 16:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258534</guid>
		<description>I would love to see a similar wrong way/right way list for dojo (0.9/1.0). If anyone knows of something like that be sure to share, but I&#039;m sure chances are slim.</description>
		<content:encoded><![CDATA[<p>I would love to see a similar wrong way/right way list for dojo (0.9/1.0). If anyone knows of something like that be sure to share, but I&#8217;m sure chances are slim.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258531</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 09 Nov 2007 16:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258531</guid>
		<description>extending base objects bad, because we used prototype some time ago, and now it&#039;s really hard to get rid of it because those .bind() and few array  and string extensions are used sometimes across the code.</description>
		<content:encoded><![CDATA[<p>extending base objects bad, because we used prototype some time ago, and now it&#8217;s really hard to get rid of it because those .bind() and few array  and string extensions are used sometimes across the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258530</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 09 Nov 2007 16:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258530</guid>
		<description>The problem is that there is no &#039;unified&#039; documentation AFAIK. When using Prototype (or any other JS library) this will more or less deprecate parts of the regular API. But no one will tell you which parts should not be used anymore. So how could be developer possibly now that document.getElementById should not be used anymore, but Math is still ok? Especially if one only adds Prototype for a particular reason (like a nice API for XmlHttpRequest).</description>
		<content:encoded><![CDATA[<p>The problem is that there is no &#8216;unified&#8217; documentation AFAIK. When using Prototype (or any other JS library) this will more or less deprecate parts of the regular API. But no one will tell you which parts should not be used anymore. So how could be developer possibly now that document.getElementById should not be used anymore, but Math is still ok? Especially if one only adds Prototype for a particular reason (like a nice API for XmlHttpRequest).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samori Gorse</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258529</link>
		<dc:creator>Samori Gorse</dc:creator>
		<pubDate>Fri, 09 Nov 2007 15:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258529</guid>
		<description>@Mark : If you&#039;re speaking about that stuff, extending the hashmaps, it&#039;s no longer the case. Otherwise, I can&#039;t see what is wrong with extending prototypes, beside the fact that some of methods implemented sucks, like Array.getFirst();</description>
		<content:encoded><![CDATA[<p>@Mark : If you&#8217;re speaking about that stuff, extending the hashmaps, it&#8217;s no longer the case. Otherwise, I can&#8217;t see what is wrong with extending prototypes, beside the fact that some of methods implemented sucks, like Array.getFirst();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor Kojouharov</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258528</link>
		<dc:creator>Viktor Kojouharov</dc:creator>
		<pubDate>Fri, 09 Nov 2007 15:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258528</guid>
		<description>damn, I was expecting a quiz :(</description>
		<content:encoded><![CDATA[<p>damn, I was expecting a quiz :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://ajaxian.com/archives/how-well-do-you-know-prototype/comment-page-1#comment-258526</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 09 Nov 2007 15:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2990#comment-258526</guid>
		<description>It overrides/extends internal Javascript objects, that&#039;s about all I need to know.</description>
		<content:encoded><![CDATA[<p>It overrides/extends internal Javascript objects, that&#8217;s about all I need to know.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

