<?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: RubyRX NC</title>
	<atom:link href="http://cwash.org/2009/02/25/rubyrx-nc/feed/" rel="self" type="application/rss+xml" />
	<link>http://cwash.org/2009/02/25/rubyrx-nc/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rubyrx-nc</link>
	<description>+= construction + craftsmanship;</description>
	<lastBuildDate>Fri, 26 Feb 2010 06:16:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
	<item>
		<title>By: Andy</title>
		<link>http://cwash.org/2009/02/25/rubyrx-nc/comment-page-1/#comment-3137</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 03 Mar 2009 19:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://cwash.org/?p=165#comment-3137</guid>
		<description>I&#039;ve done a fair bit of JavaEE front-end development and one thing I&#039;d add is that: from my experience, a ton of scriptlet code in your JSPs is a tell-tale sign of other problems lurking in the code base. For example, overly-relying on static classes/interfaces, etc.

To your point, too much code in view templates typically foreshadows various violations of OO.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done a fair bit of JavaEE front-end development and one thing I&#8217;d add is that: from my experience, a ton of scriptlet code in your JSPs is a tell-tale sign of other problems lurking in the code base. For example, overly-relying on static classes/interfaces, etc.</p>
<p>To your point, too much code in view templates typically foreshadows various violations of OO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Wash</title>
		<link>http://cwash.org/2009/02/25/rubyrx-nc/comment-page-1/#comment-3123</link>
		<dc:creator>Chris Wash</dc:creator>
		<pubDate>Sun, 01 Mar 2009 03:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://cwash.org/?p=165#comment-3123</guid>
		<description>@Joachim

Thanks for your comment.  I had a feeling someone would call me on this. :)

Here&#039;s how I feel about it -- The idea of a server-side markup format that designers and coders will both be able to understand is a pipe dream.  It has never truly been what good templating was about.  It&#039;s just a sales pitch for tool vendors and on real-world projects it never works out that way.

The closer your templates can be to the markup they spit out (obviously with duplication removed), though, the better.  It makes your job as a coder easier.

I agree with you, if you do ERB the way you propose, I doubt you&#039;ll have any problems.  But if that&#039;s all that you&#039;re using code in your templates for, isn&#039;t there a more succinct (and less dangerous) way of getting that done?  Your templates are views and not application code.  When people have code at their fingertips in views, they tend to do crazy things with it.  It flies in the face of &quot;separation of concerns&quot; and MVC in general.  HAML/SASS looks like a decent way to do that.  I like the Unified EL that has been up and coming in frameworks like Seam, because they give you a way to consistently traverse collections throughout all layers of your code (in templates, logging statements, in configuration code, in injection code, etc.)  

My reservations about code in templates are for those people that still pervasively use it in spite of other more expressive and less cryptic ways of doing things.  Code in templates in the hands of someone that doesn&#039;t have a good idea of how templating works turns all of your view code into tag soup.  And my experience has been that happens *a lot* and I&#039;ve just grown tired of cleaning up the messes.

What do you think?  Thanks again for your comments.</description>
		<content:encoded><![CDATA[<p>@Joachim</p>
<p>Thanks for your comment.  I had a feeling someone would call me on this. <img src='http://cwash.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s how I feel about it &#8212; The idea of a server-side markup format that designers and coders will both be able to understand is a pipe dream.  It has never truly been what good templating was about.  It&#8217;s just a sales pitch for tool vendors and on real-world projects it never works out that way.</p>
<p>The closer your templates can be to the markup they spit out (obviously with duplication removed), though, the better.  It makes your job as a coder easier.</p>
<p>I agree with you, if you do ERB the way you propose, I doubt you&#8217;ll have any problems.  But if that&#8217;s all that you&#8217;re using code in your templates for, isn&#8217;t there a more succinct (and less dangerous) way of getting that done?  Your templates are views and not application code.  When people have code at their fingertips in views, they tend to do crazy things with it.  It flies in the face of &#8220;separation of concerns&#8221; and MVC in general.  HAML/SASS looks like a decent way to do that.  I like the Unified EL that has been up and coming in frameworks like Seam, because they give you a way to consistently traverse collections throughout all layers of your code (in templates, logging statements, in configuration code, in injection code, etc.)  </p>
<p>My reservations about code in templates are for those people that still pervasively use it in spite of other more expressive and less cryptic ways of doing things.  Code in templates in the hands of someone that doesn&#8217;t have a good idea of how templating works turns all of your view code into tag soup.  And my experience has been that happens *a lot* and I&#8217;ve just grown tired of cleaning up the messes.</p>
<p>What do you think?  Thanks again for your comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joachim</title>
		<link>http://cwash.org/2009/02/25/rubyrx-nc/comment-page-1/#comment-3111</link>
		<dc:creator>Joachim</dc:creator>
		<pubDate>Thu, 26 Feb 2009 22:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://cwash.org/?p=165#comment-3111</guid>
		<description>Chris,

thanks for your impressions.
I want to hook into &#039;HAML and SASS&#039;.
After 6 years of Java I&#039;m mainly developing in ruby these days. When doing a webapp, I alway choose Erb.
Im my templates the code is checking whether the
collection to display is filled or not and if so loop over it.
I wouldn&#039;t call that tag soup !
All the designers I&#039;m working with can cope with the bit of ruby code within the templates.
When I did jsps I was loosing so much time with tags which did not fullfill me needs. The reuse of self created tags was not as frequent as I thought it would.
Later I was using velocity and freemarker as template language. That&#039;s code in templates isn&#039;t it ?!
From this perspective a bit of ruby in my views really doesn&#039;t bother me. But I started to hate the concept of tags. I was evaluating Grails around christmas and a real showstopper for me was it&#039;s view technologie.
I&#039;m doing webdevelopment since 1997 and a lot of template engines / languages / technolgies came along.
My experience is that at the end of the day all these abstractions don&#039;t pay off.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>thanks for your impressions.<br />
I want to hook into &#8216;HAML and SASS&#8217;.<br />
After 6 years of Java I&#8217;m mainly developing in ruby these days. When doing a webapp, I alway choose Erb.<br />
Im my templates the code is checking whether the<br />
collection to display is filled or not and if so loop over it.<br />
I wouldn&#8217;t call that tag soup !<br />
All the designers I&#8217;m working with can cope with the bit of ruby code within the templates.<br />
When I did jsps I was loosing so much time with tags which did not fullfill me needs. The reuse of self created tags was not as frequent as I thought it would.<br />
Later I was using velocity and freemarker as template language. That&#8217;s code in templates isn&#8217;t it ?!<br />
From this perspective a bit of ruby in my views really doesn&#8217;t bother me. But I started to hate the concept of tags. I was evaluating Grails around christmas and a real showstopper for me was it&#8217;s view technologie.<br />
I&#8217;m doing webdevelopment since 1997 and a lot of template engines / languages / technolgies came along.<br />
My experience is that at the end of the day all these abstractions don&#8217;t pay off.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

