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
Server Side Kotlin導入してみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
T.Hori
February 28, 2019
Programming
840
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Server Side Kotlin導入してみた
Server Side Kotlinの導入について社内LTで発表した資料です
T.Hori
February 28, 2019
More Decks by T.Hori
See All by T.Hori
よりぬき「採用を科学する」
beatdjam
0
180
Slackの暮らし方
beatdjam
0
110
Other Decks in Programming
See All in Programming
Modernizing iOS Apps
seyfoyun
0
150
小さなアプリを作って公開するまで
onozaty
0
150
Next.js: The final boss of Web Performance
guaca
0
390
AmebaブログはKMPから卒業します
kmars0605
0
340
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
4
3.5k
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
11k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
200
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
290
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
300
Getting Started with Vibe Coding
miccheng
0
190
Vue.jsで作る空間解析アプリとCapacitorプラグインのData Bridge
hal_spidernight
1
170
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
520
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Optimising Largest Contentful Paint
csswizardry
37
4k
Building Adaptive Systems
keathley
44
3.3k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
3
1.2k
The browser strikes back
jonoalderson
0
1.9k
The Curse of the Amulet
leimatthew05
3
17k
Navigating Weather and Climate Data
rabernat
0
590
A Tale of Four Properties
chriscoyier
163
24k
Agile that works and the tools we love
rasmusluckow
331
22k
The World Runs on Bad Software
bkeepers
PRO
72
12k
WENDY [Excerpt]
tessaabrams
14
40k
Transcript
Server Side Kotlin 導入してみた
B-Teck!(ブログ) https:/ /blog.beatdjam.com/ Github https:/ /github.com/beatdjam Twitter(ほぼ技術の話はしていません) https:/ /twitter.com/beateck 2
T.Hori
B 導入プロダクト 3 導入率 : 98%(予定) 導入率 : 40% A
社外秘のため導入率だけ …
既存システムの構成 • Maven • Java8 • Jersey2 4
なぜKotlinを導入したのか 1
Javaって 冗長ですよね 6
7
data classって 便利ですよね 8
9
10 equals():オブジェクト比較 hashCode():ハッシュコードを取得 copy():オブジェクトのコピー toString():文字列へ変換 componentN():N番目のプロパティの内容を取り出す デフォルトで生成される メソッド
既存資産って 使いたいですよね 11
12 “Kotlin is designed with Java Interoperability in mind.” Calling
Java code from Kotlinより https:/ /kotlinlang.org/docs/reference/java-interop.htm 基本的にJavaの資産はそのまま使える!
13 Server Side Kotlin、良いのでは
そんな時 こんな記事が公開 14 エムスリーで「サーバサイドKotlin」を導入したチームに話を聞 きました
None
導入時に躓いたこと 2
Bean Validationが動かない 17 NG OK
Eclipseのプラグイン上で Kotlinがうまく動かない 18
Eclipseのプラグイン上で Kotlinがうまく動かない 19
導入時に躓かなかったこと 3
Mavenに記述追加で すぐ動く 21 Using Maven - Kotlin Programming Language
Kotlin未対応フレームワークも 問題なく使える 22 じゃなくて…
Kotlin未対応フレームワークも 問題なく使える 23 OK
導入して良かったこと 困ったこと 4
良かったこと • Javaよりも簡潔に書ける(特にCollection操作) • やっぱりdata classは便利 • Null SafeによってアプリとI/Fをすり合わせやすい •
困ったらJavaで書けばいい • 社内ライブラリがそのまま使える 25
良かったこと(その2) • アプリ開発者が触りやすい (iOS開発者二人がAPI開発に参加しました!) • Swiftへの恐怖心が減った • Kotlinを通して最近のJavaを知ることができた • たのしい!!
26
困ったこと • Android向けばかりでServer Sideの事例の知見が 少ない • KotlinのコミュニティがAndroidと密結合 ⇒ 今はかなり改善されてます! •
IntelliJ IDEAをサーバーサイドで使うのは有料😭 27
28 あなたも Server Side Kotlin 導入してみませんか?
29 ご静聴ありがとうございました!