<?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: Moving from Prototype to JQuery</title>
	<atom:link href="http://www.napcsweb.com/blog/2009/11/15/moving-from-prototype-to-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.napcsweb.com/blog/2009/11/15/moving-from-prototype-to-jquery/</link>
	<description>professional web development and consulting</description>
	<lastBuildDate>Mon, 22 Aug 2011 18:56:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Brian</title>
		<link>http://www.napcsweb.com/blog/2009/11/15/moving-from-prototype-to-jquery/comment-page-1/#comment-28099</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 07 Oct 2010 20:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.napcsweb.com/blog/?p=111#comment-28099</guid>
		<description>@Robert:

jQuery is difficult if you&#039;re not used to working with languages that support closures/anonymous functions. JavaScript does it in a way that&#039;s so close to Ruby that they&#039;re a natural fit. jQuery is a framework for DOM manipulation, and honestly, if you don&#039;t know how HTML, JavaScript, and the DOM work together, jQuery is going to seem insanely magical and full of maintenance nightmares.  However, the reason jQuery is popular is for the same reason MVC frameworks are popular - separation of concerns. JavaScript does not belong in HTML. onclick, onblur, and onfocus attributes are just ugly, horrible, and wrong, and need to be applied as listeners unobtrusively rather than shoved into the code by a server-side html generation framework or IDE. jQuery makes it VERY simple to make that happen. Instead of putting onclick on each link, I can simply use jQuery and event delegation to watch a region of a page for clicks, then look at the event I capture and see what its target was. If it was a link, I can act on it. It actually greatly simplifies maintenance of sites for me.

