Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
私とKotlinとSwift
Search
HiroYUKI Seto
August 09, 2017
Technology
0
790
私とKotlinとSwift
2017/8/9
Swift/Kotlin合同勉強会
HiroYUKI Seto
August 09, 2017
Tweet
Share
More Decks by HiroYUKI Seto
See All by HiroYUKI Seto
Androidアプリの 安全なリファクタリングを行うパターン集
seto_hi
2
4.9k
UI TestやVisual Regression Testを コスパ良くやる
seto_hi
3
1.8k
事業支援というお仕事
seto_hi
0
410
MDCの内部実装から学ぶ 表現力の高いViewの作り方
seto_hi
5
1.8k
CoordinatorLayoutのBehaviorを使い倒す
seto_hi
1
390
Jetpack Compose
seto_hi
2
780
UI改善に繋がるエンジニアの立ち回り
seto_hi
2
4.7k
MDCのButtonのCorner Family
seto_hi
1
190
MDCのBottomAppBarのShadowの実現方法
seto_hi
0
970
Other Decks in Technology
See All in Technology
フィンテック養成勉強会#54
finengine
0
200
OPENLOGI Company Profile
hr01
0
67k
ひとり情シスなCTOがLLMと始めるオペレーション最適化 / CTO's LLM-Powered Ops
yamitzky
0
460
Microsoft Build 2025 技術/製品動向 for Microsoft Startup Tech Community
torumakabe
2
320
AIとともに進化するエンジニアリング / Engineering-Evolving-with-AI_final.pdf
lycorptech_jp
PRO
0
140
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
1.2k
生成AI時代 文字コードを学ぶ意義を見出せるか?
hrsued
1
680
250627 関西Ruby会議08 前夜祭 RejectKaigi「DJ on Ruby Ver.0.1」
msykd
PRO
2
360
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
160
Delegating the chores of authenticating users to Keycloak
ahus1
0
130
Liquid Glass革新とSwiftUI/UIKit進化
fumiyasac0921
0
300
生成AI時代の開発組織・技術・プロセス 〜 ログラスの挑戦と考察 〜
itohiro73
1
350
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
337
57k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
Embracing the Ebb and Flow
colly
86
4.7k
Code Review Best Practice
trishagee
69
18k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Code Reviewing Like a Champion
maltzj
524
40k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
940
Git: the NoSQL Database
bkeepers
PRO
430
65k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
How to train your dragon (web standard)
notwaldorf
94
6.1k
Transcript
私とKotlinとSwift Swift/Kotlin合同勉強会 株式会社ノハナ 瀬戸優之 @seto_hi
自己紹介 • 瀬戸優之 せとひろゆき @seto_hi • 株式会社ノハナ ◦ Androidエンジニア 兼 iOSエンジニア ◦
UIデザインもやる、施策も考える、なんでもやる ◦ WE ARE HIRING!!!
ノハナの言語事情 • Android ◦ 30% Kotlin ◦ 現在絶賛Kotlin化中 ◦ •
iOS ◦ 43% Swift (3.1) ◦ 現在絶賛Swift化中
Swift きにいったところ guard文
guard文 • 条件に沿っていない場合の処理を書ける ◦ returnとか例外投げるとか • ifと同じことだが目につきやすい • guard letが特に良い
guard let 例
Swift すきじゃないところ
すきじゃないところ • selfが必要な部分が多くて冗長 • String.countまわり ◦ str.utf8.count、str.utf16.count • enumのAssociated Value
• Objective Cと互換性のない文法がある • Xcode • Xcode • Xcode
Kotlinのほうがいいところ
Kotlinのほうがいいところ • Smart Cast • when文 • applyなどのスコープ関数 • IDE
• IDE • IDE
感想 • みんなちがって、みんないい • 両言語を違和感なく併用できる • 両OSやっていき