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
76
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
CSC509 Lecture 13
javiergs
PRO
0
96
CSC305 Lecture 22
javiergs
PRO
0
43
CSC305 Lecture 22
javiergs
PRO
0
23
CSC509 Lecture 12
javiergs
PRO
0
160
CSC305 Lecture 21
javiergs
PRO
0
75
CSC305 Lecture 20
javiergs
PRO
0
59
CSC305 Lecture 19
javiergs
PRO
0
52
CSC509 Lecture 11
javiergs
PRO
0
180
CSC305 Lecture 18
javiergs
PRO
0
74
Other Decks in Programming
See All in Programming
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
Remix on Hono on Cloudflare Workers
yusukebe
1
290
Contemporary Test Cases
maaretp
0
140
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
Ethereum_.pdf
nekomatu
0
460
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
170
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
900
ヤプリ新卒SREの オンボーディング
masaki12
0
130
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
as(型アサーション)を書く前にできること
marokanatani
10
2.6k
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Music & Morning Musume
bryan
46
6.2k
Raft: Consensus for Rubyists
vanstee
136
6.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Designing the Hi-DPI Web
ddemaree
280
34k
The Cult of Friendly URLs
andyhume
78
6k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
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.