SlideShare a Scribd company logo
1
Presented by:
- Nozha KANNOUF
- Safaâ ELOUAHABI
- Sanae BEKKAR
Supervised by:
Mr. ABDALAOUI
Introduction to DesignIntroduction to Design
PatternPattern
Oujda Med First University
National College of Applied Sciences
Department of Computer Engineering
Introduction
02/06/2007 2
PlanPlan
Why design patterns ?
What is a design patterns ?
The patterns elements
Types of design patterns
Describing design patterns
The catalog of design patterns
Examples of design patterns
Conclusion
30/04/2009 3
WhyWhy Design Patterns?Design Patterns?
The DP satisfy this need for good ,simple and reusable solutions.
DP catalog common interactions between objects that
programmers have often found useful.
02/06/2007 4
Difficulties of ObjectDifficulties of Object--Oriented DesignOriented Design
Oriented-Object Design
find pertinent objects,
factor them into classes at the right granularity,
define class interfaces and inheritance hierarchies,
and establish key relationships among them.
02/06/2007 5
Difficulties of ObjectDifficulties of Object--Oriented DesignOriented Design
A reusable and flexible design is difficult if not
impossible to get “right” the first time.
Experienced OO designers do make good designs.
Whereas , New designers are overwhelmed by the
options available and tend to fall back on non-OO
techniques they’ve used before.
What’s their difference?
02/06/2007 6
PatternsPatterns
When they find a good solution, they use it
again and again – pattern.
A designer who is familiar with such patterns
can apply them immediately to design
problems without having to rediscover them.
02/06/2007 7
What is a design pattern?What is a design pattern?
02/06/2007 8
Design patternsDesign patterns
"Each pattern describes a problem which
occurs over and over again in our
environment, and then describes the core of
the solution to that problem, in such a way
that you can use this solution a million times
over, without ever doing it the same way
twice"
[Christopher Alexander]
02/06/2007 9
Design PatternDesign Pattern
Design patterns are class combinations and
accompanying algorithms that fulfill common design
purposes.
Design patterns are descriptions of communicating
objects and classes that are customized to solve a general
design problem in a particular context.
02/06/2007 10
In software engineering, a design pattern is a general
reusable solution to a commonly occurring problem in
software design. A design pattern is not a finished design
that can be transformed directly into code. It is a
description or template for how to solve a problem that
can be used in many different situations. Object-oriented
design patterns typically show relationships and
interactions between classes or objects, without specifying
the final application classes or objects that are involved
The essential elements of a patternThe essential elements of a pattern
02/06/2007 12
Pattern elementsPattern elements
Name
A meaningful pattern identifier
Problem description
When to apply the pattern
Solution description
Elements that make up the pattern, their relationships,
responsibilities, and collaborations.
Consequences
The results and trade-offs of applying the pattern
02/06/2007 13
Types of design patternTypes of design pattern
02/06/2007 14
Types of Design PatternsTypes of Design Patterns
Creational patterns
Creating a collection of objects in flexible ways.
Structural patterns
Representing a collection of related objects.
Behavioral patterns
Capturing behavior among a collection of objects.
02/06/2007 15
Describing Design PatternsDescribing Design Patterns
02/06/2007 16
Describing Design PatternsDescribing Design Patterns
Intent
short description of the pattern & its purpose
Also Known As
Any aliases this pattern is known by
Motivation
motivating scenario demonstrating pattern’s use
Applicability
circumstances in which pattern applies
Structure
graphical representation of the pattern using modified UML notation
Participants
participating classes and/or objects & their responsibilities
02/06/2007 17
Describing Design PatternsDescribing Design Patterns
Collaborations
how participants cooperate to carry out their responsibilities
Consequences
the results of application, benefits, liabilities
Implementation
pitfalls, hints, techniques, plus language-dependent issues
Sample Code
sample implementations in C++, Java, C#, Smalltalk, C, etc.
Known Uses
examples drawn from existing systems
Related Patterns
discussion of other patterns that relate to this one
02/06/2007 18
The Catalog of Design Patterns
02/06/2007 19
The Catalog of Design Patterns
Two criteria
Purpose: what a pattern does
Creational: concern the process of object creation
Structural: the composition of classes or objects
Behavioral: characterize the ways in which classes or objects
interact and distribute responsibility
Scope: whether the pattern applies primarily to
classes or to objects
02/06/2007 20
The Catalog of Design Patterns
02/06/2007 21
Examples of design patternsExamples of design patterns
02/06/2007 22
23
Intent
create families of related objects without specifying subclass names
Applicability
when clients cannot anticipate groups of classes to instantiate
ABSTRACT FACTORY object creational
02/06/2007 24
Structure
Intent
"compose" objects into tree structures to represent part-whole
hierarchies.
Applicability
when clients should ignore the difference between
compositions of objects and individual objects
02/06/2007 25
COMPOSITE object structural
02/06/2007 26
Structure
Intent
encapsulate the request for a service
Applicability
to parameterize objects with an action to perform
to specify, file, & execute requests at different times.
02/06/2007 27
Cammand/1 (object behavioral)
28
Structure
But…
02/06/2007 29
02/06/2007 30
1.Do not lead to direct code reuse
2. Complex in nature
3. They are deceptively simple
4. They are validated by experience and discussion
5. They consume more memory because of generalized
format they are written, to store any kind of data
6. Design patterns may increase or decrease the
understandability of a design or implementation
References and related resource
[Knuth] Computer Programming as an Art.
http://fresh.homeunix.net/~luke/misc/knuth-turingaward.pdf
[Columbia] Code convention.
http://nsl.cs.columbia.edu/projects/projects.html
Design pattern catalog.
http://www.dofactory.com/Patterns/Patterns.aspx#list
Introduction to Software Engineering
http://sunset.usc.edu/classes/cs377_2004/

