<?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 on: Block Helpers and DRY Views in Rails</title>
	<atom:link href="http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Thu, 20 Nov 2008 21:17:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-135208</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Fri, 26 Sep 2008 01:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-135208</guid>
		<description>Jonathan, you could extend it to work with nested blocks, but personally I think it's a smell indicating a need for some refactoring.</description>
		<content:encoded><![CDATA[<p>Jonathan, you could extend it to work with nested blocks, but personally I think it&#8217;s a smell indicating a need for some refactoring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rochkind</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-134301</link>
		<dc:creator>Jonathan Rochkind</dc:creator>
		<pubDate>Tue, 23 Sep 2008 17:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-134301</guid>
		<description>This method doesn't seem to work when you want to have a partial-with-block itself call _another_ partial-with-block. 

Any advice?</description>
		<content:encoded><![CDATA[<p>This method doesn&#8217;t seem to work when you want to have a partial-with-block itself call _another_ partial-with-block. </p>
<p>Any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Lipa</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-131475</link>
		<dc:creator>Bill Lipa</dc:creator>
		<pubDate>Tue, 16 Sep 2008 21:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-131475</guid>
		<description>Thanks, this technique was very helpful.  I used it to create, of all things, another rounded corner system, this time using CSS3 with fallback for IE using corner images.  Article &lt;a href="http://www.bestinclass.com/blog/2008/simple-rounded-corners-with-css3-box-radius-and-fallback-for-ie/" rel="nofollow"&gt;here&lt;/a&gt; if you're interested.</description>
		<content:encoded><![CDATA[<p>Thanks, this technique was very helpful.  I used it to create, of all things, another rounded corner system, this time using CSS3 with fallback for IE using corner images.  Article <a href="http://www.bestinclass.com/blog/2008/simple-rounded-corners-with-css3-box-radius-and-fallback-for-ie/" rel="nofollow">here</a> if you&#8217;re interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Rochkind</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-125341</link>
		<dc:creator>Jonathan Rochkind</dc:creator>
		<pubDate>Sat, 06 Sep 2008 16:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-125341</guid>
		<description>Zing: I agree, but this technique still works. Just call your helper method and partials "box_of_something" instead of "rounded_box". Then you can define it as a rounded box, or change your mind later and define it differently, in one DRY place.  And obviously, if you are definining it as a rounded box, you should do it in such a way that it degrades well for as many browsers as possible, goes without saying. (and you're doing it in one DRY place, so when you realize you need some additional stuff to degrade better, you've only got one place to fix it). I agree with you, but this technique is in fact eminently suitable for your approach.</description>
		<content:encoded><![CDATA[<p>Zing: I agree, but this technique still works. Just call your helper method and partials &#8220;box_of_something&#8221; instead of &#8220;rounded_box&#8221;. Then you can define it as a rounded box, or change your mind later and define it differently, in one DRY place.  And obviously, if you are definining it as a rounded box, you should do it in such a way that it degrades well for as many browsers as possible, goes without saying. (and you&#8217;re doing it in one DRY place, so when you realize you need some additional stuff to degrade better, you&#8217;ve only got one place to fix it). I agree with you, but this technique is in fact eminently suitable for your approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zing</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-120836</link>
		<dc:creator>Zing</dc:creator>
		<pubDate>Sat, 30 Aug 2008 14:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-120836</guid>
		<description>I didn't say that presentation wasn't important at all.  I simply said that if your site doesn't degrade properly in the absence of various features, then it sucks.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t say that presentation wasn&#8217;t important at all.  I simply said that if your site doesn&#8217;t degrade properly in the absence of various features, then it sucks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-120811</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Sat, 30 Aug 2008 13:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-120811</guid>
		<description>Zing, I know many designers who would disagree with that line of thought (myself included). Presentation is a very important part of a product - take Apple as a good example.</description>
		<content:encoded><![CDATA[<p>Zing, I know many designers who would disagree with that line of thought (myself included). Presentation is a very important part of a product - take Apple as a good example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zing</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-119988</link>
		<dc:creator>Zing</dc:creator>
		<pubDate>Fri, 29 Aug 2008 12:44:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-119988</guid>
		<description>If dodgy hacks are "necessary", then your site is already broken.  The web is supposed to be about content.  Define a box of text as "a box of text", not "a rounded box".  Who cares if the population using one browser don't see that it has rounded corners?  If your site doesn't degrade properly in this situation, fix *that*.</description>
		<content:encoded><![CDATA[<p>If dodgy hacks are &#8220;necessary&#8221;, then your site is already broken.  The web is supposed to be about content.  Define a box of text as &#8220;a box of text&#8221;, not &#8220;a rounded box&#8221;.  Who cares if the population using one browser don&#8217;t see that it has rounded corners?  If your site doesn&#8217;t degrade properly in this situation, fix *that*.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-119645</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Fri, 29 Aug 2008 02:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-119645</guid>
		<description>Zing, in theory you're right, but in practice that doesn't work. If all of our browsers were capable of rendering rounded boxes (like mozilla), it would be nice and easy. Unfortunately the reality is that we have to jump through all kinds of hoops to make this simple scenario cross-browser compatible. It's unfortunate, but it's a necessary evil.</description>
		<content:encoded><![CDATA[<p>Zing, in theory you&#8217;re right, but in practice that doesn&#8217;t work. If all of our browsers were capable of rendering rounded boxes (like mozilla), it would be nice and easy. Unfortunately the reality is that we have to jump through all kinds of hoops to make this simple scenario cross-browser compatible. It&#8217;s unfortunate, but it&#8217;s a necessary evil.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zing</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-118922</link>
		<dc:creator>Zing</dc:creator>
		<pubDate>Thu, 28 Aug 2008 00:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-118922</guid>
		<description>It *is* using a partial as a layout.  It's just abstracting it a little so that you don't need to type the same partial layout stuff over and over.

The real question is, how is this better than using proper, semantic markup.  Why should the guy who writes the page have to know in advance that it's going to be a rounded box?</description>
		<content:encoded><![CDATA[<p>It *is* using a partial as a layout.  It&#8217;s just abstracting it a little so that you don&#8217;t need to type the same partial layout stuff over and over.</p>
<p>The real question is, how is this better than using proper, semantic markup.  Why should the guy who writes the page have to know in advance that it&#8217;s going to be a rounded box?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-118430</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Wed, 27 Aug 2008 08:13:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/15/block-helpers-and-dry-views-in-rails/#comment-118430</guid>
		<description>Hi all,

just wondering...

How is this better than using a partial as layout?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>just wondering&#8230;</p>
<p>How is this better than using a partial as layout?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
