SlideShare a Scribd company logo
A Few Design PatternsStrategy, Template, Factory
StrategyLet client and algorithm change independently
StrategyLet client and algorithm change independently
Template MethodDefine algorithm skeleton, defer some steps to subclasses
Template MethodDefine algorithm skeleton, defer some steps to subclassesrun(data):	format()	-> commonrunFFT()	-> template	decode()	-> common
Factory MethodDefine an interface to create different algorithmsSeparate object definition, creation and use.

More Related Content

PDF
Nbled catalogue
PPTX
Pemetaan materi bab 1
PPTX
Link Building Post Penguin. SEO In a Penguin filled world.
PPTX
Desarrollo y aprendizaje
PDF
Evolving for Multiple Screens
PPT
Building mobile teams and getting a product to market
PDF
Study: The Future of VR, AR and Self-Driving Cars
Nbled catalogue
Pemetaan materi bab 1
Link Building Post Penguin. SEO In a Penguin filled world.
Desarrollo y aprendizaje
Evolving for Multiple Screens
Building mobile teams and getting a product to market
Study: The Future of VR, AR and Self-Driving Cars

More from sgleadow (12)

PDF
Evolving Mobile Architectures @ Mi9
PDF
Mobile: more than just an app
PDF
Evolving Mobile Architectures
KEY
iOS Unit Testing
PDF
iOS app case study
KEY
Agile iOS
KEY
iOS View Coordinators
KEY
Frank iOS Testing
PDF
Multithreaded Data Transport
PPT
GPU Programming
KEY
Cocoa Design Patterns
KEY
Beginning iPhone Development
Evolving Mobile Architectures @ Mi9
Mobile: more than just an app
Evolving Mobile Architectures
iOS Unit Testing
iOS app case study
Agile iOS
iOS View Coordinators
Frank iOS Testing
Multithreaded Data Transport
GPU Programming
Cocoa Design Patterns
Beginning iPhone Development
Ad

A few design patterns

Editor's Notes

  • #2: Initiative for Innovative Computing