More Related Content

What's hot

Design Patterns
Design PatternsDesign Patterns
Design Patternssoms_1
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
Asma CHERIF
 
Creational pattern
Creational patternCreational pattern
Creational pattern
Himanshu
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
Manish Kumar
 
Let us understand design pattern
Let us understand design patternLet us understand design pattern
Let us understand design pattern
Mindfire Solutions
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
Satheesh Sukumaran
 
Software Engineering - chp4- design patterns
Software Engineering - chp4- design patternsSoftware Engineering - chp4- design patterns
Software Engineering - chp4- design patterns
Lilia Sfaxi
 
Pressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelsPressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelssaurabhshertukde
 
Design pattern
Design patternDesign pattern
Design pattern
Thibaut De Broca
 
Java Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | EdurekaJava Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | Edureka
Edureka!
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Design Patterns Illustrated
Design Patterns IllustratedDesign Patterns Illustrated
Design Patterns Illustrated
Herman Peeren
 
Software design patterns ppt
Software design patterns pptSoftware design patterns ppt
Software design patterns ppt
mkruthika
 
Uml in software engineering
Uml in software engineeringUml in software engineering
Uml in software engineering
Mubashir Jutt
 
Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)
paramisoft
 
Design Pattern For C# Part 1
Design Pattern For C# Part 1Design Pattern For C# Part 1
Design Pattern For C# Part 1
Shahzad
 
The Singleton Pattern Presentation
The Singleton Pattern PresentationThe Singleton Pattern Presentation
The Singleton Pattern Presentation
JAINIK PATEL
 
DESIGN PATTERNS: Strategy Patterns
DESIGN PATTERNS: Strategy PatternsDESIGN PATTERNS: Strategy Patterns

What's hot (20)

Design Patterns
Design PatternsDesign Patterns
Design Patterns
 
Design Patterns - General Introduction
Design Patterns - General IntroductionDesign Patterns - General Introduction
Design Patterns - General Introduction
 
Creational pattern
Creational patternCreational pattern
Creational pattern
 
Design Pattern
Design PatternDesign Pattern
Design Pattern
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
 
Let us understand design pattern
Let us understand design patternLet us understand design pattern
Let us understand design pattern
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
 
Builder pattern
Builder patternBuilder pattern
Builder pattern
 
Software Engineering - chp4- design patterns
Software Engineering - chp4- design patternsSoftware Engineering - chp4- design patterns
Software Engineering - chp4- design patterns
 
Pressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-modelsPressman ch-3-prescriptive-process-models
Pressman ch-3-prescriptive-process-models
 
