<?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: Ruby on Rails Exchange, London</title>
	<atom:link href="http://thelucid.com/2007/02/17/ruby-on-rails-exchange-london/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelucid.com/2007/02/17/ruby-on-rails-exchange-london/</link>
	<description>Lightweight ramblings</description>
	<lastBuildDate>Mon, 22 Feb 2010 16:12:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jamie Hill</title>
		<link>http://thelucid.com/2007/02/17/ruby-on-rails-exchange-london/comment-page-1/#comment-2115</link>
		<dc:creator>Jamie Hill</dc:creator>
		<pubDate>Wed, 25 Jul 2007 04:29:22 +0000</pubDate>
		<guid isPermaLink="false">989ee7b2-bb80-4e1b-b41a-dbe8a64685ef#comment-2115</guid>
		<description>Sorry Jason, only just seen your comment amongst all the comment spam I&#039;ve been getting. Hope Uni is going well.</description>
		<content:encoded><![CDATA[<p>Sorry Jason, only just seen your comment amongst all the comment spam I&#8217;ve been getting. Hope Uni is going well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jase</title>
		<link>http://thelucid.com/2007/02/17/ruby-on-rails-exchange-london/comment-page-1/#comment-2105</link>
		<dc:creator>Jase</dc:creator>
		<pubDate>Wed, 28 Feb 2007 01:27:27 +0000</pubDate>
		<guid isPermaLink="false">989ee7b2-bb80-4e1b-b41a-dbe8a64685ef#comment-2105</guid>
		<description>Long time no speak, I would have dropped by to say my quick hi over Xmas. Hope the the move to the new office went fairly smoothly. How many times how you moved office now?

Interesting that Chad mentioned about avoiding instance variables. I must say I disliked the use of instance variables, In the odd little pet projects I&#039;ve been playing with I&#039;ve often made private controller methods to avoid the nasty use of @, and made them helper methods occasionally. I can&#039;t say say I&#039;ve gone all the way to eleminate their use though. It&#039;s good to see other people think alike.

Association proxies is something I&#039;ve been pretty poor with, and I&#039;ve often not though about my design and ended up with slightly bloated/disjoint models, despite knowing about the AssociationProxys for well over a year now. It does help avoid some of the clumsy use of SQL. I don&#039;t suppose you&#039;ve seen a lib called Squirrel? I&#039;ve skimmed through it at ....

http://giantrobots.thoughtbot.com/2007/2/13/a-convenient-squirrel-addition

It&#039;s got a nice elegant syntax to replace common SQL queries. I wonder if it would work on the find method found in associations because it qould kill a lot of nasty find criterias. My main concern is how robust the plugin is as it&#039;s not heavily used.

About your point about how Rails deals with views, I must agree there. One of my issues I have found when I&#039;ve occasionally bothered to do any coding is that I end up moving a number of methods into models because what I am trying to do is common to a number of views. I think a lot of other people do the same, and especially now that Jamis made a point of it in the Skinny Controller, Fat Model post on his blog. Thinking back in retrostect the other day I thought it&#039;s probably best to move this sort of stuff into helpers, because   this sort of code doesn&#039;t really belong in views nor models. It&#039;s almost like like the paradigm of MVC is slightly lacking unless there is decent use of helpers. Certainly I would argue in Jamis&#039; post http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model that methods like age, name etc might be better as helpers. 

Interestingly, it looks like controllers will support multiple view folders in version 2.0... http://weblog.rubyonrails.org/2007/2/4/new-feature-for-rails-2-0-multiple-controller-view-paths which might prove handy for applications that need slighly more flexible skinning.

Certainly I agree with the fact that views are due for some changes. After all Rails 1.2 was mainly controller and routing changes, and rails 1.1 was mainly ActiveRecord association changes (I guess some view stuff was touched on with the introduction of RJS).

As for testing, it&#039;s good to see you&#039;ve picked up on using it. (though I gotta say I rarely think about making proper test myself, and if I do they are normally just for tedious model related things). I seem to remember preching about testing back in the days when we used PHP. Like mainy, I&#039;ve found fixtures a pain in the backside. My biggest issue with fixtures is they are a global dataset. This basically means that when you change/add some fixture data to suit the needs of a new test you end up breaking some other tests that rely on the same fixtures. On the odd occasions I&#039;ve bothered to write tests, I&#039;ve kept fixtures to a minimum. The other pain with fixtures is the fact if you change you DB tables (i.e. add or remove rows) fixtures need to be cleaned up. 

Chad&#039;s point about SQL&#039;less controllers is a really good point. It&#039;s never crossed my point, but I must agree that controllers are the wrong place for SQL.

Anyway, hope you are all keeping well and hope you aren&#039;t having to do too much overtime!
</description>
		<content:encoded><![CDATA[<p>Long time no speak, I would have dropped by to say my quick hi over Xmas. Hope the the move to the new office went fairly smoothly. How many times how you moved office now?</p>
<p>Interesting that Chad mentioned about avoiding instance variables. I must say I disliked the use of instance variables, In the odd little pet projects I&#8217;ve been playing with I&#8217;ve often made private controller methods to avoid the nasty use of @, and made them helper methods occasionally. I can&#8217;t say say I&#8217;ve gone all the way to eleminate their use though. It&#8217;s good to see other people think alike.</p>
<p>Association proxies is something I&#8217;ve been pretty poor with, and I&#8217;ve often not though about my design and ended up with slightly bloated/disjoint models, despite knowing about the AssociationProxys for well over a year now. It does help avoid some of the clumsy use of SQL. I don&#8217;t suppose you&#8217;ve seen a lib called Squirrel? I&#8217;ve skimmed through it at &#8230;.</p>
<p><a href="http://giantrobots.thoughtbot.com/2007/2/13/a-convenient-squirrel-addition" rel="nofollow">http://giantrobots.thoughtbot.com/2007/2/13/a-convenient-squirrel-addition</a></p>
<p>It&#8217;s got a nice elegant syntax to replace common SQL queries. I wonder if it would work on the find method found in associations because it qould kill a lot of nasty find criterias. My main concern is how robust the plugin is as it&#8217;s not heavily used.</p>
<p>About your point about how Rails deals with views, I must agree there. One of my issues I have found when I&#8217;ve occasionally bothered to do any coding is that I end up moving a number of methods into models because what I am trying to do is common to a number of views. I think a lot of other people do the same, and especially now that Jamis made a point of it in the Skinny Controller, Fat Model post on his blog. Thinking back in retrostect the other day I thought it&#8217;s probably best to move this sort of stuff into helpers, because   this sort of code doesn&#8217;t really belong in views nor models. It&#8217;s almost like like the paradigm of MVC is slightly lacking unless there is decent use of helpers. Certainly I would argue in Jamis&#8217; post <a href="http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model" rel="nofollow">http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model</a> that methods like age, name etc might be better as helpers. </p>
<p>Interestingly, it looks like controllers will support multiple view folders in version 2.0&#8230; <a href="http://weblog.rubyonrails.org/2007/2/4/new-feature-for-rails-2-0-multiple-controller-view-paths" rel="nofollow">http://weblog.rubyonrails.org/2007/2/4/new-feature-for-rails-2-0-multiple-controller-view-paths</a> which might prove handy for applications that need slighly more flexible skinning.</p>
<p>Certainly I agree with the fact that views are due for some changes. After all Rails 1.2 was mainly controller and routing changes, and rails 1.1 was mainly ActiveRecord association changes (I guess some view stuff was touched on with the introduction of RJS).</p>
<p>As for testing, it&#8217;s good to see you&#8217;ve picked up on using it. (though I gotta say I rarely think about making proper test myself, and if I do they are normally just for tedious model related things). I seem to remember preching about testing back in the days when we used PHP. Like mainy, I&#8217;ve found fixtures a pain in the backside. My biggest issue with fixtures is they are a global dataset. This basically means that when you change/add some fixture data to suit the needs of a new test you end up breaking some other tests that rely on the same fixtures. On the odd occasions I&#8217;ve bothered to write tests, I&#8217;ve kept fixtures to a minimum. The other pain with fixtures is the fact if you change you DB tables (i.e. add or remove rows) fixtures need to be cleaned up. </p>
<p>Chad&#8217;s point about SQL&#8217;less controllers is a really good point. It&#8217;s never crossed my point, but I must agree that controllers are the wrong place for SQL.</p>
<p>Anyway, hope you are all keeping well and hope you aren&#8217;t having to do too much overtime!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
