<?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: Stop Using Backbone As If It Were A Stateless Web Server</title>
	<atom:link href="http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Fri, 24 May 2013 06:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Christian Mauceri</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-3162</link>
		<dc:creator>Christian Mauceri</dc:creator>
		<pubDate>Tue, 26 Mar 2013 22:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-3162</guid>
		<description>Really great article, I agree with Gert &lt;a href=&quot;void(0)&quot; rel=&quot;nofollow&quot;&gt;Delete me&lt;/a&gt; makes more sense to avoid to get back to the root in a modal view for instance.
Anyway thanks a lot !</description>
		<content:encoded><![CDATA[<p>Really great article, I agree with Gert <a href="void(0)" rel="nofollow">Delete me</a> makes more sense to avoid to get back to the root in a modal view for instance.<br />
Anyway thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Schwartz</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-3018</link>
		<dc:creator>Jeremy Schwartz</dc:creator>
		<pubDate>Fri, 01 Feb 2013 13:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-3018</guid>
		<description>Devil&#039;s advocate - class makes more sense:
1) I&#039;m assuming class selectors are more efficient than data-attribute selectors, as some browsers have the native `getElementsByClassName`
2) using class can double-duty with visual cues -- not only do you target it for behavior, but you can use the same CSS to (as you say, more appropriately) style it with a delete icon, etc.
3) fits with the OOCSS (object-oriented css) pattern

I usually prefer something more indicative of the fact that it is a delete action -- `btn-delete` or `actn-delete` rather than just `delete`, so you can take advantage of OOCSS like:


    {a href=&quot;btn btn-delete&quot;}Delete{/a}


then CSS
.btn { width: 16px; height: 16px; text-indent:... }
.btn-delete { background-image:url(delete-icon.png); }


then JS
$(&#039;.btn-delete&#039;).click...


or even
$(&#039;.btn&#039;).click( // all buttons fire, then you can check for extended class to determine what happens specifically</description>
		<content:encoded><![CDATA[<p>Devil&#8217;s advocate &#8211; class makes more sense:<br />
1) I&#8217;m assuming class selectors are more efficient than data-attribute selectors, as some browsers have the native `getElementsByClassName`<br />
2) using class can double-duty with visual cues &#8212; not only do you target it for behavior, but you can use the same CSS to (as you say, more appropriately) style it with a delete icon, etc.<br />
3) fits with the OOCSS (object-oriented css) pattern</p>
<p>I usually prefer something more indicative of the fact that it is a delete action &#8212; `btn-delete` or `actn-delete` rather than just `delete`, so you can take advantage of OOCSS like:</p>
<p>    {a href=&#8221;btn btn-delete&#8221;}Delete{/a}</p>
<p>then CSS<br />
.btn { width: 16px; height: 16px; text-indent:&#8230; }<br />
.btn-delete { background-image:url(delete-icon.png); }</p>
<p>then JS<br />
$(&#8216;.btn-delete&#8217;).click&#8230;</p>
<p>or even<br />
$(&#8216;.btn&#8217;).click( // all buttons fire, then you can check for extended class to determine what happens specifically</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocket</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-2751</link>
		<dc:creator>Rocket</dc:creator>
		<pubDate>Fri, 14 Sep 2012 16:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-2751</guid>
		<description>I&#039;ve seen another approach where the views for models are being stored in a cache. To remove a view you just look it up in the list and call .remove().This way we have symmetry - both adding and removing of views is done on the same level, in collection view. As opposed to adding views in collection view, and removing in model view (as you described). Which way do you think is better?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen another approach where the views for models are being stored in a cache. To remove a view you just look it up in the list and call .remove().This way we have symmetry &#8211; both adding and removing of views is done on the same level, in collection view. As opposed to adding views in collection view, and removing in model view (as you described). Which way do you think is better?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-2732</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Tue, 04 Sep 2012 18:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-2732</guid>
		<description>i finally read your post. I was wondering if it creates a larger memory footprint to bind each individual event on a view. Ie.You have a list of elements. Each element has a delete button. You can bind the delete event to each element vs binding the delete event to the list and have event propagation handle each elements delete. </description>
		<content:encoded><![CDATA[<p>i finally read your post. I was wondering if it creates a larger memory footprint to bind each individual event on a view. Ie.You have a list of elements. Each element has a delete button. You can bind the delete event to each element vs binding the delete event to the list and have event propagation handle each elements delete. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gert</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-2486</link>
		<dc:creator>Gert</dc:creator>
		<pubDate>Sun, 27 May 2012 14:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-2486</guid>
		<description>Great article, I completely agree with you. I wouldn&#039;t use the class attribute to bind the actions though, it should be for CSS only imho. What I do is:

&lt;a href=&quot;void(0)&quot; rel=&quot;nofollow&quot;&gt;Delete me&lt;/a&gt;

and

events: { &quot;click a[data-action=delete]&quot;: &quot;delete&quot;  }

This just makes more sense to me personally.</description>
		<content:encoded><![CDATA[<p>Great article, I completely agree with you. I wouldn&#8217;t use the class attribute to bind the actions though, it should be for CSS only imho. What I do is:</p>
<p><a href="void(0)" rel="nofollow">Delete me</a></p>
<p>and</p>
<p>events: { &#8221;click a[data-action=delete]&#8220;: &#8220;delete&#8221;  }</p>
<p>This just makes more sense to me personally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Libor Nenadál</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-2429</link>
		<dc:creator>Libor Nenadál</dc:creator>
		<pubDate>Tue, 08 May 2012 15:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-2429</guid>
		<description>Well quite a lot of words for one simple thing - use route for routing to items (views), not for actions. ;-)</description>
		<content:encoded><![CDATA[<p>Well quite a lot of words for one simple thing &#8211; use route for routing to items (views), not for actions. ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dude</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-2326</link>
		<dc:creator>Dude</dc:creator>
		<pubDate>Fri, 30 Mar 2012 18:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-2326</guid>
		<description>isn&#039;t this stuff obvious? i&#039;m shocked, honestly</description>
		<content:encoded><![CDATA[<p>isn&#8217;t this stuff obvious? i&#8217;m shocked, honestly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A'braham Barakhyahu</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-1743</link>
		<dc:creator>A'braham Barakhyahu</dc:creator>
		<pubDate>Wed, 24 Aug 2011 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-1743</guid>
		<description>Others have echoed my sentiments.  Web devs that have been so used to stateless nature of the web do need to look at clientside-apps like desktop applications.  Good post.</description>
		<content:encoded><![CDATA[<p>Others have echoed my sentiments.  Web devs that have been so used to stateless nature of the web do need to look at clientside-apps like desktop applications.  Good post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-1734</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 13 Aug 2011 17:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-1734</guid>
		<description>I&#039;ve not had any problems using it. Really it&#039;s just a shortened version of &lt;a href=&quot;javascript:void(0)&quot;&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve not had any problems using it. Really it&#8217;s just a shortened version of &lt;a href=&#8221;javascript:void(0)&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2011/08/03/stop-using-backbone-as-if-it-were-a-stateless-web-server/#comment-1733</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Sat, 13 Aug 2011 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=505#comment-1733</guid>
		<description>that&#039;s interesting... i don&#039;t think i&#039;ve seen that one before. is that supported by all the major browsers?</description>
		<content:encoded><![CDATA[<p>that&#8217;s interesting&#8230; i don&#8217;t think i&#8217;ve seen that one before. is that supported by all the major browsers?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
