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
Unidirectional Data Flow in ReSwift
Search
Masato Oshima
February 09, 2016
Programming
0
1.5k
Unidirectional Data Flow in ReSwift
Kyobashi.swift #1
Masato Oshima
February 09, 2016
Tweet
Share
More Decks by Masato Oshima
See All by Masato Oshima
ECSからEKSへの移行への移行事例の紹介
mpon
6
3.5k
APIがある外部サービスはTerraformで管理できますよ
mpon
12
6.9k
Envoyを分かりやすく例えつつApp Meshの話をします
mpon
8
6.2k
AWS Fargateで得する人損する人
mpon
3
5.9k
kubernetes-meetup-4
mpon
2
2.4k
DDD Practice in iOS
mpon
0
410
Swift compile time is so slow
mpon
3
5.4k
Fight Xcode Project with Golang
mpon
1
2.7k
iPad Multi Taking
mpon
0
70
Other Decks in Programming
See All in Programming
Better Code Design in PHP
afilina
PRO
0
130
Amazon Qを使ってIaCを触ろう!
maruto
0
420
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
CSC509 Lecture 12
javiergs
PRO
0
160
subpath importsで始めるモック生活
10tera
0
320
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.2k
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.8k
React への依存を最小にするフロントエンド設計
takonda
4
810
Arm移行タイムアタック
qnighy
0
340
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
RubyLSPのマルチバイト文字対応
notfounds
0
120
Jakarta EE meets AI
ivargrimstad
0
150
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Agile that works and the tools we love
rasmusluckow
327
21k
Visualization
eitanlees
145
15k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Become a Pro
speakerdeck
PRO
25
5k
The World Runs on Bad Software
bkeepers
PRO
65
11k
The Invisible Side of Design
smashingmag
298
50k
Scaling GitHub
holman
458
140k
Embracing the Ebb and Flow
colly
84
4.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
Unidirectional Data Flow in ReSwift @_mpon Kyobashi.swift #1
Masato Oshima github.com/mpon @_mpon ಢݝ๕լ܊ग़ iOS Developer
None
None
DDoommaaiinn DDrriivveenn DDeessiiggnn
͋Δͷ4MBDL
ͱ͍͏͜ͱͰ 3F4XJGU ΛௐͯΈΔ
ҰఆํͷΈͷσʔλϑϩʔJO4XJGU 3FEVY͔ΒΠϯεύΠΞ͞Εͨ
3FEVY
b`3FEVYJTBOBMUFSOBUJWF PSBWBSJBUJPOPGUIF qVYGSBNFXPSL``
'MVY
b`'MVYJTUIFBQQMJDBUJPO BSDIJUFDUVSFUIBU'BDFCPPLVTFT GPSCVJMEJOHDMJFOUTJEFXFC BQQMJDBUJPOT``
ҰఆํͷΈͷσʔλϑϩʔ 4UPSFࣗࣗΛॻ͖͑Δ
+BWB4DSJQUΞϓϦέʔγϣϯͷͨΊͷϑϨʔ ϜϫʔΫɻ'MVYΛਐԽͤͯ͞ෳࡶੑΛճආ͠ Α͏ͱ͍ͯ͠Δɻ
3FEVYͱಉ͡ߏ
4UPSFΞϓϦέʔγϣϯ ͷ4UBUFΛཧ͍ͯ͠Δɻ "DUJPO4UPSFͷ4UBUFΛ มߋ͢ΔͨΊͷએݴ͕ॻ ͔Ε͍ͯΔɻ 3FEVDFS"DUJPOΛड͚ औͬͯ৽͍͠4UBUFΛฦ ͢ɻ
ϘλϯΛλοϓͨ͠ͱ͖ʹ"DUJPOΛੜͯ͠ɺ 4UPSFʹEJTQBUDI͢Δɻ
4UPSFड͚औͬͨ"DUJPOΛ3FEVDFSʹ ͢ɻ
3FEVDFS"DUJPOΛͱʹ৽͍͠4UBUF Λฦ͢ɻ
4UPSF৽͍͠4UBUFΛ4VCTDSJCF͍ͯ͠Δશ ͯͷ7JFXʹ௨͢Δɻ
None
7JFX$POUSPMMFS͕TUPSFΛTVCTDSJCF͢Δɻ
ϘλϯΛԡͨ͠ͱ͖ʹɺ"DUJPOΛੜͯ͠ɺ 4UPSFʹEJTQBUDI͢Δɻ
4UPSF"QQ%FMFHBUFͰͨͩͭଘࡏͯ͠શͯͷঢ়ଶΛ ཧ͍ͯ͠Δɻͦͯ͠ɺ4UPSF3FEVDFSΛ࣋ͪɺ3FEVDFS IBOEMF"DUJPOͱ͍͏ϝιουΛඞͣ࣋ͭɻ IBOEMF"DUJPO͖ͬ͞EJTQBUDI͞Εͨ"DUJPOͱݱࡏͷ TUBUFΛͱʹ৽͍͠"QQ4UBUFΛੜ͢Δɻ
3FEVDFS"DUJPOͷछྨʹΑͬͯॲཧΛߦ͍৽͍͠ TUBUFΛੜ͢ΔɻͱͷTUBUFΛมߋ͢Δ͜ͱ͠ ͳ͍ɻ
4UPSF͔Β৽͍͠TUBUF͕OPUJGZ͞ΕΔͷͰɺTUBUFΛ ͱʹɺϥϕϧͷදࣔΛߋ৽͢Δɻ
ΞϓϦ͕େ͖͘ͳ͖ͬͯͨ ͱ͖ʹ4UBUF͕େมͳ͜ͱʹ ͳΓͦ͏ʁ খ͞ͳมߋʹରͯ͠WJFXͷ ࠶ඳըͷύϑΥʔϚϯε Ͳ͏ͳΜͩΖ͏ʁ "OJNBUJPOͷ్தঢ় ଶཧ͢Δͷ͔ʁ
ࢀߟʹͨ͠αΠτ w IUUQTSFBMNJPOFXTCFOKJFOD[VOJEJSFDUJPOBMEBUBqPXTXJGU w IUUQGBDFCPPLHJUIVCJPqVYEPDTPWFSWJFXIUNM w IUUQTHJUIVCDPN3F4XJGU3F4XJGU w IUUQTHJUIVCDPNSBDLUSFEVY w
IUUQJOTJEFQJYJWOFUFOUSZ w IUUQRJJUBDPNLJJUBJUFNTBGCDGC
ReSwift ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