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
新歓LT
Search
MOTCCi
April 26, 2020
47
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
新歓LT
MOTCCi
April 26, 2020
More Decks by MOTCCi
See All by MOTCCi
2020-10-31 CIST-LT✖️Zli LT
motochika
0
44
2020-8-22 Zil✖️エキサイト LT
motochika
0
100
2020/9/11 TechDojo
motochika
0
28
2020-8-22 Zil✖️CA LT
motochika
0
75
2020/7/11 Zli✖️DMM 合同LT
motochika
0
36
2020/1/8 新年LT
motochika
0
18
Presentation for Firefox
motochika
0
26
Nvidia Demo
motochika
0
39
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
3.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
390
Un-Boring Meetings
codingconduct
0
420
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
420
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Being A Developer After 40
akosma
91
590k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Transcript
新入生歓迎Online LT デザインパターンについて
自己紹介 名前:もとちか 学年:学部3年 出身:北海道 札幌市 勉強している分野:Androidアプリ開発 / kotlin 趣味:ロードバイク、スキー
デザインパターンとは? ・プログラミングをする際に「よく出会う問題とそれに対する良い設 計」をまと めたもの ・有名なのがGoFが命名した23の設計パターン ・「Javaで学ぶ デザインパターン入門」
メリット ・「再利用性」の高い設計が可能 ・エンジニア同士が設計に対して共通のイメージを持ちやすい しかし、全てのパターンに当てはまるわけではない
Templateメソッド 抽象クラスで処理の枠組みを決めて サブクラスで具体的な内容を実装
職業クラス 子クラス Police officer Doctor lawyer 職業名 警察官 医者 弁護士
主な仕事 市民の安全を守る 人を病気から救う 法律で問題を解決
表示するメソッドを親クラスで実装 abstract class Job(){ abstact printJobName() abstract printMainTask() display(){ printJobName()
printMainTask() } } 子クラスで具体的な実装 class Police() extends Job(){ printJobName(){ println(“Police”) } printMainTask(){ println(“市民の安全を守ること ”) } } Mainクラスで子クラスのインスタンスを作成する →全ての子クラスにdisplay()を呼び出すことができる
さらに Javaに限定せず色々な言語でデザインパターンを試してみるといいかも 言語によって合う合わないパターンが見つかるかもしれない 自分はKotlinで書いて勉強しています
さいごに Github:motochika1 はてなblog:IRhate Chika’s Diary qiita:@motochika_H