SlideShare a Scribd company logo
1 of 10
Patterns pt2
Low coupling, high cohesion!
MVC
MVP
MVVM
Unity container
•
•
•
•

Inversion of Control Container
Dependency Injection
Factory
BuilderStrategy
Dependency Injection
• Сервіс1, маючи зв’язок на інший сервіс2, не
повинен знати яким чином сервіс2 буде
створений, сервісу1 зразу після створення
повинен ін’єктуватися сервіс2.
Builder
• Алгоритм створення складного об'єкта не
повинен залежати від того, з яких частин
складається об'єкт та як вони стикуються
поміж собою;
• Процес конструювання повинен
забезпечити різні представлення об'єкта,
що конструюється.
Builder vs Factory
• Основна відмінність – це те, що Builder
сфокусований на створенні складних
об’єктів крок за кроком (поетапно, кожний
з етапів - незалежний один від одного)
Event broker
• Шаблон передачі повідомлень.
• Видавець (publisher) не знає про
підписників (subscribers).
• Підписники виявляють зацікавленість в
певних класах повідмолень, і приймають
повідомлення які їх цікавлять, без знання
того, які видавці їх публікують.

More Related Content

Viewers also liked

Code Practices
Code PracticesCode Practices
Code Practiceseleksdev
 
Frontend basics
Frontend basicsFrontend basics
Frontend basicseleksdev
 
Windows service
Windows serviceWindows service
Windows serviceeleksdev
 
.NET Platform. C# Basics
.NET Platform. C# Basics.NET Platform. C# Basics
.NET Platform. C# Basicseleksdev
 
If unit2 summary
If unit2 summaryIf unit2 summary
If unit2 summaryeleksdev
 
Web service lecture
Web service lectureWeb service lecture
Web service lectureeleksdev
 
SDLC. QA Role
SDLC. QA RoleSDLC. QA Role
SDLC. QA Roleeleksdev
 
C++ Basics
C++ BasicsC++ Basics
C++ Basicseleksdev
 
Improving rpc bkp
Improving rpc bkpImproving rpc bkp
Improving rpc bkpeleksdev
 
Version control
Version controlVersion control
Version controleleksdev
 
Mvvw patterns
Mvvw patternsMvvw patterns
Mvvw patternseleksdev
 
Data Structures
Data StructuresData Structures
Data Structureseleksdev
 
Design patterns
Design patternsDesign patterns
Design patternseleksdev
 
#2 integration + ui tests
#2 integration + ui tests#2 integration + ui tests
#2 integration + ui testseleksdev
 
Advanced C++ concepts
Advanced C++ conceptsAdvanced C++ concepts
Advanced C++ conceptseleksdev
 
Angular. presentation
Angular. presentationAngular. presentation
Angular. presentationeleksdev
 
Communication in android
Communication in androidCommunication in android
Communication in androideleksdev
 

Viewers also liked (20)

Rpc
RpcRpc
Rpc
 
Code Practices
Code PracticesCode Practices
Code Practices
 
Frontend basics
Frontend basicsFrontend basics
Frontend basics
 
Windows service
Windows serviceWindows service
Windows service
 
.NET Platform. C# Basics
.NET Platform. C# Basics.NET Platform. C# Basics
.NET Platform. C# Basics
 
If unit2 summary
If unit2 summaryIf unit2 summary
If unit2 summary
 
Web service lecture
Web service lectureWeb service lecture
Web service lecture
 
DAL
DALDAL
DAL
 
SDLC. QA Role
SDLC. QA RoleSDLC. QA Role
SDLC. QA Role
 
tsql
tsqltsql
tsql
 
C++ Basics
C++ BasicsC++ Basics
C++ Basics
 
Improving rpc bkp
Improving rpc bkpImproving rpc bkp
Improving rpc bkp
 
Version control
Version controlVersion control
Version control
 
Mvvw patterns
Mvvw patternsMvvw patterns
Mvvw patterns
 
Data Structures
Data StructuresData Structures
Data Structures
 
Design patterns
Design patternsDesign patterns
Design patterns
 
