<?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"
	>
<channel>
	<title>Comments for Stupid Idea</title>
	<atom:link href="http://www.stupididea.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stupididea.com</link>
	<description></description>
	<pubDate>Thu, 20 Nov 2008 23:51:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>Comment on About Rails Checkboxes by Ed Spencer</title>
		<link>http://www.stupididea.com/2008/07/05/about-rails-checkboxes/#comment-165</link>
		<dc:creator>Ed Spencer</dc:creator>
		<pubDate>Fri, 24 Oct 2008 12:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=99#comment-165</guid>
		<description>@shawn

That's a pretty ridiculous point to make, unless:

a) You're on such a low bandwidth connection that a few hundred bytes of transfer causes noticeable delays (in which case certainly don't use Ext JS!)
b) You're paying for your bandwidth by the byte (again, don't use Ext JS)

Are you seriously suggesting that &#60;&#62; will have any noticeable impact on page load speed?  That string of text can be represented using 72 bytes, which will easily fit in a packet along with a lot more page data.  As a percentage of the size of the Ext JS library - which is of course required to even run the example - this comes to about 0.013%, depending on whether you load the full library or just cherry pick features to save bandwidth.

In any case this was a post about Rails checkboxes, and this is precisely how Rails expects checkbox data to arrive.

Nice post.  Buried deep in my todo list is to write a ux to allow this to be added in one component.  e.g.:

{
  xtype:      'rails_checkbox',
  fieldLabel: 'Field Name',
  name:       'model_name[field_name]'
}

Which would be equivalent to:

