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
State Pattern From GoF
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Chris Bushell
July 07, 2010
Programming
76
1
Share
State Pattern From GoF
Prepared for the Melbourne Patterns Group
Chris Bushell
July 07, 2010
More Decks by Chris Bushell
See All by Chris Bushell
Test Automation for Packaged Systems: Yes You Can!
cbushell
0
80
Introduction to Pair Programming
cbushell
1
140
An Introduction to BDD
cbushell
5
180
An Introduction to HTTP
cbushell
2
140
Agile Test Automation
cbushell
2
190
Working Effectively With Legacy Code
cbushell
4
260
Jasmine, BDD for JavaScript
cbushell
1
130
Branches Are For Trees. How to Develop Software Without Them
cbushell
1
120
Continuous Integration, fast builds and Flot
cbushell
2
83
Other Decks in Programming
See All in Programming
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
6
1.3k
net-httpのHTTP/2対応について
naruse
0
320
JavaDoc 再入門
nagise
0
210
New "Type" system on PicoRuby
pocke
1
350
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
190
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
210
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
310
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
670
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
260
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
220
今さら聞けないCancellationToken
htkym
0
200
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1.2k
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
710
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Crafting Experiences
bethany
1
160
How STYLIGHT went responsive
nonsquared
100
6.1k
The SEO identity crisis: Don't let AI make you average
varn
0
480
A Soul's Torment
seathinner
6
2.9k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
55k
Unsuck your backbone
ammeep
672
58k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Docker and Python
trallard
47
3.9k
Transcript
State Pa'ern From GoF Chris Bushell 7th July 2010
Mo<va<on “Allow an object to alter its behavior when
its internal state changes”
Code
Applicability • Behavior depends on state • Opera<ons
have large condi<onal statements which depend on state
Par<cipants
Collabora<ons • Context and Concrete State • Context
is primary interface for clients
Consequences • Localizes state specific behavior. Avoids code
duplica<on • State changes are well defined, atomic opera<ons • State objects can be shared
Implementa<on • Context or Concrete State defines transi<ons?
• Table based approach to defining transi<ons • Singleton, Flyweight