Design Patterns I
Encapsulation, Observer, and Decorator CS 370 SE Practicum, Cengiz Günay
(Some slides courtesy of Eugene Agichtein and the Internets) CS 370, Günay (Emory) Design Patterns I Spring 2014 1 / 9
Design Patterns I Encapsulation, Observer, and Decorator CS 370 SE - - PowerPoint PPT Presentation
Design Patterns I Encapsulation, Observer, and Decorator CS 370 SE Practicum, Cengiz Gnay (Some slides courtesy of Eugene Agichtein and the Internets) CS 370, Gnay (Emory) Design Patterns I Spring 2014 1 / 9 Agenda Upcoming project
Encapsulation, Observer, and Decorator CS 370 SE Practicum, Cengiz Günay
(Some slides courtesy of Eugene Agichtein and the Internets) CS 370, Günay (Emory) Design Patterns I Spring 2014 1 / 9
Upcoming project milestones: Today: setup a meeting with Bob to get help about your progress 4/3 get ready to deploy! 4/10 in-class demo and functional prototype opens for testing
CS 370, Günay (Emory) Design Patterns I Spring 2014 2 / 9
Upcoming project milestones: Today: setup a meeting with Bob to get help about your progress 4/3 get ready to deploy! 4/10 in-class demo and functional prototype opens for testing Today: Some design patterns you can use. . .
CS 370, Günay (Emory) Design Patterns I Spring 2014 2 / 9
CS 370, Günay (Emory) Design Patterns I Spring 2014 3 / 9
Don’t reinvent the wheel! Re-use existing patterns!
CS 370, Günay (Emory) Design Patterns I Spring 2014 3 / 9
What’s the difference between centralized and distributed VCs? Which
Does version control help you recover from a situation where you deleted some files by mistake? If so, explain how.
How do you design software? What are some components that need designing in your project? What kind of patterns can be reused during the design of your project? If possible, give some examples.
CS 370, Günay (Emory) Design Patterns I Spring 2014 4 / 9
Click on me!
Need some volunteers Tell us about your project classes:
CS 370, Günay (Emory) Design Patterns I Spring 2014 6 / 9
Need some volunteers Tell us about your project classes:
1
Uses inheritance for what?
CS 370, Günay (Emory) Design Patterns I Spring 2014 6 / 9
Need some volunteers Tell us about your project classes:
1
Uses inheritance for what?
2
Would encapsulation be useful?
CS 370, Günay (Emory) Design Patterns I Spring 2014 6 / 9
Example of the observer pattern!
Can you think of a place that will be useful in your project?
CS 370, Günay (Emory) Design Patterns I Spring 2014 8 / 9
Can you think of a place that will be useful in your project?
◮ User notification ◮ Likes ◮ Button press in games CS 370, Günay (Emory) Design Patterns I Spring 2014 8 / 9
Scrum now! Next week: Javascript
CS 370, Günay (Emory) Design Patterns I Spring 2014 9 / 9