If you build things that display interfaces on the web, learn HTML, the DOM, and JavaScript. Once you&#039;ve written your own AddEventListener function in Javacript that has to work in all browsers, you&#039;ll move to jQuery quickly. :)</description>
		<content:encoded><![CDATA[<p>@Robert:</p>
<p>jQuery is difficult if you&#8217;re not used to working with languages that support closures/anonymous functions. JavaScript does it in a way that&#8217;s so close to Ruby that they&#8217;re a natural fit. jQuery is a framework for DOM manipulation, and honestly, if you don&#8217;t know how HTML, JavaScript, and the DOM work together, jQuery is going to seem insanely magical and full of maintenance nightmares.  However, the reason jQuery is popular is for the same reason MVC frameworks are popular &#8211; separation of concerns. JavaScript does not belong in HTML. onclick, onblur, and onfocus attributes are just ugly, horrible, and wrong, and need to be applied as listeners unobtrusively rather than shoved into the code by a server-side html generation framework or IDE. jQuery makes it VERY simple to make that happen. Instead of putting onclick on each link, I can simply use jQuery and event delegation to watch a region of a page for clicks, then look at the event I capture and see what its target was. If it was a link, I can act on it. It actually greatly simplifies maintenance of sites for me.</p>
<p>If you build things that display interfaces on the web, learn HTML, the DOM, and JavaScript. Once you&#8217;ve written your own AddEventListener function in Javacript that has to work in all browsers, you&#8217;ll move to jQuery quickly. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Stackhouse</title>
		<link>http://www.napcsweb.com/blog/2009/11/15/moving-from-prototype-to-jquery/comment-page-1/#comment-28095</link>
		<dc:creator>Robert Stackhouse</dc:creator>
		<pubDate>Thu, 07 Oct 2010 14:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.napcsweb.com/blog/?p=111#comment-28095</guid>
		<description>I never quite understood the draw of JQuery until I watched a video of John Resig talking about JQuery. It became quite clear very quickly that JQuery is an opinionated framework. As a person who uses Rails, I&#039;m sure you understand opinionated frameworks. In a talk by Scott Hanselman about ASP.NET MVC wherein he explains the differences between ASP.NET and ASP.NET MVC, he is careful to point out that the users of .NET Web Forms and .NET MVC value different things. The intersection of the things that Rails and .NET MVC value is pretty large. They both value model-view separation, convention over configuration, etc. The problem with JQuery is, for me at least, to discover what it values. Maybe no one comes right out and says it often enough. Maybe articles on JQuery tend to focus more on the how than the why. I was the student in Math class that annoyed the teacher and all the other students by asking why (often, &quot;Why do we have to learn this?&quot;—more often than not, I got the brush off rather than an answer).

For me, to really get behind a framework, I&#039;ve got to understand the why rather than just the how.

I used to look at examples of JQuery code and think, &quot;That&#039;s way to low-level,&quot; or, &quot;That looks like function soup.&quot; I still think these things when looking JQuery code (probably because I&#039;m used to writing object-oriented code), but now I understand there is a reason for this. JQuery folks are saying the only way to write JavaScript with an emphasis on minimalism, to reduce download times, and an emphasis on unobtrusiveness, to hopefully make pages more accessible.

I have a concern about JQuery regarding maintenance programming. I worry about developers having to struggle to discover the intent of some JQuery code after not having touched it for an extended period of time (weeks or months). In other words, it doesn&#039;t seem, to me at least, that JQuery code lends itself to being self-documenting.</description>
		<content:encoded><![CDATA[<p>I never quite understood the draw of JQuery until I watched a video of John Resig talking about JQuery. It became quite clear very quickly that JQuery is an opinionated framework. As a person who uses Rails, I&#8217;m sure you understand opinionated frameworks. In a talk by Scott Hanselman about ASP.NET MVC wherein he explains the differences between ASP.NET and ASP.NET MVC, he is careful to point out that the users of .NET Web Forms and .NET MVC value different things. The intersection of the things that Rails and .NET MVC value is pretty large. They both value model-view separation, convention over configuration, etc. The problem with JQuery is, for me at least, to discover what it values. Maybe no one comes right out and says it often enough. Maybe articles on JQuery tend to focus more on the how than the why. I was the student in Math class that annoyed the teacher and all the other students by asking why (often, &#8220;Why do we have to learn this?&#8221;—more often than not, I got the brush off rather than an answer).</p>
<p>For me, to really get behind a framework, I&#8217;ve got to understand the why rather than just the how.</p>
<p>I used to look at examples of JQuery code and think, &#8220;That&#8217;s way to low-level,&#8221; or, &#8220;That looks like function soup.&#8221; I still think these things when looking JQuery code (probably because I&#8217;m used to writing object-oriented code), but now I understand there is a reason for this. JQuery folks are saying the only way to write JavaScript with an emphasis on minimalism, to reduce download times, and an emphasis on unobtrusiveness, to hopefully make pages more accessible.</p>
<p>I have a concern about JQuery regarding maintenance programming. I worry about developers having to struggle to discover the intent of some JQuery code after not having touched it for an extended period of time (weeks or months). In other words, it doesn&#8217;t seem, to me at least, that JQuery code lends itself to being self-documenting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DL</title>
		<link>http://www.napcsweb.com/blog/2009/11/15/moving-from-prototype-to-jquery/comment-page-1/#comment-27586</link>
		<dc:creator>DL</dc:creator>
		<pubDate>Wed, 23 Dec 2009 14:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.napcsweb.com/blog/?p=111#comment-27586</guid>
		<description>I don&#039;t know if this treatment is related to your disability, but thought it might be worth a look if/when it&#039;s released:

http://www.engadget.com/2009/12/23/stem-cell-therapy-restores-british-mans-eyesight/</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if this treatment is related to your disability, but thought it might be worth a look if/when it&#8217;s released:</p>
<p><a href="http://www.engadget.com/2009/12/23/stem-cell-therapy-restores-british-mans-eyesight/" rel="nofollow">http://www.engadget.com/2009/12/23/stem-cell-therapy-restores-british-mans-eyesight/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.193 seconds -->

