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
Hiltのありがたさを知る
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
HAMADA
May 29, 2024
26
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Hiltのありがたさを知る
HAMADA
May 29, 2024
Transcript
13 slides
第4回 iOS&Android学生エンジニアLT Hiltのありがたさを知る 2024/3/16 HAMADA
自己紹介 名前 濵田翔真 学年 会津大学 3回生 (22歳) 出身 京都 ハンドルネーム HAMADA 趣味 ソフトテニス 阪神タイガース 龍角散 音楽(合 唱,カラオケ,ウクレレ等々) 技術 Android
バックエンド etc 情報発信 Twitter AHMOS_HMD はてなブログ hahahamada.hatenablog.com 特技 人の名前を覚えること
agenda Hiltについて 経緯 やってみて
経緯
経緯 Hiltを使えば、うまくいったが理解が浅い 今一度実装し、理解を深める 先日参加した、CA Tech DojoでFactoryの扱いで苦しんだ
Hiltについて
Hiltについて DIライブラリ 依存性注入を手動で行う必要がなくなる
Repository @Inject 今回であれば、 コンストラクタに 依存性を自動で注入
Hiltを使わないViewModel ViewModel .Factory インターフェイスを実装、 ViewModelのインスタンス化時に 依存性を注入する
Hiltを使うViewModel @HiltViewModelをつけて、 ViewModelをhiltで管理できるようにしている 依存関係はコンストラクタを経由して、自動で注入される
Applicationの設定
やってみて 不便を知って、ライブラリを使うと便利さを痛感できた。 ライフタイムに関して、認識が甘いので、理解を深めたい。 Hiltはすごくありがたい。
ご清聴ありがとう ありがとうございました
More Decks by HAMADA
See All by HAMADA
Unity as a Library で 3Dモデルを表示してみた話
hamashle
0
61
AndroidのWidget作ってみた
hamashle
0
40
KMPとApolloを利用したマルチプラットフォーム開発
hamashle
0
130
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Un-Boring Meetings
codingconduct
0
500
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Prompt Engineering for Job Search
mfonobong
0
590
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Facilitating Awesome Meetings
lara
57
7.2k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k