<?xml version="1.0" encoding="iso-8859-9"?><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: strategy design pattern &#8211; php</title>
	<atom:link href="http://code.internet.com.tr/strategy-design-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.internet.com.tr/strategy-design-pattern/</link>
	<description>bir gün bir gün bir çocuk</description>
	<lastBuildDate>Tue, 03 Jan 2012 21:27:10 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Emre Çevik</title>
		<link>http://code.internet.com.tr/strategy-design-pattern/comment-page-1/#comment-53</link>
		<dc:creator>Emre Çevik</dc:creator>
		<pubDate>Tue, 07 Jul 2009 07:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://code.internet.com.tr/?p=214#comment-53</guid>
		<description>evet dediğiniz gibide kullanmak mümkün ve daha efektif. 

bunu kullanmayı dusunenler arkadas sınıf kullanımıda bu şekilde değiştirecek.

$strategy_smtp      = new MailStrategy(new Smtp());
$strategy_sendmail  = new MailStrategy(new SendMail());</description>
		<content:encoded><![CDATA[<p>evet dediğiniz gibide kullanmak mümkün ve daha efektif. </p>
<p>bunu kullanmayı dusunenler arkadas sınıf kullanımıda bu şekilde değiştirecek.</p>
<p>$strategy_smtp      = new MailStrategy(new Smtp());<br />
$strategy_sendmail  = new MailStrategy(new SendMail());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Orhan SAGLAM</title>
		<link>http://code.internet.com.tr/strategy-design-pattern/comment-page-1/#comment-52</link>
		<dc:creator>Orhan SAGLAM</dc:creator>
		<pubDate>Tue, 07 Jul 2009 00:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://code.internet.com.tr/?p=214#comment-52</guid>
		<description>public function __construct($strategy_in) yerine

public function __construct(IMail $strategy) {
    $this-&gt;strategy=$strategy;
}

yapasaydın switch ($strategy_in)&#039;e gerek kalmazdı. Böylece her yeni strategy eklendiğinde mailStrategy Class&#039;ına yeni bir case eklemek zorunda olmazdın.</description>
		<content:encoded><![CDATA[<p>public function __construct($strategy_in) yerine</p>
<p>public function __construct(IMail $strategy) {<br />
    $this-&gt;strategy=$strategy;<br />
}</p>
<p>yapasaydın switch ($strategy_in)&#8217;e gerek kalmazdı. Böylece her yeni strategy eklendiğinde mailStrategy Class&#8217;ına yeni bir case eklemek zorunda olmazdın.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

