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
830
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
私とKotlinとSwift
2017/8/9
Swift/Kotlin合同勉強会
HiroYUKI Seto
August 09, 2017
More Decks by HiroYUKI Seto
See All by HiroYUKI Seto
Androidアプリの 安全なリファクタリングを行うパターン集
seto_hi
2
5k
UI TestやVisual Regression Testを コスパ良くやる
seto_hi
3
1.9k
事業支援というお仕事
seto_hi
0
460
MDCの内部実装から学ぶ 表現力の高いViewの作り方
seto_hi
5
1.9k
CoordinatorLayoutのBehaviorを使い倒す
seto_hi
1
470
Jetpack Compose
seto_hi
2
890
UI改善に繋がるエンジニアの立ち回り
seto_hi
2
4.9k
MDCのButtonのCorner Family
seto_hi
1
260
MDCのBottomAppBarのShadowの実現方法
seto_hi
0
1.1k
Other Decks in Technology
See All in Technology
巨大気象データと戦う ― サロゲートモデル学習を高速化する圧縮技術
gpuunite_official
0
140
도구에서 동료까지: 10년차 AI 스타트업의 AI 적응기
inureyes
PRO
1
250
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
280
コーチングの奥義 何もしないテクニック
jinwatanabe
0
130
Go 1.27 の標準パッケージに uuid が入った!のでいろいろ喋る / go_127_std_go_uuid
convto
2
520
TypeScript入門 2026
recruitengineers
PRO
3
730
Flutter × BLE Centralを自前Pluginで実装する設計パターン - MethodChannel / EventChannelで作る双方向ブリッジの実践 / Building Custom Flutter BLE Central Plugins: Bidirectional Bridging with Method & Event Channels
bitkey
PRO
0
160
2027年のMetricKit
kantacky
0
120
まちスペース®とデジタルツインと「まちづくり」
hiro_ogi
0
130
LLM Internals: 언어 모델의 계보와 알고리즘 진화 (2023~2026)
inureyes
PRO
0
770
Model Studio CLI × Token Plan
maigo999
0
200
属人化を叩き割れ!「制作加速」と「安定化」の矛盾を打破する:8年目プロダクトが辿り着いた「ミスが起こり得ない」アセット制作フローの全貌
gree_tech
PRO
0
110
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
840
The Invisible Side of Design
smashingmag
301
52k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
280
New Earth Scene 8
popppiees
3
2.5k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
260
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
450
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
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やっていき