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
Redux 番外篇
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
CJ
October 20, 2018
Programming
1.4k
0
Share
Redux 番外篇
CJ
October 20, 2018
More Decks by CJ
See All by CJ
Debug Swift debugging with LLDB
ejameslin
0
190
iOS Module Intro
ejameslin
0
97
RxSwift Intro
ejameslin
0
61
Other Decks in Programming
See All in Programming
ふつうのFeature Flag実践入門
irof
7
3.4k
TSKaigi2026-静的解析への投資がAI時代のコード品質を支える ── カスタムESLintルールの設計と運用
hayatokudou
7
1.3k
iOS26時代の新規アプリ開発
yuukiw00w
0
220
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
2.1k
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
680
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
210
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
11k
RTSPクライアントを自作してみた話
simotin13
0
380
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
2
1k
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
270
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
350
OSもどきOS
arkw
0
340
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
4 Signs Your Business is Dying
shpigford
187
22k
Docker and Python
trallard
47
3.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
65
55k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
The Invisible Side of Design
smashingmag
302
52k
Site-Speed That Sticks
csswizardry
13
1.2k
Unsuck your backbone
ammeep
672
58k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
210
Transcript
IOS REDUX 番外篇 CJ LIN LINE TW IOS NERD
Why Redux
Redux Intro
Preferred Architecture MVVM + Redux + Data Normalization
Reducer design Reducer signature func reducer(action: Action, state: State) ->
State Reducer, Pure Function: state needs to be copied and modified Performance of `Copy`?
ReSwift Implementation
Swift Struct Copy Struct copy is super fast! Copy-on-write:
usually the modification is not much
Swift / ObjC Class Copy Shallow Copy: Not worked… True
Deep Copy • ObjC: NSKeyedArchiver & NSKeyedUnarchiver • Swift: Codable & JSONEncoder & JSONDecoder • 2000X+ slower
Swift / ObjC Class Copy Deep Copy with NSCopying •
copyWithZone: • init(array:copyItems:) • Faster
Redux State Design Use struct! Eliminate duplicates State Normalization (Data
shared in multi ViewControllers) Substate? Release unused / outdated data?
WE ARE HIRING!