#2 integration + ui tests
#2 integration + ui tests#2 integration + ui tests
#2 integration + ui tests
 
Advanced C++ concepts
Advanced C++ conceptsAdvanced C++ concepts
Advanced C++ concepts
 
Angular. presentation
Angular. presentationAngular. presentation
Angular. presentation
 
Communication in android
Communication in androidCommunication in android
Communication in android
 

More from eleksdev

Lecture android best practices
Lecture   android best practicesLecture   android best practices
Lecture android best practiceseleksdev
 
Hello android world
Hello android worldHello android world
Hello android worldeleksdev
 
Android location and sensors API
Android location and sensors APIAndroid location and sensors API
Android location and sensors APIeleksdev
 
Lecture java basics
Lecture   java basicsLecture   java basics
Lecture java basicseleksdev
 
Css animation, html5 api
Css animation, html5 apiCss animation, html5 api
Css animation, html5 apieleksdev
 
G rpc lection1_theory_bkp2
G rpc lection1_theory_bkp2G rpc lection1_theory_bkp2
G rpc lection1_theory_bkp2eleksdev
 
G rpc lection1
G rpc lection1G rpc lection1
G rpc lection1eleksdev
 
Aspnet core
Aspnet coreAspnet core
Aspnet coreeleksdev
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...eleksdev
 
SDLC. UX Role
SDLC. UX RoleSDLC. UX Role
SDLC. UX Roleeleksdev
 
SDLC. BA Role
SDLC. BA RoleSDLC. BA Role
SDLC. BA Roleeleksdev
 
NoSQL basics
NoSQL basicsNoSQL basics
NoSQL basicseleksdev
 
sql introduction
sql introductionsql introduction
sql introductioneleksdev
 

More from eleksdev (13)

Lecture android best practices
Lecture   android best practicesLecture   android best practices
Lecture android best practices
 
Hello android world
Hello android worldHello android world
Hello android world
 
Android location and sensors API
Android location and sensors APIAndroid location and sensors API
Android location and sensors API
 
Lecture java basics
Lecture   java basicsLecture   java basics
Lecture java basics
 
Css animation, html5 api
Css animation, html5 apiCss animation, html5 api
Css animation, html5 api
 
G rpc lection1_theory_bkp2
G rpc lection1_theory_bkp2G rpc lection1_theory_bkp2
G rpc lection1_theory_bkp2
 
G rpc lection1
G rpc lection1G rpc lection1
G rpc lection1
 
Aspnet core
Aspnet coreAspnet core
Aspnet core
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
 
SDLC. UX Role
SDLC. UX RoleSDLC. UX Role
SDLC. UX Role
 
SDLC. BA Role
SDLC. BA RoleSDLC. BA Role
SDLC. BA Role
 
NoSQL basics
NoSQL basicsNoSQL basics
NoSQL basics
 
sql introduction
sql introductionsql introduction
sql introduction
 

14 Patterns pt2

  • 2. Low coupling, high cohesion!
  • 3. MVC
  • 4. MVP
  • 6. Unity container • • • • Inversion of Control Container Dependency Injection Factory BuilderStrategy
  • 7. Dependency Injection • Сервіс1, маючи зв’язок на інший сервіс2, не повинен знати яким чином сервіс2 буде створений, сервісу1 зразу після створення повинен ін’єктуватися сервіс2.
  • 8. Builder • Алгоритм створення складного об'єкта не повинен залежати від того, з яких частин складається об'єкт та як вони стикуються поміж собою; • Процес конструювання повинен забезпечити різні представлення об'єкта, що конструюється.
  • 9. Builder vs Factory • Основна відмінність – це те, що Builder сфокусований на створенні складних об’єктів крок за кроком (поетапно, кожний з етапів - незалежний один від одного)
  • 10. Event broker • Шаблон передачі повідомлень. • Видавець (publisher) не знає про підписників (subscribers). • Підписники виявляють зацікавленість в певних класах повідмолень, і приймають повідомлення які їх цікавлять, без знання того, які видавці їх публікують.