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
既存プロジェクトにキャッチアップするためのTips
Search
Yoichi Tagaya
February 08, 2017
Programming
2
2.9k
既存プロジェクトにキャッチアップするためのTips
Kyobashi.swift x AKIBA.swift 合同勉強会 2017年2月8日
https://kyobashi-swift.connpass.com/event/48794/
Yoichi Tagaya
February 08, 2017
Tweet
Share
More Decks by Yoichi Tagaya
See All by Yoichi Tagaya
Dependency Injection
yoichitgy
0
130
Dependency Injection Pattern for iOS App
yoichitgy
1
250
Dependency Injection Pattern for iOS Apps
yoichitgy
2
380
Practical Structure to Configure Dependency Injection in Swift for iOS
yoichitgy
1
460
Architecture and ReactorKit
yoichitgy
1
570
GDPRについて
yoichitgy
2
1.3k
More about Crashlytics and Less about GDPR ;)
yoichitgy
2
290
How to contribute to try! Swift Tokyo 2018
yoichitgy
0
75
モバイルアプリで困らないエラーハンドリングとロギングのベストプラクティス
yoichitgy
21
6.1k
Other Decks in Programming
See All in Programming
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
76k
Good intentions gone bad
evaferreira
0
110
新年度から始めるJava言語のファーストステップ2024
tatsuya1bm
0
150
The Final Frontier of Web Development: React Server Components vs Jakarta EE
ivargrimstad
0
610
Using Ruby in the browser is wonderful
ledsun
1
1.6k
The Design of Everyday APIs - PyCon 2024
roguelynn
1
640
Goでリフレクションする、その前に / Kansai.go #1
utgwkk
4
510
Make CPU #3 dalance
dalance
1
110
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | KotlinConf
prof18
0
110
slog登場に伴うloggerの取り回し手法の見直し / kamakura.go #6
arthur1
1
450
It’s about time to pack Ruby and Ruby scripts in one binary
ahogappa0613
1
1.3k
アイテムレビュー基盤で導入したアーキテクチャとその成果 / Item Review Introduction Architecture Outcome
chichi1091
1
1.1k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
Adopting Sorbet at Scale
ufuk
69
8.7k
Designing Experiences People Love
moore
136
23k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
23
1.7k
A designer walks into a library…
pauljervisheath
201
23k
In The Pink: A Labor of Love
frogandcode
138
21k
GraphQLの誤解/rethinking-graphql
sonatard
56
9.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
4
190
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Designing for humans not robots
tammielis
247
25k
Why Our Code Smells
bkeepers
PRO
331
56k
Transcript
طଘϓϩδΣΫτʹ ΩϟονΞοϓ͢ΔͨΊͷTips Kyobashi.swift x AKIBA.swift ߹ಉษڧձɹ20172݄8 Yoichi Tagaya, Software Engineer,
Mercari Inc. GitHub, Twitter: @yoichitgy
ࣗݾհ • Swinject (Swift༻Dependency InjectionϑϨʔϜϫʔΫ) ͷ ΦϦδφϧ࡞ऀ • Swipe Engine
(தౡ૱͞ΜͷϝϧϚΨݟͯΔํͬͯΔ͔) ͷίϛολʔ • Mercari ʹೖࣾͯ͠1ϲ݄
ϝϧΧϦΞϓϦ • 4ͷྺ࢙͕͋Δίʔυ • νʔϜϝϯόʔ • Tokyo: 5ਓ • San
Francisco: 1ਓ • London: 1ਓ • US͚Λத৺ʹ৽͍࣮͠ มߋ͕ͬͱඞཁ
ʮ͜͜ʹ৽͍͠ػೳΛ ɹ͚Ճ͍͑ͨΜ͚ͩͲɾɾʯ * αϯϓϧΞϓϦͪ͜Β: https://github.com/JakeLin/SwiftWeather ͦͷίʔυͲ͜ʹ͋Δʁ ࣄͷΞαΠϯ
ݟ͑ͯΔจࣈྻΛݕࡧ
Debug View Hierarchy 2. ForecastViewͰ ࣮͞ΕͯΔͱΘ͔Δ 1. σόοά࣌ʹΫϦοΫ
Debug View Hierarchy ͨͩ͠HierarchyදࣔᘳͰͳ͍ͷͰɺReveal͕ศརͳ߹ɻ https://revealapp.com/
͋ͱ • ಉ྅ʹฉ͘ • υΩϡϝϯτಡΉ (͋Ε)
ίʔυ͕ॻ͔ΕͨഎܠΛΓ͍ͨ ͳΜͰ͜ͷߦ͕ ೖͬͯΔͷʁʁ
XcodeͰGit BlameΛݟΔ ֤ߦʹରԠ͢Δ ίϛοτϩάΛ දࣔͰ͖·͢
APIαʔόͱͷΓͱΓΛݟ͍ͨ URLRequestͷ - ύϥϝʔλԿʁ - Ԡ (JSON) ͲΜͳʁ
LLDBίϚϯυͰ URLRequestΛcurlίϚϯυʹม 2. ग़ྗΛίϐʔ 1. LLDBίϚϯυ࣮ߦ https://speakerdeck.com/bricklife/sabasaidoenziniatoxiao-lu-yokukai-fa-surutameniyatuteirukoto ৄࡉ @ooba ͷࢿྉ
curlίϚϯυΛTerminalͰ࣮ߦ TerminalʹషΓ͚࣮ͯߦͨ͠ྫ JSON Pretty (jsonppΤΠϦΞε): http://stackoverflow.com/questions/20265439/
None
ϝϧΧϦͰ ϝϧΧϦက͍ͨͨਓΛืूதʂ ৄࡉʮϝϧΧϦကʯͰݕࡧ