• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
I presentation
 

I presentation

on

  • 288 views

 

Statistics

Views

Total Views
288
Views on SlideShare
288
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    I presentation I presentation Presentation Transcript

    • DESIGN PATTERN
    • Apa itu Design Pattern ?? • Design pattern adalah solusi yang digunakan untuk menyelesaikan masalah-masalah umum yang ditemukan dalam design perangkat lunak. • Design pattern berupa template • Design pattern bukan termasuk algoritma
    • Jenis-jenis Design Pattern • Creational Patterns: 1. Abstract Factory 2. Builder 3. Factory Method 4. Prototype 5. Singleton
    • Jenis-jenis Design Pattern(cont.) • Structural Patterns: 1. Adapter 2. 3. 4. Bridge Composite Decorator 5. Facade 6. 7. Flyweight Proxy
    • Jenis-jenis Design Pattern(cont.) • Behavioral Patterns: 1. Chain of Responsbility 2. Command 3. 4. 5. 6. Interpreter Iterator Mediator Mementto 7. Observer 8. 9. 10. 11. State Strategy Template Method Visitor
    • Singleton Design Pattern Singleton artinya satu class hanya boleh mempunyai satu instance selama aplikasi berjalan
    • Singleton Pattern (problem)
    • Singleton Pattern(problem)
    • Singleton Pattern
    • Singleton Pattern
    • Factory Pattern When we use it? • When our object or component setup involves a high level of complexity • When we need to easily generate different instances of objects depending on the environment we are in • When we're working with many small objects or components that share the same properties • When composing objects with instances of other objects that need only satisfy an API contract (aka, duck typing) to work. This is useful for decoupling.
    • Factory Pattern
    • Factory Pattern Problem
    • Factory Pattern Solution
    • Facade Pattern Adalah objek yang menyediakan interface yang telah sederhana dari deretan kode yang sangat besar
    • Facade Pattern (Problem)
    • Facade Pattern
    • Adapter Design Pattern Intinya menyederhanakan interface
    • Adapter Pattern (problem) postToW all
    • Adapter Pattern
    • Adapter Pattern
    • Observer Pattern Konsep Utama dari Obserever Pattern adalah saat terdapat kelas tertentu (Observer) yang perlu mengetahui aktifitas dari kelas lain (Subject)
    • Observer Pattern Observer
    • Command Pattern Subject
    • Observer Pattern client
    • Command Pattern Intent • Encapsulate a request in an object • Allows the parameterization of clients with different requests • Allows saving the requests in a queue
    • Command Pattern Implementation
    • Command Pattern