Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
20250315_LT資料_Kyoto.kt #2_デザインパターン
Search
Taipy(タイピー)
March 16, 2025
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20250315_LT資料_Kyoto.kt #2_デザインパターン
目次
・なぜデザインパターンなのか
・オブジェクト指向プログラミングの原則
・デザインパターン Strategy
・まとめ
Taipy(タイピー)
March 16, 2025
More Decks by Taipy(タイピー)
See All by Taipy(タイピー)
React new features (Activity and useEffectEvent)
taipy
0
32
AI駆動開発 設計書から実装へ
taipy
1
1.8k
JavaのOAuthライブラリ 比較検討
taipy
0
460
Other Decks in Programming
See All in Programming
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
520
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
590
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.8k
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
260
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
20
20k
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
300
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
470
JRuby: Past, Present, and Future
headius
0
220
GitHubハンズオン講座 — 実務レベルのチーム開発のフローを身につけよう
junhat6
0
120
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.3k
iOSDC Japan 2026 - Swiftで作って学ぼう!データベース自作入門
kaseken
2
430
TiDB Cloudのカスタムコントローラーによるオートスケール対応
takaidohigasi
0
140
Featured
See All Featured
Code Review Best Practice
trishagee
74
20k
Ruling the World: When Life Gets Gamed
codingconduct
0
380
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
Designing for humans not robots
tammielis
254
26k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
340
Testing 201, or: Great Expectations
jmmastey
46
8.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Done Done
chrislema
187
17k
So, you think you're a good person
axbom
PRO
2
2.2k
Between Models and Reality
mayunak
4
480
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5k
Transcript
デザインパターン
自己紹介 名前:Taipy(たいぴー) 出身:香川県小豆島 趣味:読書、アニメ、筋トレ
自己紹介 IT業界に入ったきっかけ 膝の靭帯断裂 ・前十字靭帯 ・内側側副靱帯
目次 ・なぜデザインパターンなのか ・オブジェクト指向プログラミングの原則 ・デザインパターン Strategy ・まとめ
AIの台頭 AI コードが書ける 人間 難易度が高い問題 設計 アーキテクチャ
Amazonの説明から一部抜粋 2004年には増補改訂版が刊 行され、2020年には第31刷ま で達するという人気のロングセ ラーとなっています。 2001年に初版が刊行 https://amzn.asia/d/7nyRI8H
学んだ設計原則 アプリケーション内の変更する部分を特定し、不変な 部分と分離する。
Strategy 最も強い者が生き残るのではない、最 も賢い者が生き残るのでもない、唯一 生き残るのは変化できる者である - チャールズ・ダーウィン デザインパターンその1
概要 S t r a t e g y パターンは一連のアルゴリズム
を定 義してカプセル化 し、交換できるようにします。 Strategy パターンを使うと、 アルゴリズムを利用す るクライアントとは独立してアルゴリ ズムを変更でき ます。
いつ使うのか? 1. アルゴリズムの切り替えが必要 2. 拡張性 「アルゴリズム」 →特定の問題を解決するために定められた手順や計算方法 →要するに、「倒し方」
None
None
None
アルゴリズムを切り出す
Before After
Before
None
まとめ ・アルゴリズムを頻繁に変更する場合は →ストラテジーパターンを使おう!
参考文献 ・Eric Freeman (著), Elisabeth Robso (著), 佐藤 直生 (監修)「Head
Firstデザイン パターン 第2版 ―頭とからだで覚えるデザインパターンの基本」, https://amzn.asia/d/aXDdbrL ・Refactoring.Guru「デザインパターン」 https://refactoring.guru/ja/design-patterns ※直前までのスライドで引用していないものをここに記載