<?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: living code</title>
	<atom:link href="http://malvasiabianca.org/archives/2008/10/living-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://malvasiabianca.org/archives/2008/10/living-code/</link>
	<description></description>
	<lastBuildDate>Thu, 24 May 2012 20:46:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: David Carlton</title>
		<link>http://malvasiabianca.org/archives/2008/10/living-code/comment-page-1/#comment-114290</link>
		<dc:creator>David Carlton</dc:creator>
		<pubDate>Mon, 27 Oct 2008 23:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/?p=1185#comment-114290</guid>
		<description>Hmm, good examples.  They seem to have a similar flavor, but I&#039;m having a hard time putting my finger on it.  At first I thought they were simply glue classes, hooking up requests with some other object, but I&#039;m now not confident that that&#039;s right: e.g. Strategy exists to answer somebody else&#039;s questions, but you can design a perfectly good Strategy object that can answer questions itself (instead of forwarding them to somebody else).

Visitor&#039;s a fun one - if you take a broad enough point of view, I think a traditional Unix program to be used in a pipeline is a Visitor of sorts?  But that&#039;s neither here nor there, I suppose.  Anyways, I can imagine a Visitor with a broader interface (e.g. one where you actively grab output), but I can also imagine a Visitor that just shoves data from here to there and doesn&#039;t need any configuration beyond its constructor.

Hmm, I&#039;ll have to think about this more; you&#039;ve certainly convinced me that, in some circumstances, having the public concrete interface exactly match an abstract interface can be quite reasonable.</description>
		<content:encoded><![CDATA[<p>Hmm, good examples.  They seem to have a similar flavor, but I&#8217;m having a hard time putting my finger on it.  At first I thought they were simply glue classes, hooking up requests with some other object, but I&#8217;m now not confident that that&#8217;s right: e.g. Strategy exists to answer somebody else&#8217;s questions, but you can design a perfectly good Strategy object that can answer questions itself (instead of forwarding them to somebody else).</p>
<p>Visitor&#8217;s a fun one &#8211; if you take a broad enough point of view, I think a traditional Unix program to be used in a pipeline is a Visitor of sorts?  But that&#8217;s neither here nor there, I suppose.  Anyways, I can imagine a Visitor with a broader interface (e.g. one where you actively grab output), but I can also imagine a Visitor that just shoves data from here to there and doesn&#8217;t need any configuration beyond its constructor.</p>
<p>Hmm, I&#8217;ll have to think about this more; you&#8217;ve certainly convinced me that, in some circumstances, having the public concrete interface exactly match an abstract interface can be quite reasonable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Pallas</title>
		<link>http://malvasiabianca.org/archives/2008/10/living-code/comment-page-1/#comment-114281</link>
		<dc:creator>Joe Pallas</dc:creator>
		<pubDate>Mon, 27 Oct 2008 21:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://malvasiabianca.org/?p=1185#comment-114281</guid>
		<description>You asked, &quot;Are there many good examples where you have multiple concrete classes that all support the same abstract interface, and where they don’t add methods of their own?&quot;  I think the answer is yes, and I would offer at least Strategy, Proxy, and Visitor from Design Patterns.</description>
		<content:encoded><![CDATA[<p>You asked, &#8220;Are there many good examples where you have multiple concrete classes that all support the same abstract interface, and where they don’t add methods of their own?&#8221;  I think the answer is yes, and I would offer at least Strategy, Proxy, and Visitor from Design Patterns.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 7/13 queries in 0.006 seconds using disk: basic

Served from: malvasiabianca.org @ 2012-05-25 01:44:02 -->
