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
頑張ってKotlin率をちょっとあげた話
Search
みっちゃん
March 14, 2023
Programming
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
頑張ってKotlin率をちょっとあげた話
Ebisu.mobile #1 にて登壇
https://hey.connpass.com/event/276211/
みっちゃん
March 14, 2023
More Decks by みっちゃん
See All by みっちゃん
Do you use git worktree?
mitchan
0
160
Android値受け渡し大全 〜 設計を制する者が「渡す」を制す 〜
mitchan
1
7.4k
2024年にチャレンジしたことを振り返るぞ
mitchan
0
310
DroidKaigi初めて登壇したレポ
mitchan
1
280
実践!難読化ガイド
mitchan
0
4.5k
「実践!難読化ガイド」事前予告編
mitchan
0
340
画面遷移 〜iOSとAndroid〜
mitchan
0
470
パソコン音痴な私がモバイル開発界隈でぬくぬく成長している理由
mitchan
0
630
ドキュメントから adbコマンドの仕組みを読み解く
mitchan
1
430
Other Decks in Programming
See All in Programming
パスワード再設定メールのURLについて知っておこう
uyuki234
0
140
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
390
Domain-Driven Transformation
hschwentner
2
2.3k
sbt 2.0: takeoff
eed3si9n
0
150
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
1
300
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
4
4.7k
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
Kotlinの15年とServer-Side Kotlin
n_takehata
1
120
The Rails Doctrine Decade
koic
2
570
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
180
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
How to make the Groovebox
asonas
2
2.5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Building Adaptive Systems
keathley
44
3.2k
4 Signs Your Business is Dying
shpigford
187
23k
Crafting Experiences
bethany
1
380
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
We Are The Robots
honzajavorek
0
400
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
730
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
620
Transcript
頑張ってKotlin率をちょっとあげた話 登壇者:STORES 決済 Androidチーム みっちゃん 1
自己紹介 名前:みっちゃん 会社:STORES inc.(22卒) 役職:Androidエンジニア Twitter Qiita 2
2022年 下期 「Kotlin化率20%向上」という目標を掲げ、 我々Androidチームは新機能開発と両立しながら頑張りました!! どのようにKotlin化を進め、どれくらいKotlin率が上がったのかというお話し。 3
進め方 <3フェーズ構成> Javaのままリファクタリング ↓ Convert to Kotlin by AndroidStudio ↓
Kotlin化後のリファクタリング 4
進め方 feature/convert-to-kotlin-2022 ー feature/convert-to-kotlin-HogeHogeActivity ー feature/refactoring-java-HogeHogeActivity ー feature/convert-to-kotlin-by-AS-HogeHogeActivity ー feature/refactoring-kotlin-HogeHogeActivity
5
フェーズ1:Javaのままリファクタリング ▷ Kotlin化するにあたりJavaっぽい部分をなくす 例 • ヨーダ記法にGoodbyeする • prefixの”m”を消す 6
フェーズ2:Convert to Kotlin by AndroidStudio ▷ ボタンぽちぽちで自動convertするだけ! Kotlin化したいJavaファイルのタブ上で右クリックする 7
フェーズ3:Kotlin化後のリファクタリング ▷ 自動convertによってエラーが出ている部分はエラーを解消します ▷ Kotlinっぽいコードになるように綺麗にします (例) • else if 地獄をwhenでスッキリ
• スコープ関数を使ってスッキリ • nullabilityの改善(ex. 強制アンラップ!!を解消) • Android KTXを使ってよりKotlinらしいコードに • などなど... 8
else if 地獄をwhenでスッキリ 9
スコープ関数を使ってスッキリ 10
最終結果 下期だけで + 12%。年間だと + 20% 11
〜おわり〜 12