Design pattern
Design patternDesign pattern
Design pattern
 
Java Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | EdurekaJava Design Patterns Tutorial | Edureka
Java Design Patterns Tutorial | Edureka
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Design Patterns Illustrated
Design Patterns IllustratedDesign Patterns Illustrated
Design Patterns Illustrated
 
Software design patterns ppt
Software design patterns pptSoftware design patterns ppt
Software design patterns ppt
 
Uml in software engineering
Uml in software engineeringUml in software engineering
Uml in software engineering
 
Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)Design pattern (Abstract Factory & Singleton)
Design pattern (Abstract Factory & Singleton)
 
Design Pattern For C# Part 1
Design Pattern For C# Part 1Design Pattern For C# Part 1
Design Pattern For C# Part 1
 
The Singleton Pattern Presentation
The Singleton Pattern PresentationThe Singleton Pattern Presentation
The Singleton Pattern Presentation
 
DESIGN PATTERNS: Strategy Patterns
DESIGN PATTERNS: Strategy PatternsDESIGN PATTERNS: Strategy Patterns
DESIGN PATTERNS: Strategy Patterns
 

Similar to Introduction to Design Pattern

Unit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptxUnit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptx
DrYogeshDeshmukh1
 
Unit iii design patterns 9
Unit iii design patterns 9Unit iii design patterns 9
Unit iii design patterns 9
kiruthikamurugesan2628
 
Cse 6007 fall2012
Cse 6007 fall2012Cse 6007 fall2012
Cse 6007 fall2012rhrashel
 
Cs 1023 lec 9 design pattern (week 2)
Cs 1023 lec 9 design pattern (week 2)Cs 1023 lec 9 design pattern (week 2)
Cs 1023 lec 9 design pattern (week 2)stanbridge
 
Module 2 design patterns-2
Module 2   design patterns-2Module 2   design patterns-2
Module 2 design patterns-2
Ankit Dubey
 
PATTERNS01 - An Introduction to Design Patterns
PATTERNS01 - An Introduction to Design PatternsPATTERNS01 - An Introduction to Design Patterns
PATTERNS01 - An Introduction to Design Patterns
Michael Heron
 
SADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdfSADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdf
B.T.L.I.T
 
DP PPTS by BK.pptx
DP PPTS by BK.pptxDP PPTS by BK.pptx
DP PPTS by BK.pptx
chandrasenareddychan
 
.Net design pattern
.Net design pattern.Net design pattern
.Net design pattern
Mohamed Zakarya Abdelgawad
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
Design in construction
Design in constructionDesign in construction
Design in construction
Asha Sari
 
Ooad (object oriented analysis design)
Ooad (object oriented analysis design)Ooad (object oriented analysis design)
Ooad (object oriented analysis design)
Gagandeep Nanda
 
Design patterns
Design patternsDesign patterns
Design patterns
Kolade Ibrahim Arowolo
 
Design & Evaluation of the Goal-Oriented Design Knowledge Library
Design & Evaluation of the Goal-Oriented Design Knowledge LibraryDesign & Evaluation of the Goal-Oriented Design Knowledge Library
Design & Evaluation of the Goal-Oriented Design Knowledge Libraryandrewhilts
 
Gof Design Pattern
Gof   Design PatternGof   Design Pattern
Gof Design Patternguesta4d934
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
Dr. C.V. Suresh Babu
 
Object Oriented Approach for Software Development
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
Rishabh Soni
 
Design Pattern - Introduction
Design Pattern - IntroductionDesign Pattern - Introduction
Design Pattern - Introduction
Mudasir Qazi
 
04 designing architectures
04 designing architectures04 designing architectures
04 designing architecturesMajong DevJfu
 

Similar to Introduction to Design Pattern (20)

Unit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptxUnit No 6 Design Patterns.pptx
Unit No 6 Design Patterns.pptx
 
Unit iii design patterns 9
Unit iii design patterns 9Unit iii design patterns 9
Unit iii design patterns 9
 
Cse 6007 fall2012
Cse 6007 fall2012Cse 6007 fall2012
Cse 6007 fall2012
 
