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
110
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 26
javiergs
PRO
0
140
CSC305 Lecture 25
javiergs
PRO
0
130
CSC509 Lecture 14
javiergs
PRO
0
130
CSC305 Lecture 24
javiergs
PRO
0
46
CSC509 Lecture 13
javiergs
PRO
0
170
CSC305 Lecture 23
javiergs
PRO
1
120
CSC305 Lecture 22
javiergs
PRO
0
61
CSC509 Lecture 12
javiergs
PRO
0
210
CSC305 Lecture 21
javiergs
PRO
0
190
Other Decks in Programming
See All in Programming
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
140
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
350
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
200
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
2
460
As an Engineers, let's build the CRM system via LINE Official Account 2.0
clonn
1
670
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
190
useSyncExternalStoreを使いまくる
ssssota
6
1k
Discord Bot with AI -for English learners-
xin9le
1
120
今からはじめるAndroidアプリ開発 2024 / DevFest 2024
star_zero
0
1k
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
120
命名をリントする
chiroruxx
1
380
create_tableをしただけなのに〜囚われのuuid編〜
daisukeshinoku
0
240
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
32
6.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
For a Future-Friendly Web
brad_frost
175
9.4k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
How to Ace a Technical Interview
jacobian
276
23k
How STYLIGHT went responsive
nonsquared
95
5.2k
The Cult of Friendly URLs
andyhume
78
6.1k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
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.