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
デザパタ勉強会!Bridgeパターン
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Java女子部
November 29, 2022
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
デザパタ勉強会!Bridgeパターン
https://javajo.doorkeeper.jp/events/144579
Java女子部
November 29, 2022
More Decks by Java女子部
See All by Java女子部
モダンJava再入門ハンズオン Java in Education For JUGs
javawomen
0
190
デザインパターン勉強会(Facade&Mediator)
javawomen
0
220
みんな大好きJava 8から9月リリースJava 17まで!最近のJava事情あれこれ / Java catch up from 8 to 17
javawomen
2
1.2k
お客様の中にJava女子部とお付き合いしてくださる方はいませんか?
javawomen
0
360
【子ども向けハンズオン】 ゲームで学ぼう、プログラミング!
javawomen
0
890
Java女子部について
javawomen
1
97
Other Decks in Programming
See All in Programming
5分で問診!Composer セキュリティ健康診断
codmoninc
0
860
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
460
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
210
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
480
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
4
1.3k
React本体のコードリーディング
high_g_engineer
1
130
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
230
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
200
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
150
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
3.9k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
490
プロポーザルを書いてもらう
pvcresin
0
170
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
270
The Mindset for Success: Future Career Progression
greggifford
PRO
0
440
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
330
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
650
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Mind Mapping
helmedeiros
PRO
1
300
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Transcript
デザパタ勉強会! Bridgeパターン 2022/11/26
Bridgeパターンとは? 「機能のクラス階層」と「実装のクラス階層」を分けて実装する実装パターン。 実装クラスのインスタンスを機能クラスに渡すことで二つの世界の橋渡しをするのでブ リッジパターンという! Animal SleepingAnimal DogImpl RabbitImpl LionImpl AnimalImpl
CatImpl 橋渡し! 機能のクラス階層 実装のクラス階層
Bridgeパターンにすると何が嬉しい? 実装のクラスに影響を与えずに機能の追加ができる! CatImpl DogImpl RabbitImpl RionImpl AnimalImpl Animal Animalに共通の「寝る」機能を追 加しようかな〜
SleepingAnimal こっちの変更がいらない!
Bridgeパターンの主な人物像 Abstraction • class • 機能クラス Imprementor • 実装クラス •
abstractクラス • Abstractionを保持する Refind Abstraction • 機能クラスの拡張 • extends Abstraction Concrete Imprementior • 実装クラスの拡張 • class • extends Imprementor public class Animal { private AnimalImpl impl;