Cs 1023 lec 9 design pattern (week 2)
Cs 1023 lec 9 design pattern (week 2)Cs 1023 lec 9 design pattern (week 2)
Cs 1023 lec 9 design pattern (week 2)
 
Module 2 design patterns-2
Module 2   design patterns-2Module 2   design patterns-2
Module 2 design patterns-2
 
PATTERNS01 - An Introduction to Design Patterns
PATTERNS01 - An Introduction to Design PatternsPATTERNS01 - An Introduction to Design Patterns
PATTERNS01 - An Introduction to Design Patterns
 
SADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdfSADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdf
 
DP PPTS by BK.pptx
DP PPTS by BK.pptxDP PPTS by BK.pptx
DP PPTS by BK.pptx
 
.Net design pattern
.Net design pattern.Net design pattern
.Net design pattern
 
Design in construction
Design in constructionDesign in construction
Design in construction
 
Design in construction
Design in constructionDesign in construction
Design in construction
 
Ooad (object oriented analysis design)
Ooad (object oriented analysis design)Ooad (object oriented analysis design)
Ooad (object oriented analysis design)
 
Articulo acm
Articulo acmArticulo acm
Articulo acm
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Design & Evaluation of the Goal-Oriented Design Knowledge Library
Design & Evaluation of the Goal-Oriented Design Knowledge LibraryDesign & Evaluation of the Goal-Oriented Design Knowledge Library
Design & Evaluation of the Goal-Oriented Design Knowledge Library
 
Gof Design Pattern
Gof   Design PatternGof   Design Pattern
Gof Design Pattern
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Object Oriented Approach for Software Development
Object Oriented Approach for Software DevelopmentObject Oriented Approach for Software Development
Object Oriented Approach for Software Development
 
Design Pattern - Introduction
Design Pattern - IntroductionDesign Pattern - Introduction
Design Pattern - Introduction
 
04 designing architectures
04 designing architectures04 designing architectures
04 designing architectures
 

More from Sanae BEKKAR

