<?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: Better jQuery Code #1</title>
	<atom:link href="http://benjaminsterling.com/better-jquery-code-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://benjaminsterling.com/better-jquery-code-1/</link>
	<description>Ok, you did not judge the book by it&#039;s cover, great.  Now, read the whole thing before passing judgment.</description>
	<lastBuildDate>Sat, 03 Jan 2009 04:54:23 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jQuery Style Guide from Benjamin Sterling &#124; blog.rebeccamurphey.com</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5484</link>
		<dc:creator>jQuery Style Guide from Benjamin Sterling &#124; blog.rebeccamurphey.com</dc:creator>
		<pubDate>Sun, 07 Dec 2008 16:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5484</guid>
		<description>[...] wanted to call attention to two excellent posts by Benjamin Sterling: Better jQuery Code 1 and Better jQuery Code 2. He offers some must-have tips on style, form and best practices. Thanks [...]</description>
		<content:encoded><![CDATA[<p>[...] wanted to call attention to two excellent posts by Benjamin Sterling: Better jQuery Code 1 and Better jQuery Code 2. He offers some must-have tips on style, form and best practices. Thanks [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: New jQuery plugin: Object Cache : decodeURI</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5277</link>
		<dc:creator>New jQuery plugin: Object Cache : decodeURI</dc:creator>
		<pubDate>Thu, 20 Nov 2008 18:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5277</guid>
		<description>[...] by Benjamin Sterling&#8217;s &#8220;Better jQuery Code&#8221; article I decided to develop a simple plugin to make his first point (Caching) more easier&#8230; [...]</description>
		<content:encoded><![CDATA[<p>[...] by Benjamin Sterling&#8217;s &#8220;Better jQuery Code&#8221; article I decided to develop a simple plugin to make his first point (Caching) more easier&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antoine Leclair</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5211</link>
		<dc:creator>Antoine Leclair</dc:creator>
		<pubDate>Tue, 18 Nov 2008 19:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5211</guid>
		<description>Thanks! I&#039;m starting out with jQuery and this is the kind of tips that is going to be useful!</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;m starting out with jQuery and this is the kind of tips that is going to be useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links of Interest</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5206</link>
		<dc:creator>Links of Interest</dc:creator>
		<pubDate>Tue, 18 Nov 2008 12:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5206</guid>
		<description>[...] need to start using that &#8220;data&#8221; function. Benjamin Sterling follows up with his own Part 1 and Part 2.   Save to Delicious Submit to Digg Review on StumbleUpon Submit to DesignFloat Submit [...]</description>
		<content:encoded><![CDATA[<p>[...] need to start using that &#8220;data&#8221; function. Benjamin Sterling follows up with his own Part 1 and Part 2.   Save to Delicious Submit to Digg Review on StumbleUpon Submit to DesignFloat Submit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Better jQuery Code #2 &#124; The Book and the Cover</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5173</link>
		<dc:creator>Better jQuery Code #2 &#124; The Book and the Cover</dc:creator>
		<pubDate>Sun, 16 Nov 2008 16:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5173</guid>
		<description>[...] a follow up to my Better jQuery Code #1 post I will be writing about some other small items that I have found to make my code better and [...]</description>
		<content:encoded><![CDATA[<p>[...] a follow up to my Better jQuery Code #1 post I will be writing about some other small items that I have found to make my code better and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5152</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Sat, 15 Nov 2008 19:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5152</guid>
		<description>@Dan good call, thanks for the input.</description>
		<content:encoded><![CDATA[<p>@Dan good call, thanks for the input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan G. Switzer, II</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5151</link>
		<dc:creator>Dan G. Switzer, II</dc:creator>
		<pubDate>Sat, 15 Nov 2008 18:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5151</guid>
		<description>Also, as a general note for readers, you can cache your variable at the same time you intiate any behaviors:

var $mainNav = $(&#039;#main_nav a&#039;).click(fnClick).hover(fnOn, fnOff);

(Replace the fnClick, fnOn, fnOff with actual callbacks.)

This will often save you a few lines of code to chain things together.</description>
		<content:encoded><![CDATA[<p>Also, as a general note for readers, you can cache your variable at the same time you intiate any behaviors:</p>
<p>var $mainNav = $(&#8217;#main_nav a&#8217;).click(fnClick).hover(fnOn, fnOff);</p>
<p>(Replace the fnClick, fnOn, fnOff with actual callbacks.)</p>
<p>This will often save you a few lines of code to chain things together.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Sterling</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5150</link>
		<dc:creator>Benjamin Sterling</dc:creator>
		<pubDate>Sat, 15 Nov 2008 18:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5150</guid>
		<description>@Sean O ah yes, the $ before the var name, this is what I started doing when I first picked up jQuery and mainly because of PHP and it does keep you in a mindset that this variable is a jQuery object.  The problem that I was coming across, being a Dreamweaver user, if you double click on the variable the $ never got selected, so what I actually started doing was &quot;jqMainNav&quot; and for what ever reason I did not think to put it in my post.

I&#039;ll amend the post with that tip.</description>
		<content:encoded><![CDATA[<p>@Sean O ah yes, the $ before the var name, this is what I started doing when I first picked up jQuery and mainly because of PHP and it does keep you in a mindset that this variable is a jQuery object.  The problem that I was coming across, being a Dreamweaver user, if you double click on the variable the $ never got selected, so what I actually started doing was &#8220;jqMainNav&#8221; and for what ever reason I did not think to put it in my post.</p>
<p>I&#8217;ll amend the post with that tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean O</title>
		<link>http://benjaminsterling.com/better-jquery-code-1/comment-page-1/#comment-5149</link>
		<dc:creator>Sean O</dc:creator>
		<pubDate>Sat, 15 Nov 2008 18:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://benjaminsterling.com/?p=99#comment-5149</guid>
		<description>Good tips here. One minuscule addendum to the first tip: I like to preface jQuery objects with a $ when assigning them to variables to help denote their special contents.

e.g. var $mainNav = $(&#039;#main_nav a&#039;);

I think I picked up that convention from Karl Swedberg on LearningjQuery.com.</description>
		<content:encoded><![CDATA[<p>Good tips here. One minuscule addendum to the first tip: I like to preface jQuery objects with a $ when assigning them to variables to help denote their special contents.</p>
<p>e.g. var $mainNav = $(&#8217;#main_nav a&#8217;);</p>
<p>I think I picked up that convention from Karl Swedberg on LearningjQuery.com.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
