<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Deterministic Musings</title>
	<link>http://www.rickylui.com/blog</link>
	<description>Musings through my coloured lenses.  Or you can call this Ricky Bobby's musings.</description>
	<pubDate>Mon, 08 Sep 2008 14:11:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>Comment on Don&#8217;t be a refactoring bigot by Don&#8217;t be a refactoring bigot (follow-up) at Deterministic Musings</title>
		<link>http://www.rickylui.com/blog/2008/01/28/dont-be-a-refactoring-bigot/#comment-218</link>
		<pubDate>Wed, 20 Feb 2008 06:13:43 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2008/01/28/dont-be-a-refactoring-bigot/#comment-218</guid>
					<description>[...] Thanks to Justin and the comments on his post (No, Be a jerk), for expanding on my blog post and taking the discussion to a much more sophisticated level than I started. Instead of &amp;#8220;Don&amp;#8217;t criticize code&amp;#8221;, I think this will be more suitable title of the paragraph: &amp;#8220;Give constructive criticism&amp;#8221;. I agree completely with Justin that refactoring itself is a kind of criticism. And it&amp;#8217;s the constructive kind. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Thanks to Justin and the comments on his post (No, Be a jerk), for expanding on my blog post and taking the discussion to a much more sophisticated level than I started. Instead of &#8220;Don&#8217;t criticize code&#8221;, I think this will be more suitable title of the paragraph: &#8220;Give constructive criticism&#8221;. I agree completely with Justin that refactoring itself is a kind of criticism. And it&#8217;s the constructive kind. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Services != Distributed Object by Yi Wen</title>
		<link>http://www.rickylui.com/blog/2008/02/14/services-distributed-object/#comment-215</link>
		<pubDate>Tue, 19 Feb 2008 15:25:21 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2008/02/14/services-distributed-object/#comment-215</guid>
					<description>Hey Ricky,

It's interesting to read your post. But the term &quot;services&quot; confused me a lot, since it refers to a lot of stuff already. Especially &quot;Domain Service Layer&quot;.  :)

To me, RESTFul is not about CRUDing your AR::B, it's about CRUDing your resources that your app has to offer. So what you guys have done on SalesPersonSaasignments was a right move, though I am still confused why this has anything to do with the post title.</description>
		<content:encoded><![CDATA[<p>Hey Ricky,</p>
<p>It&#8217;s interesting to read your post. But the term &#8220;services&#8221; confused me a lot, since it refers to a lot of stuff already. Especially &#8220;Domain Service Layer&#8221;.  :)</p>
<p>To me, RESTFul is not about CRUDing your AR::B, it&#8217;s about CRUDing your resources that your app has to offer. So what you guys have done on SalesPersonSaasignments was a right move, though I am still confused why this has anything to do with the post title.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Trying out ActiveResource in 3 minutes by Services != Distributed Object at Deterministic Musings</title>
		<link>http://www.rickylui.com/blog/2008/02/09/trying-out-activeresource-in-3-minutes/#comment-201</link>
		<pubDate>Thu, 14 Feb 2008 23:14:51 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2008/02/09/trying-out-activeresource-in-3-minutes/#comment-201</guid>
					<description>[...] (The title quotes Joshua Graham&amp;#8217;s comment here) I agree completely with Josh. In a casual conversation with Tim Cochran of Thoughtworks, we both felt that using RESTful controllers does not mean exposing all of your model objects, or database tables. Thoughts still need to go into designing the right interfaces. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] (The title quotes Joshua Graham&#8217;s comment here) I agree completely with Josh. In a casual conversation with Tim Cochran of Thoughtworks, we both felt that using RESTful controllers does not mean exposing all of your model objects, or database tables. Thoughts still need to go into designing the right interfaces. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Trying out ActiveResource in 3 minutes by JoshG</title>
		<link>http://www.rickylui.com/blog/2008/02/09/trying-out-activeresource-in-3-minutes/#comment-196</link>
		<pubDate>Wed, 13 Feb 2008 02:41:43 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2008/02/09/trying-out-activeresource-in-3-minutes/#comment-196</guid>
					<description>RPC!! Run away, run away!

Services != Distributed Objects. It's not about exposing your domain model to consumers of the service layer (probably unavoidable in Rails due to the fact that your domain model is also exposed to the database - or vice versa).

I know you're just playing around for learning but the time taken to create useful services is not in the tool. Mind you, this is a good tool for incremental service build out in a rapidly changing environment.</description>
		<content:encoded><![CDATA[<p>RPC!! Run away, run away!</p>
<p>Services != Distributed Objects. It&#8217;s not about exposing your domain model to consumers of the service layer (probably unavoidable in Rails due to the fact that your domain model is also exposed to the database - or vice versa).</p>
<p>I know you&#8217;re just playing around for learning but the time taken to create useful services is not in the tool. Mind you, this is a good tool for incremental service build out in a rapidly changing environment.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on TextMate bundle to Run Focused Test on a module by admin</title>
		<link>http://www.rickylui.com/blog/2007/10/09/textmate-bundle-to-run-focused-test-on-a-module/#comment-66</link>
		<pubDate>Tue, 30 Oct 2007 02:48:42 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2007/10/09/textmate-bundle-to-run-focused-test-on-a-module/#comment-66</guid>
					<description>Hey Prasanna!   I didn\'t describe it well, but the main reason is because it\'s a base module, not a base class:


class Cat &lt; ActiveRecord::Base; include Animal; end


We have the Animal module that contains common behaviour between Cats and Dogs, and we tested the Animal module not directly, but through testing Cat and Dog.


An alternative will be to have a test suite for the Animal module:


class AnimalTest &lt; Test::Unit::TestCase


and have a test animal that includes Animal: 

 
class TestAnimal &lt; ActiveRecord::Base; include Animal


and test Animal that way.  It just turns out that in our project, on the Animal module there are many template methods and so it\'s easier to test the subclasses rather than the module.</description>
		<content:encoded><![CDATA[<p>Hey Prasanna!   I didn\&#8217;t describe it well, but the main reason is because it\&#8217;s a base module, not a base class:</p>
<p>class Cat < ActiveRecord::Base; include Animal; end</p>
<p>We have the Animal module that contains common behaviour between Cats and Dogs, and we tested the Animal module not directly, but through testing Cat and Dog.</p>
<p>An alternative will be to have a test suite for the Animal module:</p>
<p>class AnimalTest < Test::Unit::TestCase</p>
<p>and have a test animal that includes Animal: </p>
<p>class TestAnimal < ActiveRecord::Base; include Animal</p>
<p>and test Animal that way.  It just turns out that in our project, on the Animal module there are many template methods and so it\&#8217;s easier to test the subclasses rather than the module.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on TextMate bundle to Run Focused Test on a module by Prasanna</title>
		<link>http://www.rickylui.com/blog/2007/10/09/textmate-bundle-to-run-focused-test-on-a-module/#comment-65</link>
		<pubDate>Sun, 28 Oct 2007 17:38:29 +0000</pubDate>
		<guid>http://www.rickylui.com/blog/2007/10/09/textmate-bundle-to-run-focused-test-on-a-module/#comment-65</guid>
					<description>Hey Ricky,

How are ya? I'm curious what the motivation to retest base class behavior when you're testing a class.

Thanks! Take care.
-Prasanna</description>
		<content:encoded><![CDATA[<p>Hey Ricky,</p>
<p>How are ya? I&#8217;m curious what the motivation to retest base class behavior when you&#8217;re testing a class.</p>
<p>Thanks! Take care.<br />
-Prasanna
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
