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
Structural Patterns - Composite
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Chris Bushell
July 01, 2009
Programming
67
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Structural Patterns - Composite
Prepared for the Melbourne Patterns Group
Chris Bushell
July 01, 2009
More Decks by Chris Bushell
See All by Chris Bushell
Test Automation for Packaged Systems: Yes You Can!
cbushell
0
82
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
State Pattern From GoF
cbushell
1
76
Other Decks in Programming
See All in Programming
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
570
Agentic UI
manfredsteyer
PRO
0
170
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
250
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
110
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.2k
RTSPクライアントを自作してみた話
simotin13
0
610
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
140
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
170
依存関係から依存物へ―Dependencyという言葉の歴史をひも解く
j_lee
0
120
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
260
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6.6k
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
800
ラッコキーワード サービス紹介資料
rakko
1
3.7M
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
210
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
My Coaching Mixtape
mlcsv
0
150
Chasing Engaging Ingredients in Design
codingconduct
0
220
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
150
A Modern Web Designer's Workflow
chriscoyier
698
190k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Transcript
Structural Pa*erns -‐ Composite Melbourne Pa*erns Group July 1
2009 Chris Bushell
Intent Allow clients to treat primiBve objects and
containers in the same way
Graphics Example • Line • Rectangle •
Text etc.
Graphics Example ConBnued Graphic Line
Rectangle Picture Line Rectangle
Recursive ComposiBon
Puzzle Example
ParBcipants • Component • Leaf • Composite
ParBcipants
Code