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
CSC486 Lecture 04
javiergs
PRO
0
34
CSC486 Lecture 03
javiergs
PRO
0
17
CSC486 Lecture 02
javiergs
PRO
0
19
CSC486 Lecture 01
javiergs
PRO
0
41
CSC305 Lecture 26
javiergs
PRO
0
140
CSC305 Lecture 25
javiergs
PRO
0
140
CSC509 Lecture 14
javiergs
PRO
0
140
CSC305 Lecture 24
javiergs
PRO
0
50
CSC509 Lecture 13
javiergs
PRO
0
180
Other Decks in Programming
See All in Programming
rails newと同時に型を書く
aki19035vc
5
710
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
“あなた” の開発を支援する AI エージェント Bedrock Engineer / introducing-bedrock-engineer
gawa
4
250
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
7
1.4k
Fibonacci Function Gallery - Part 2
philipschwarz
PRO
0
210
Rubyでつくるパケットキャプチャツール
ydah
0
170
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
390
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
180
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
940
Androidアプリのモジュール分割における:x:commonを考える
okuzawats
1
280
Внедряем бюджетирование, или Как сделать хорошо?
lamodatech
0
950
.NETでOBS Studio操作してみたけど…… / Operating OBS Studio by .NET
skasweb
0
120
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Code Review Best Practice
trishagee
65
17k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
173
51k
Docker and Python
trallard
43
3.2k
Writing Fast Ruby
sferik
628
61k
Gamification - CAS2011
davidbonilla
80
5.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
The Invisible Side of Design
smashingmag
299
50k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
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.