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
0
130
デザパタ勉強会!Bridgeパターン
https://javajo.doorkeeper.jp/events/144579
Java女子部
November 29, 2022
Tweet
Share
More Decks by Java女子部
See All by Java女子部
モダンJava再入門ハンズオン Java in Education For JUGs
javawomen
0
170
デザインパターン勉強会(Facade&Mediator)
javawomen
0
210
みんな大好きJava 8から9月リリースJava 17まで!最近のJava事情あれこれ / Java catch up from 8 to 17
javawomen
2
1.2k
お客様の中にJava女子部とお付き合いしてくださる方はいませんか?
javawomen
0
350
【子ども向けハンズオン】 ゲームで学ぼう、プログラミング!
javawomen
0
850
Java女子部について
javawomen
1
88
Other Decks in Programming
See All in Programming
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
180
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
300
組織で育むオブザーバビリティ
ryota_hnk
0
180
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
140
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
630
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
990
CSC307 Lecture 02
javiergs
PRO
1
780
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
440
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
57
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
From π to Pie charts
rasagy
0
130
Code Review Best Practice
trishagee
74
20k
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;