[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
Sanae BEKKAR
 
Découvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
Découvrons Oracle Cloud Platform for Integration - Oracle Integration CloudDécouvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
Découvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
Sanae BEKKAR
 
Introduction à BPMN 2.0 - Business Process Modeling Notation
Introduction à BPMN 2.0 - Business Process Modeling NotationIntroduction à BPMN 2.0 - Business Process Modeling Notation
Introduction à BPMN 2.0 - Business Process Modeling Notation
Sanae BEKKAR
 
Ce qu'il faut savoir sur la BPM - Business Process Management
Ce qu'il faut savoir sur la BPM - Business Process ManagementCe qu'il faut savoir sur la BPM - Business Process Management
Ce qu'il faut savoir sur la BPM - Business Process Management
Sanae BEKKAR
 
L'Open Source : Domaines d'application , Solutions Open Source , etc.
L'Open Source : Domaines d'application , Solutions Open Source , etc. L'Open Source : Domaines d'application , Solutions Open Source , etc.
L'Open Source : Domaines d'application , Solutions Open Source , etc.
Sanae BEKKAR
 
La comptabilité et la finance sous OpenERP 7.0
La comptabilité et la finance sous OpenERP 7.0La comptabilité et la finance sous OpenERP 7.0
La comptabilité et la finance sous OpenERP 7.0
Sanae BEKKAR
 
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
Sanae BEKKAR
 
Gestion des ressources humaines- sous OpenERP 7.0
Gestion des ressources humaines- sous OpenERP 7.0Gestion des ressources humaines- sous OpenERP 7.0
Gestion des ressources humaines- sous OpenERP 7.0
Sanae BEKKAR
 
La solution open source OpenERP 7.0
La solution open source OpenERP 7.0La solution open source OpenERP 7.0
La solution open source OpenERP 7.0
Sanae BEKKAR
 
Qu’est ce qu’un projet ERP - Entreprise Resource Planning -
Qu’est ce qu’un  projet ERP - Entreprise Resource Planning -Qu’est ce qu’un  projet ERP - Entreprise Resource Planning -
Qu’est ce qu’un projet ERP - Entreprise Resource Planning -
Sanae BEKKAR
 
Installation configuration OpenERP 7 - Windows
Installation   configuration OpenERP 7 - WindowsInstallation   configuration OpenERP 7 - Windows
Installation configuration OpenERP 7 - Windows
Sanae BEKKAR
 
Gestion de la chaîne logistique -OpenERP
Gestion de la chaîne logistique -OpenERPGestion de la chaîne logistique -OpenERP
Gestion de la chaîne logistique -OpenERPSanae BEKKAR
 
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
Sanae BEKKAR
 

More from Sanae BEKKAR (13)

[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
[Oracle Webcast] Discover the Oracle Blockchain Platform through the eyes of ...
 
Découvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
Découvrons Oracle Cloud Platform for Integration - Oracle Integration CloudDécouvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
Découvrons Oracle Cloud Platform for Integration - Oracle Integration Cloud
 
Introduction à BPMN 2.0 - Business Process Modeling Notation
Introduction à BPMN 2.0 - Business Process Modeling NotationIntroduction à BPMN 2.0 - Business Process Modeling Notation
Introduction à BPMN 2.0 - Business Process Modeling Notation
 
Ce qu'il faut savoir sur la BPM - Business Process Management
Ce qu'il faut savoir sur la BPM - Business Process ManagementCe qu'il faut savoir sur la BPM - Business Process Management
Ce qu'il faut savoir sur la BPM - Business Process Management
 
L'Open Source : Domaines d'application , Solutions Open Source , etc.
L'Open Source : Domaines d'application , Solutions Open Source , etc. L'Open Source : Domaines d'application , Solutions Open Source , etc.
L'Open Source : Domaines d'application , Solutions Open Source , etc.
 
La comptabilité et la finance sous OpenERP 7.0
La comptabilité et la finance sous OpenERP 7.0La comptabilité et la finance sous OpenERP 7.0
La comptabilité et la finance sous OpenERP 7.0
 
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
Module MRP (Manufacturing Resource Planning ) sous OpenERP 7.0
 
Gestion des ressources humaines- sous OpenERP 7.0
Gestion des ressources humaines- sous OpenERP 7.0Gestion des ressources humaines- sous OpenERP 7.0
Gestion des ressources humaines- sous OpenERP 7.0
 
La solution open source OpenERP 7.0
La solution open source OpenERP 7.0La solution open source OpenERP 7.0
La solution open source OpenERP 7.0
 
Qu’est ce qu’un projet ERP - Entreprise Resource Planning -
Qu’est ce qu’un  projet ERP - Entreprise Resource Planning -Qu’est ce qu’un  projet ERP - Entreprise Resource Planning -
Qu’est ce qu’un projet ERP - Entreprise Resource Planning -
 
Installation configuration OpenERP 7 - Windows
Installation   configuration OpenERP 7 - WindowsInstallation   configuration OpenERP 7 - Windows
Installation configuration OpenERP 7 - Windows
 
Gestion de la chaîne logistique -OpenERP
Gestion de la chaîne logistique -OpenERPGestion de la chaîne logistique -OpenERP
Gestion de la chaîne logistique -OpenERP
 
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
Module CRM(Customer Relationship Management ) sous OpenERP7 (Partie .2.))
 

Recently uploaded

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 

Recently uploaded (20)

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 

Introduction to Design Pattern

  • 1. 1 Presented by: - Nozha KANNOUF - Safaâ ELOUAHABI - Sanae BEKKAR Supervised by: Mr. ABDALAOUI Introduction to DesignIntroduction to Design PatternPattern Oujda Med First University National College of Applied Sciences Department of Computer Engineering
  • 3. PlanPlan Why design patterns ? What is a design patterns ? The patterns elements Types of design patterns Describing design patterns The catalog of design patterns Examples of design patterns Conclusion 30/04/2009 3
  • 4. WhyWhy Design Patterns?Design Patterns? The DP satisfy this need for good ,simple and reusable solutions. DP catalog common interactions between objects that programmers have often found useful. 02/06/2007 4
  • 5. Difficulties of ObjectDifficulties of Object--Oriented DesignOriented Design Oriented-Object Design find pertinent objects, factor them into classes at the right granularity, define class interfaces and inheritance hierarchies, and establish key relationships among them. 02/06/2007 5
  • 6. Difficulties of ObjectDifficulties of Object--Oriented DesignOriented Design A reusable and flexible design is difficult if not impossible to get “right” the first time. Experienced OO designers do make good designs. Whereas , New designers are overwhelmed by the options available and tend to fall back on non-OO techniques they’ve used before. What’s their difference? 02/06/2007 6
  • 7. PatternsPatterns When they find a good solution, they use it again and again – pattern. A designer who is familiar with such patterns can apply them immediately to design problems without having to rediscover them. 02/06/2007 7
  • 8. What is a design pattern?What is a design pattern? 02/06/2007 8
  • 9. Design patternsDesign patterns "Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice" [Christopher Alexander] 02/06/2007 9
  • 10. Design PatternDesign Pattern Design patterns are class combinations and accompanying algorithms that fulfill common design purposes. Design patterns are descriptions of communicating objects and classes that are customized to solve a general design problem in a particular context. 02/06/2007 10
  • 11. In software engineering, a design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved
  • 12. The essential elements of a patternThe essential elements of a pattern 02/06/2007 12
  • 13. Pattern elementsPattern elements Name A meaningful pattern identifier Problem description When to apply the pattern Solution description Elements that make up the pattern, their relationships, responsibilities, and collaborations. Consequences The results and trade-offs of applying the pattern 02/06/2007 13
  • 14. Types of design patternTypes of design pattern 02/06/2007 14
  • 15. Types of Design PatternsTypes of Design Patterns Creational patterns Creating a collection of objects in flexible ways. Structural patterns Representing a collection of related objects. Behavioral patterns Capturing behavior among a collection of objects. 02/06/2007 15
  • 16. Describing Design PatternsDescribing Design Patterns 02/06/2007 16
  • 17. Describing Design PatternsDescribing Design Patterns Intent short description of the pattern & its purpose Also Known As Any aliases this pattern is known by Motivation motivating scenario demonstrating pattern’s use Applicability circumstances in which pattern applies Structure graphical representation of the pattern using modified UML notation Participants participating classes and/or objects & their responsibilities 02/06/2007 17
  • 18. Describing Design PatternsDescribing Design Patterns Collaborations how participants cooperate to carry out their responsibilities Consequences the results of application, benefits, liabilities Implementation pitfalls, hints, techniques, plus language-dependent issues Sample Code sample implementations in C++, Java, C#, Smalltalk, C, etc. Known Uses examples drawn from existing systems Related Patterns discussion of other patterns that relate to this one 02/06/2007 18
  • 19. The Catalog of Design Patterns 02/06/2007 19
  • 20. The Catalog of Design Patterns Two criteria Purpose: what a pattern does Creational: concern the process of object creation Structural: the composition of classes or objects Behavioral: characterize the ways in which classes or objects interact and distribute responsibility Scope: whether the pattern applies primarily to classes or to objects 02/06/2007 20
  • 21. The Catalog of Design Patterns 02/06/2007 21
  • 22. Examples of design patternsExamples of design patterns 02/06/2007 22
  • 23. 23 Intent create families of related objects without specifying subclass names Applicability when clients cannot anticipate groups of classes to instantiate ABSTRACT FACTORY object creational
  • 25. Intent "compose" objects into tree structures to represent part-whole hierarchies. Applicability when clients should ignore the difference between compositions of objects and individual objects 02/06/2007 25 COMPOSITE object structural
  • 27. Intent encapsulate the request for a service Applicability to parameterize objects with an action to perform to specify, file, & execute requests at different times. 02/06/2007 27 Cammand/1 (object behavioral)
  • 30. 02/06/2007 30 1.Do not lead to direct code reuse 2. Complex in nature 3. They are deceptively simple 4. They are validated by experience and discussion 5. They consume more memory because of generalized format they are written, to store any kind of data 6. Design patterns may increase or decrease the understandability of a design or implementation
  • 31. References and related resource [Knuth] Computer Programming as an Art. http://fresh.homeunix.net/~luke/misc/knuth-turingaward.pdf [Columbia] Code convention. http://nsl.cs.columbia.edu/projects/projects.html Design pattern catalog. http://www.dofactory.com/Patterns/Patterns.aspx#list Introduction to Software Engineering http://sunset.usc.edu/classes/cs377_2004/