{
  xtype:      'checkbox',
  fieldLabel: 'Field Name',
  name:       'model_name[field_name]',
  inputValue: '1'
},
{
  xtype: 'hidden',
  name:  'model_name[field_name]',
  value: '0'
}</description>
		<content:encoded><![CDATA[<p>@shawn</p>
<p>That&#8217;s a pretty ridiculous point to make, unless:</p>
<p>a) You&#8217;re on such a low bandwidth connection that a few hundred bytes of transfer causes noticeable delays (in which case certainly don&#8217;t use Ext JS!)<br />
b) You&#8217;re paying for your bandwidth by the byte (again, don&#8217;t use Ext JS)</p>
<p>Are you seriously suggesting that &lt;&gt; will have any noticeable impact on page load speed?  That string of text can be represented using 72 bytes, which will easily fit in a packet along with a lot more page data.  As a percentage of the size of the Ext JS library - which is of course required to even run the example - this comes to about 0.013%, depending on whether you load the full library or just cherry pick features to save bandwidth.</p>
<p>In any case this was a post about Rails checkboxes, and this is precisely how Rails expects checkbox data to arrive.</p>
<p>Nice post.  Buried deep in my todo list is to write a ux to allow this to be added in one component.  e.g.:</p>
<p>{<br />
  xtype:      &#8216;rails_checkbox&#8217;,<br />
  fieldLabel: &#8216;Field Name&#8217;,<br />
  name:       &#8216;model_name[field_name]&#8216;<br />
}</p>
<p>Which would be equivalent to:</p>
<p>{<br />
  xtype:      &#8216;checkbox&#8217;,<br />
  fieldLabel: &#8216;Field Name&#8217;,<br />
  name:       &#8216;model_name[field_name]&#8216;,<br />
  inputValue: &#8216;1&#8242;<br />
},<br />
{<br />
  xtype: &#8216;hidden&#8217;,<br />
  name:  &#8216;model_name[field_name]&#8216;,<br />
  value: &#8216;0&#8242;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Another City Story by josh</title>
		<link>http://www.stupididea.com/2008/08/16/another-city-story/#comment-164</link>
		<dc:creator>josh</dc:creator>
		<pubDate>Wed, 22 Oct 2008 14:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=170#comment-164</guid>
		<description>As another completely random person I wanted to let you know this amused me as well.</description>
		<content:encoded><![CDATA[<p>As another completely random person I wanted to let you know this amused me as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Crash by hb</title>
		<link>http://www.stupididea.com/2008/07/22/a-crash/#comment-143</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Wed, 23 Jul 2008 05:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=119#comment-143</guid>
		<description>This was right on my level. Thanks.</description>
		<content:encoded><![CDATA[<p>This was right on my level. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About Rails Checkboxes by method</title>
		<link>http://www.stupididea.com/2008/07/05/about-rails-checkboxes/#comment-140</link>
		<dc:creator>method</dc:creator>
		<pubDate>Mon, 14 Jul 2008 16:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=99#comment-140</guid>
		<description>I see your point, Shawn, but there are a lot worse ways to waste user's bandwidth (I'm pretty ashamed of the html + redundant javascript in my other post). I think the Rails guys felt they were "fixing" html form posting. Sending the "0" is sort of the equivalent of an onUnclick event. I admit that it's just pushing code around, though.</description>
		<content:encoded><![CDATA[<p>I see your point, Shawn, but there are a lot worse ways to waste user&#8217;s bandwidth (I&#8217;m pretty ashamed of the html + redundant javascript in my other post). I think the Rails guys felt they were &#8220;fixing&#8221; html form posting. Sending the &#8220;0&#8243; is sort of the equivalent of an onUnclick event. I admit that it&#8217;s just pushing code around, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on About Rails Checkboxes by shawn</title>
		<link>http://www.stupididea.com/2008/07/05/about-rails-checkboxes/#comment-139</link>
		<dc:creator>shawn</dc:creator>
		<pubDate>Sun, 13 Jul 2008 22:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=99#comment-139</guid>
		<description>thats hideous! They surly could have done something easier peoples bandwidth. If it can tell you and pass that zero only if the check-box has been interacted with then great but otherwise its just some bloat because people dont want to have to deal with it on the server side</description>
		<content:encoded><![CDATA[<p>thats hideous! They surly could have done something easier peoples bandwidth. If it can tell you and pass that zero only if the check-box has been interacted with then great but otherwise its just some bloat because people dont want to have to deal with it on the server side</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Critical Mass by hb</title>
		<link>http://www.stupididea.com/2008/06/28/critical-mass/#comment-119</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Mon, 30 Jun 2008 01:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=94#comment-119</guid>
		<description>Yeah, taking over the big avenues near the Mall wouldn't be that fun. My experience with 14th Street is almost uniformly negative, so telling those Virginians to shove it seems like it would be fun.</description>
		<content:encoded><![CDATA[<p>Yeah, taking over the big avenues near the Mall wouldn&#8217;t be that fun. My experience with 14th Street is almost uniformly negative, so telling those Virginians to shove it seems like it would be fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Passion by hb</title>
		<link>http://www.stupididea.com/2008/06/29/passion/#comment-118</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Mon, 30 Jun 2008 01:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=95#comment-118</guid>
		<description>I had no idea that such a thing existed.</description>
		<content:encoded><![CDATA[<p>I had no idea that such a thing existed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Critical Mass by method</title>
		<link>http://www.stupididea.com/2008/06/28/critical-mass/#comment-115</link>
		<dc:creator>method</dc:creator>
		<pubDate>Sat, 28 Jun 2008 19:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=94#comment-115</guid>
		<description>Yeah, check it out and report back. The DC one might have a different style. 

Off the top of my head, I can't think of any awesome streets to take over in DC, although I used to have fun going down Massachusetts on the sidewalk. Bigelow is almost equivalent to riding around on the Beltway, maybe more like New York Ave coming into the city.</description>
		<content:encoded><![CDATA[<p>Yeah, check it out and report back. The DC one might have a different style. </p>
<p>Off the top of my head, I can&#8217;t think of any awesome streets to take over in DC, although I used to have fun going down Massachusetts on the sidewalk. Bigelow is almost equivalent to riding around on the Beltway, maybe more like New York Ave coming into the city.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Critical Mass by hb</title>
		<link>http://www.stupididea.com/2008/06/28/critical-mass/#comment-114</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Sat, 28 Jun 2008 18:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=94#comment-114</guid>
		<description>This was a beautiful description of what sounds like an extremely pleasant experience. I especially like the concepts of crossing guards/Tienanmen Square bicyclists, although the rear and front guards have to be pretty cool.  Looks like I'll miss the next one in DC (it's July 4), but I'll try to do the August one.</description>
		<content:encoded><![CDATA[<p>This was a beautiful description of what sounds like an extremely pleasant experience. I especially like the concepts of crossing guards/Tienanmen Square bicyclists, although the rear and front guards have to be pretty cool.  Looks like I&#8217;ll miss the next one in DC (it&#8217;s July 4), but I&#8217;ll try to do the August one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A language game by hb</title>
		<link>http://www.stupididea.com/2008/06/22/a-language-game/#comment-109</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Mon, 23 Jun 2008 04:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.stupididea.com/?p=93#comment-109</guid>
		<description>I remember making essentially the same joke when I was five, and my brother was one, or at some stage pre-language. I knew that the worst thing one person could say to another was "you're a bad person," so I would get in his face and say it, hoping for a rise from my mother. I can't remember whether I got one, but I do recall how pleased I was with my cleverness and how I felt simultaneously really guilty about the possibility that he would understand me and, of course, not get the joke. I think he just smiled and laughed at the attention. 

I hope.</description>
		<content:encoded><![CDATA[<p>I remember making essentially the same joke when I was five, and my brother was one, or at some stage pre-language. I knew that the worst thing one person could say to another was &#8220;you&#8217;re a bad person,&#8221; so I would get in his face and say it, hoping for a rise from my mother. I can&#8217;t remember whether I got one, but I do recall how pleased I was with my cleverness and how I felt simultaneously really guilty about the possibility that he would understand me and, of course, not get the joke. I think he just smiled and laughed at the attention. </p>
<p>I hope.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
