Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CSC305 Lecture 11
Search
Javier Gonzalez-Sanchez
PRO
October 15, 2024
Programming
0
44
CSC305 Lecture 11
Individual Software Design and Development
Observer and Listener
(202410)
Javier Gonzalez-Sanchez
PRO
October 15, 2024
Tweet
Share
More Decks by Javier Gonzalez-Sanchez
See All by Javier Gonzalez-Sanchez
CSC305 Lecture 12
javiergs
PRO
0
20
CSC509 Lecture 06
javiergs
PRO
0
120
CSC305 Lecture 10
javiergs
PRO
0
19
CSC509 Lecture 05
javiergs
PRO
0
170
CSC305 Lecture 09
javiergs
PRO
0
76
CSC305 Lecture 08
javiergs
PRO
0
51
CSC509 Lecture 04
javiergs
PRO
0
160
CSC305 Lecture 07
javiergs
PRO
0
100
CSC305 Lecture 06
javiergs
PRO
0
22
Other Decks in Programming
See All in Programming
2024-10-01 dev2next - Observability for Modern JVM Applications
jonatan_ivanov
0
140
【YAPC::Hakodate 2024】TypeScriptエンジニアが感じたPerlのここが面白い
kimitashoichi
1
420
App Store Connect APIで 作業時間を増やそう
mot_techtalk
3
120
個人開発で使ってるやつを紹介する回
yohfee
1
720
Mercari AI/LLM Hackathon TeamBの発表資料
imaikosuke
0
140
.NET Aspireのクラウド対応検証: Azureと他環境での実践
ymd65536
1
560
MLOps in Mercari Group’s Trust and Safety ML Team
cjhj
1
130
Scan with Decoupled Look-back and Onesweep Radix Sort
shocker_0x15
0
130
コードレビューと私の過去と未来
jxmtst
0
310
Going Staff - Keynote edition
pragtob
0
250
急速に利用拡大を続ける飲食店向けサービスで 店内端末同士のローカル通信を追加設定なしで実現した話
whatasoda
0
120
ML-прайсинг_на_Lamoda__вошли_и_вышли__приключение_на_20_минут__Слава_Цыганков.pdf
lamodatech
0
330
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
65
4.4k
How to Ace a Technical Interview
jacobian
275
23k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
23k
Building Better People: How to give real-time feedback that sticks.
wjessup
362
19k
Testing 201, or: Great Expectations
jmmastey
38
7k
The Pragmatic Product Professional
lauravandoore
31
6.2k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
105
48k
Unsuck your backbone
ammeep
668
57k
Teambox: Starting and Learning
jrom
132
8.7k
Designing the Hi-DPI Web
ddemaree
280
34k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Transcript
Dr. Javier Gonzalez-Sanchez
[email protected]
www.javiergs.info o ffi ce: 14 -227
CSC 305 Individual Software Design and Development Lecture 11. Observers and Listeners
Previously
Context 3
GoF Patterns 4
Observer 5 Observer + update() Observable + addObserver() + notifyObservers()
+ setChanged() Teacher Student Main
Standard Solution: 1 2 3 4 5
Design Process Observer Pattern
GUI draft 8
Blueprint 9 Main Data Tower Disk Canvas Controller
Blueprint 10 👀👂 👀👂 💡 Main Data Tower Disk Canvas
Controller
Blueprint 11 👀👂 👀👂 💡 Main Data Tower Disk Canvas
Controller
Blueprint 12 Main Data Tower Disk Canvas Controller
Is this going to work? 13
Coding Observer Pattern
Blueprint 15 Main Data Tower Disk Canvas Controller
GameMain 16
https://github.com/CSC3100/Game-ToweHanoi
GameController ( a Listener) 18
https://github.com/CSC3100/Game-ToweHanoi
https://github.com/CSC3100/Game-ToweHanoi
https://github.com/CSC3100/Game-ToweHanoi
https://github.com/CSC3100/Game-ToweHanoi
https://github.com/CSC3100/Game-ToweHanoi
To be continued…
Questions 25
Lab
Homework 27 Work on your Assignment
CSC 305 Individual Software Design and Development Javier Gonzalez-Sanchez, Ph.D.
[email protected]
Summer 2024 Copyright. These slides can only be used as study material for the class CSC305 at Cal Poly. They cannot be distributed or used for another purpose.