<?xml version="1.0" encoding="iso-8859-9"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CODE PROJECT &#124; php, codeigniter, smarty, design patterns &#187; structural</title>
	<atom:link href="http://code.internet.com.tr/etiket/structural/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.internet.com.tr</link>
	<description>bir gün bir gün bir çocuk</description>
	<lastBuildDate>Sun, 31 Jan 2010 11:11:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>proxy design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/proxy-design-pattern/</link>
		<comments>http://code.internet.com.tr/proxy-design-pattern/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 22:42:00 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>
		<category><![CDATA[vekil]]></category>
		<category><![CDATA[yapısal]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=370</guid>
		<description><![CDATA[Proxy (vekil) tasarım şablonu yapısal (structural patterns) tasarım şablonları gurubunda yer alır. Kullanım amacı başka bir nesneye kontrol ve erişim için vekillik sağlamaktır.


şimdi öğreniğimizi inceleyelim.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
&#60;?php
&#160;
interface GeneratorInterface
&#123;
    public function showImage&#40;&#41;;
&#125;
&#160;
// realsubject sınıfı
&#160;
class ImageGenerator implements GeneratorInterface
&#123;
    private $image;
&#160;
    function __construct&#40;$image&#41;
    &#123;
     [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/proxy-design-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>design patterns (tasarım şablonları)</title>
		<link>http://code.internet.com.tr/design-patterns-tasarim-sablonlari/</link>
		<comments>http://code.internet.com.tr/design-patterns-tasarim-sablonlari/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 20:51:38 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[behavioral]]></category>
		<category><![CDATA[creational]]></category>
		<category><![CDATA[davranışsal]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım kalıpları]]></category>
		<category><![CDATA[tasarım şabonları]]></category>
		<category><![CDATA[yapısal]]></category>
		<category><![CDATA[yaratılış]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=358</guid>
		<description><![CDATA[Sitemizde design patterns (tasarım şablonlarına) hakkında yazdığımız tüm yazılara bu bağlantıdan ulaşabilirsiniz.


design patterns
design patterns : tanımlar

1- Yaratılış Kalıpları ( Creational Patterns )

abstract factory (soyut fabrika) design pattern
builder (inşaatçı) design pattern
factory method (fabrika) design pattern
prototype (prototip) design pattern
singleton (yalnızlılık) design pattern

2- Yapısal Kalıplar ( Structural Patterns )

adapter (adaptör) design pattern
bridge (köprü) design pattern
composite (kompozit) design pattern
decorator [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/design-patterns-tasarim-sablonlari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bridge design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/bridge-design-pattern/</link>
		<comments>http://code.internet.com.tr/bridge-design-pattern/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 20:12:32 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[köprü]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=328</guid>
		<description><![CDATA[Bridge (köprü) tasarım şablonu yapısal (structural patterns) tasarım şablonları grubunda yer alır. Bu yöntem sayesinde sınıf hiyerarşileri daha esnek bir hale getirilir. 

Şimdi grafik ile bridge tasarım şablonunun ne işe yaradığını anlamaya çalışalım.
bridge kullanmadan önce

bridge kullanarak

grafikleri inceledikten sonra örneğimize geçebiliriz.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
&#60;?php
&#160;
interface MailTransport
&#123;
	public function send&#40;$from, $to, $body&#41;;
&#125;
&#160;
class SendMail implements MailTransport
&#123;
    public function send&#40;$from, $to, [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/bridge-design-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flyweight design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/flyweight-design-pattern/</link>
		<comments>http://code.internet.com.tr/flyweight-design-pattern/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:55:47 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[flyweight]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[sinek siklet]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=323</guid>
		<description><![CDATA[Flyweight (sinek siklet) tasarım şablonu yapısal (structural patterns) tasarım şablonları grubunda yer alır. Flyweight kullanım amacı kullanılan nesne sayısının aşşağıya çekilmesidir. 1 tane nesne oluşturup farklı verileri bu nesneye method parametresi olarak göndeririz.



1
2
3
4
5
6
7
8
9
10
11
12
class TextBox&#123;
    private $name;
&#160;
    public function __construct&#40;$name, $value=''&#41;&#123;
        $this-&#62;name=$name;
  [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/flyweight-design-pattern/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>composite design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/composite-design-pattern/</link>
		<comments>http://code.internet.com.tr/composite-design-pattern/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 06:21:14 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[composite]]></category>
		<category><![CDATA[kompozit]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=301</guid>
		<description><![CDATA[Composite (kompozit) tasarım şablonu yapısal (Structural Patterns) tasarım şablonları grubunda yer alır. Composite bir sistemin bütünü ile parçalarının birbiriyle ilişkileri sadeleştirmek için kullanılır. 
Anlatımımız biraz garip oldu bir örnek vererek açıklayalım. Grafik çizen bir uygulama yaptığımızı düşünelim her şekil için ayrı sınıf kullanıyoruz. Kare, Diktörtgen, Üçgen, Çember vs vs. Resimi çizmek için aşağıdaki gibi bir [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/composite-design-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>decorator design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/decorator-design-pattern/</link>
		<comments>http://code.internet.com.tr/decorator-design-pattern/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 07:40:46 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[decorator]]></category>
		<category><![CDATA[dekoratör]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=274</guid>
		<description><![CDATA[Decorator (dekoratör) tasarım şablonu yapısal (Structural Patterns) tasarım şablonları grubunda yer alır. Kullanım amacı sınıf yapısını değiştirmeden oluşturulan yeni nesneler ile yeni özelliklerin eklenmesidir. Decorator ile nesnemize yeni ek özellikler eklemiş olur. Bu tasarım şablonu yeni alt sınıf yaratmadan sınıfımıza yeni özellikler ekleyebilmemizi sağlar.

Bir örnek uygulama yaparak konuyu daha iyi kavrayalım. Bir otomobilimizin olduğunu düşünelim [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/decorator-design-pattern/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>facade design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/facade-design-pattern/</link>
		<comments>http://code.internet.com.tr/facade-design-pattern/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 04:43:03 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[cephe]]></category>
		<category><![CDATA[facade]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=266</guid>
		<description><![CDATA[Facede (cephe) tasarım şablonu yapısal ( Structural Patterns ) tasarım şablonları grubunda yer alır. Facade kullanmaktaki amacımız yeni birşey yaratmak değil, işleyen sistemi daha basit bir şekilde çözmektir.
Bazı işlemleri yapmak için 4-5 tane nesne türetebiliriz ve bu nesnelerin fonksiyonlarını kullanırız. Bir işlem için yazacağımız kod 10-15 satır bulabilir ve bu işlemide sıklıkla tekrarlıyor olabilirz. Bu [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/facade-design-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>adapter design pattern &#8211; php</title>
		<link>http://code.internet.com.tr/adapter-design-pattern/</link>
		<comments>http://code.internet.com.tr/adapter-design-pattern/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 02:22:54 +0000</pubDate>
		<dc:creator>Emre Çevik</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[adaptör]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[structural]]></category>
		<category><![CDATA[tasarım şablonu]]></category>

		<guid isPermaLink="false">http://code.internet.com.tr/?p=257</guid>
		<description><![CDATA[Adapter (adaptör) tasarım şablonu davranışsal (Structural Patterns) tasarım şablonudur ve var olan 2 sınıfı bir birine bağlama görevi görür. Böylece bu birbirine bağladığımız iki sınıfın eski yapılarını korumuş oluruz.
Konuyu daha iyi anlamak için örneğimize göz atalım.
Örneğimizde 2 adet sınıfımız olmalı ve biz Adapter sınıfı ile bunları bir birine bağlamalıyız. Örnek olarak 2 sınavda alınan notların [...]]]></description>
		<wfw:commentRss>http://code.internet.com.tr/adapter-design-pattern/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
