<?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: Mocking expensive template methods</title>
	<atom:link href="http://davybrion.com/blog/2008/07/mocking-expensive-template-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://davybrion.com/blog/2008/07/mocking-expensive-template-methods/</link>
	<description>Trying to walk that thin line between intelligence and ignorance</description>
	<lastBuildDate>Fri, 12 Mar 2010 18:56:09 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2008/07/mocking-expensive-template-methods/comment-page-1/#comment-671</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Mon, 14 Jul 2008 17:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=164#comment-671</guid>
		<description>the question you need to ask is: why would i need an execution pipeline? :)

I really don&#039;t see the point in them... code is often simpler without them, and if you want to offer standardized logging or exception handling or transaction management or whatever within that pipeline, you can usually just put that behavior in an aspect and apply it to a simple method which only contains the code that normally would&#039;ve been in the pipeline.

Btw, i don&#039;t think template methods in general are bad... i do use them when they come in handy, but i only use it when i want to delegate a small piece of behavior to a derived class.  Never to &#039;force&#039; a specific execution pipeline. When i need to implement too many template methods, i always feel there&#039;s gotta to be a better way and that the necessity of the template methods might indicate that i&#039;m working with a wrong level of abstraction.</description>
		<content:encoded><![CDATA[<p>the question you need to ask is: why would i need an execution pipeline? <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I really don&#8217;t see the point in them&#8230; code is often simpler without them, and if you want to offer standardized logging or exception handling or transaction management or whatever within that pipeline, you can usually just put that behavior in an aspect and apply it to a simple method which only contains the code that normally would&#8217;ve been in the pipeline.</p>
<p>Btw, i don&#8217;t think template methods in general are bad&#8230; i do use them when they come in handy, but i only use it when i want to delegate a small piece of behavior to a derived class.  Never to &#8216;force&#8217; a specific execution pipeline. When i need to implement too many template methods, i always feel there&#8217;s gotta to be a better way and that the necessity of the template methods might indicate that i&#8217;m working with a wrong level of abstraction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://davybrion.com/blog/2008/07/mocking-expensive-template-methods/comment-page-1/#comment-670</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 14 Jul 2008 16:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=164#comment-670</guid>
		<description>What is a preferable pattern for implementing the skeleton of an execution pipeline? (I&#039;ve been using template methods without realizing they were bad :) )</description>
		<content:encoded><![CDATA[<p>What is a preferable pattern for implementing the skeleton of an execution pipeline? (I&#8217;ve been using template methods without realizing they were bad <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
