<?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: Organizing Javascript for Event Pooling with jQuery</title>
	<atom:link href="http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/</link>
	<description>All the stuff after "Hello, World!"</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:42:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chris</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-306</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 12 Apr 2010 17:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-306</guid>
		<description>&lt;p&gt;Thanks for your response. I like the concept of breaking down individual components into their own files.&lt;/p&gt;

&lt;p&gt;My project can be thought of in this way to an extent. It&#039;s a role-based access control application. Basically there will exist a site.js, user.js and admin.js. The idea is based around a js hierarchy. An anonymous user gets site.js, an authenticated user gets site.js and user.js; and an Admin would get site.js, user.js and admin.js.&lt;/p&gt;

&lt;p&gt;Each script would contain both publisher/subscriber logic, but one file can publish an event while multiple files listen for that same event.&lt;/p&gt;

&lt;p&gt;Let me know if you spot any flaws in my thinking, but I think this will work perfectly. Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for your response. I like the concept of breaking down individual components into their own files.</p>

<p>My project can be thought of in this way to an extent. It&#8217;s a role-based access control application. Basically there will exist a site.js, user.js and admin.js. The idea is based around a js hierarchy. An anonymous user gets site.js, an authenticated user gets site.js and user.js; and an Admin would get site.js, user.js and admin.js.</p>

<p>Each script would contain both publisher/subscriber logic, but one file can publish an event while multiple files listen for that same event.</p>

<p>Let me know if you spot any flaws in my thinking, but I think this will work perfectly. Thanks.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-305</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-305</guid>
		<description>&lt;p&gt;@Chris- Great questions about how to map code to files.  There&#039;s no easy answer for this.  But in general, you want any &quot;global&quot; code in a global file: usually JS related to your header, etc.  Shared components/widgets should get their own file.  I like to keep most page-related functionality in the same file- keeping related code close together.  If this grows too large, split up based on related logic.  This should, I hope, be somewhat obvious.&lt;/p&gt;

&lt;p&gt;No matter what you do, always use a js minifier, like the YUI Compressor.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Chris- Great questions about how to map code to files.  There&#8217;s no easy answer for this.  But in general, you want any &#8220;global&#8221; code in a global file: usually JS related to your header, etc.  Shared components/widgets should get their own file.  I like to keep most page-related functionality in the same file- keeping related code close together.  If this grows too large, split up based on related logic.  This should, I hope, be somewhat obvious.</p>

<p>No matter what you do, always use a js minifier, like the YUI Compressor.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-304</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 01 Apr 2010 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-304</guid>
		<description>&lt;p&gt;Great article, I am always interested in finding better design patterns with JavaScript. I used to write every event listener and handler in my document.ready function and let it rip. That turned out to be a maintenance nightmare. I am starting a new project and I want to implement your event pooling pattern, but I want to pick your brain before I start.&lt;/p&gt;

&lt;p&gt;For the example you give, how many js files would you create? Would you have a publisher.js and a subscriber.js? Would you instead have one js for just this functionality, i.e. simpleforms.js?&lt;/p&gt;

&lt;p&gt;What if you had dozens of tasks similar to this form, would you: put them in one giant js file, break them down per task, or separate them into a publisher.js and subscriber.js.&lt;/p&gt;

&lt;p&gt;Great blog, thanks in advance!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Great article, I am always interested in finding better design patterns with JavaScript. I used to write every event listener and handler in my document.ready function and let it rip. That turned out to be a maintenance nightmare. I am starting a new project and I want to implement your event pooling pattern, but I want to pick your brain before I start.</p>

<p>For the example you give, how many js files would you create? Would you have a publisher.js and a subscriber.js? Would you instead have one js for just this functionality, i.e. simpleforms.js?</p>

<p>What if you had dozens of tasks similar to this form, would you: put them in one giant js file, break them down per task, or separate them into a publisher.js and subscriber.js.</p>

<p>Great blog, thanks in advance!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Communication Between jQuery UI Widgets - DevPatch.com</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-303</link>
		<dc:creator>Communication Between jQuery UI Widgets - DevPatch.com</dc:creator>
		<pubDate>Mon, 22 Mar 2010 20:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-303</guid>
		<description>&lt;p&gt;[...] http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/   Tags: jQuery, jQueryUI Posted in Blog, JavaScript &#124; No Comments &#187;    Share &#124; [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/" rel="nofollow">http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/</a>   Tags: jQuery, jQueryUI Posted in Blog, JavaScript | No Comments &#187;    Share | [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Event Pooling with jQuery Using Bind and Trigger: Managing Complex Javascript &#124; Adventures in HttpContext</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-175</link>
		<dc:creator>Event Pooling with jQuery Using Bind and Trigger: Managing Complex Javascript &#124; Adventures in HttpContext</dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-175</guid>
		<description>&lt;p&gt;[...] Check out my follow up article Organizing Events for Event Pooling. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Check out my follow up article Organizing Events for Event Pooling. [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery resources &#171; QuantuMatrix&#8217;s Weblog</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-171</link>
		<dc:creator>jQuery resources &#171; QuantuMatrix&#8217;s Weblog</dc:creator>
		<pubDate>Mon, 28 Dec 2009 17:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-171</guid>
		<description>&lt;p&gt;[...] Organizing JavaScript for Event Pooling with jQuery [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Organizing JavaScript for Event Pooling with jQuery [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: 9eFish</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-163</link>
		<dc:creator>9eFish</dc:creator>
		<pubDate>Wed, 23 Dec 2009 02:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-163</guid>
		<description>&lt;p&gt;&lt;strong&gt;Organizing Javascript for Event Pooling with jQuery...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;9efish.æ„Ÿè°¢&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Organizing Javascript for Event Pooling with jQuery&#8230;</strong></p>

<p>9efish.æ„Ÿè°¢</p>]]></content:encoded>
	</item>
	<item>
		<title>By: DotNetShoutout</title>
		<link>http://www.michaelhamrah.com/blog/2009/12/organizing-javascript-for-event-pooling-with-jquery/comment-page-1/#comment-160</link>
		<dc:creator>DotNetShoutout</dc:creator>
		<pubDate>Mon, 21 Dec 2009 15:14:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.michaelhamrah.com/blog/?p=289#comment-160</guid>
		<description>&lt;p&gt;&lt;strong&gt;Organizing Javascript for Event Pooling with jQuery &#124; Adventures in HttpContext...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><strong>Organizing Javascript for Event Pooling with jQuery | Adventures in HttpContext&#8230;</strong></p>

<p>Thank you for submitting this cool story &#8211; Trackback from DotNetShoutout&#8230;</p>]]></content:encoded>
	</item>
</channel>
</rss>

