SlideShare a Scribd company logo
Tasarım Desenleri ve PHP
İmplementasyonları
İbrahim Gündüz
php-ist '13
Tasarım Deseni Nedir ?
Sürekli karşılaşılan tasarımsal sorunlara
esnek, yeniden kullanılabilir, bağımlılıkları
azaltan ve başarısı kanıtlanmış çözümler
sunmak üzere kullanılan kalıplardır.
Neden Tasarım Desenlerini
Kullanmalıyım ?
● Temel nesne yönelimli
programlama prensiplerine
uygun yazılım geliştirme
● Kaliteli ve yeniden
kullanılabilir kod tabanı
● Zamandan ve iş gücünden
tasarruf
Hangi Desen Nerede Kullanılmalı ?
Factory Method
Observer
Strategy
Command
?!!??...
Gerçek Dünyadan
Örnekler
Müşterilerimize iki farklı tipte indirim
kuponu kullandırırız:
Elektronik Ticaret Sitelerinde İndirim
Kuponu Hesaplama
Yüzdelik indirim
yapan kuponlar
Sabit tutarlı indirim
yapan kuponlar
Strateji Tasarım Deseni
(Strategy Design Pattern)
Strateji tasarım deseni, bir işlemin birden çok
metodoloji ile yapılabildiği durumlarda kullanılır.
Biraz da
kodlayalım :)
Elektronik Ticaret Sitelerinde Sepet
Tutarı Hesaplama
Vergi Tutarlarının
Hesaplanması
İndirim Tutarının
Hesaplanması
Kargo MaliyetiAlışveriş Tutarının
Hesaplanması
Komut Tasarım Deseni
(Command Design Pattern)
Komut tasarım deseni, işlevlerin sarmalanarak
ana programın dışına alınması gerektiği hallerde
kullanılır.
Biraz da
kodlayalım :)
Ödeme Sistemi Entegrasyonları
Fabrika Tasarım Deseni
(Factory Design Pattern)
Fabrika tasarım deseni, sınıf üretimi işlevinin
başka bir sınıfın metoduna devredilmesi gerektiği
durumlarda kullanılır.
Biraz da
kodlayalım :)
Olay Güdümlü Programlama
Gözlemci Tasarım Deseni
(Observer Design Pattern)
Gözlemci tasarım deseni, sistemeki bir obje
durum değiştirdiğinde dinlemedeki gözlemcilerin
haberdar edilmesi gerektiği durumlarda kullanılır.
Biraz da
kodlayalım :)
Sorular
?
Teşekkürler :)
Twitter:
http://twitter.com/ibrahimgunduz34/
Blog:
http://www.ibrahimgunduz.net/
Github:
http://www.github.com/ibrahimgunduz34/
Tasarım Desenleri ve PHP Implementasyonları

More Related Content

Featured (20)

PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
 
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
 
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
 
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
 
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
PDF
Everything You Need To Know About ChatGPT
Expeed Software
 
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
PDF
Skeleton Culture Code
Skeleton Technologies
 
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
 
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
PDF
Getting into the tech field. what next
Tessa Mero
 
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
 
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
 
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
 
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
 
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 

Tasarım Desenleri ve PHP Implementasyonları