<?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 for Chocolate for Dogs</title>
	<atom:link href="http://chocolatefordogs.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://chocolatefordogs.com</link>
	<description>This Space for Rent</description>
	<lastBuildDate>Fri, 12 Mar 2010 03:37:29 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Implementing Basic JavaScript Destructor Functionality by JavascriptBank.com</title>
		<link>http://chocolatefordogs.com/2010/03/06/implementing-basic-javascript-destructor-functionality/comment-page-1/#comment-4842</link>
		<dc:creator>JavascriptBank.com</dc:creator>
		<pubDate>Fri, 12 Mar 2010 03:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://chocolatefordogs.com/?p=825#comment-4842</guid>
		<description>very cool &amp; good tips, thank you very much for sharing.

Can I &lt;a href=&quot;http://www.javascriptbank.com/submit/&quot; rel=&quot;nofollow&quot;&gt;share this post&lt;/a&gt; on my JavaScript library?


Awaiting your response. Thank</description>
		<content:encoded><![CDATA[<p>very cool &amp; good tips, thank you very much for sharing.</p>
<p>Can I <a href="http://www.javascriptbank.com/submit/" rel="nofollow">share this post</a> on my JavaScript library?</p>
<p>Awaiting your response. Thank</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java QuickTip: Use Interfaces to Define Models by mcory</title>
		<link>http://chocolatefordogs.com/2010/03/08/java-quicktip-use-interfaces-to-define-models/comment-page-1/#comment-4837</link>
		<dc:creator>mcory</dc:creator>
		<pubDate>Tue, 09 Mar 2010 18:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://chocolatefordogs.com/?p=846#comment-4837</guid>
		<description>You are quite right -- it most definitely is a violation of SRP, and I should&#039;ve mentioned that in the post.  Although, I guess one could argue that, as long as you&#039;re working with a &quot;dumb&quot; interface that just contains get/set methods (or properties, if you prefer C# lingo), there isn&#039;t much of a violation because the only &quot;behavior&quot; the model encapsulates is data storage.  The UI has to store the data on some level anyways -- otherwise you couldn&#039;t refer to it -- so it&#039;s simply exposing some of it&#039;s behavior under a different name.

(FWIW, it could also be considered an Interface Segregation Principle violation depending on your perspective as well.)

By having the reference and delegating, do you mean that the ContactPanel still implements the interface, or just returns the Contact?  If it implements the interface and defers to the Contact, that kinda defeats the purpose of having it implement the interface to begin with (i.e. to get the data directly from/put the data directly into the UI components).  It might be appropriate for it to return a Contact instance that it creates and initializes with data from the UI components, or to initialize it&#039;s UI components from a Contact instance.  However, I don&#039;t think that keeping a Contact instance and passing it around would necessarily be a good way of going about it.  I could be wrong though ;)</description>
		<content:encoded><![CDATA[<p>You are quite right &#8212; it most definitely is a violation of SRP, and I should&#8217;ve mentioned that in the post.  Although, I guess one could argue that, as long as you&#8217;re working with a &#8220;dumb&#8221; interface that just contains get/set methods (or properties, if you prefer C# lingo), there isn&#8217;t much of a violation because the only &#8220;behavior&#8221; the model encapsulates is data storage.  The UI has to store the data on some level anyways &#8212; otherwise you couldn&#8217;t refer to it &#8212; so it&#8217;s simply exposing some of it&#8217;s behavior under a different name.</p>
<p>(FWIW, it could also be considered an Interface Segregation Principle violation depending on your perspective as well.)</p>
<p>By having the reference and delegating, do you mean that the ContactPanel still implements the interface, or just returns the Contact?  If it implements the interface and defers to the Contact, that kinda defeats the purpose of having it implement the interface to begin with (i.e. to get the data directly from/put the data directly into the UI components).  It might be appropriate for it to return a Contact instance that it creates and initializes with data from the UI components, or to initialize it&#8217;s UI components from a Contact instance.  However, I don&#8217;t think that keeping a Contact instance and passing it around would necessarily be a good way of going about it.  I could be wrong though <img src='http://chocolatefordogs.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java QuickTip: Use Interfaces to Define Models by sud</title>
		<link>http://chocolatefordogs.com/2010/03/08/java-quicktip-use-interfaces-to-define-models/comment-page-1/#comment-4836</link>
		<dc:creator>sud</dc:creator>
		<pubDate>Tue, 09 Mar 2010 17:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://chocolatefordogs.com/?p=846#comment-4836</guid>
		<description>Isn&#039;t this violating the Single Responsibilty Principle. The class is both responsible for UI behavior and Model behavior.

Instead how about if ContactPanel has a reference to an instance of Contact and delegates to it as needed?</description>
		<content:encoded><![CDATA[<p>Isn&#8217;t this violating the Single Responsibilty Principle. The class is both responsible for UI behavior and Model behavior.</p>
<p>Instead how about if ContactPanel has a reference to an instance of Contact and delegates to it as needed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Resolution by mcory</title>
		<link>http://chocolatefordogs.com/2009/12/31/a-resolution/comment-page-1/#comment-4781</link>
		<dc:creator>mcory</dc:creator>
		<pubDate>Sat, 02 Jan 2010 18:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://chocolatefordogs.com/?p=784#comment-4781</guid>
		<description>Hey Zac -- it&#039;s great to hear from you!

Trust me, you haven&#039;t missed much on the blog -- I hadn&#039;t posted anything new in over a year.  

Hope your 2010 is a great one!

--Matt</description>
		<content:encoded><![CDATA[<p>Hey Zac &#8212; it&#8217;s great to hear from you!</p>
<p>Trust me, you haven&#8217;t missed much on the blog &#8212; I hadn&#8217;t posted anything new in over a year.  </p>
<p>Hope your 2010 is a great one!</p>
<p>&#8211;Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Resolution by Zac V.</title>
		<link>http://chocolatefordogs.com/2009/12/31/a-resolution/comment-page-1/#comment-4780</link>
		<dc:creator>Zac V.</dc:creator>
		<pubDate>Fri, 01 Jan 2010 11:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://chocolatefordogs.com/?p=784#comment-4780</guid>
		<description>Have a much better year than the previous one.  ( shouldn&#039;t be very difficult ).

Haven&#039;t read your blog in awhile, Hope all is going well!

-Zac</description>
		<content:encoded><![CDATA[<p>Have a much better year than the previous one.  ( shouldn&#8217;t be very difficult ).</p>
<p>Haven&#8217;t read your blog in awhile, Hope all is going well!</p>
<p>-Zac</p>
]]></content:encoded>
	</item>
</channel>
</rss>
