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
Sensus
Search
DAloG
October 25, 2014
Programming
0
140
Sensus
Presentation of framework.
DAloG
October 25, 2014
Tweet
Share
More Decks by DAloG
See All by DAloG
State normalization (RU)
dalog
0
160
Redux + MQTT
dalog
1
760
От задач к проблемам
dalog
1
230
Unlimited power of Data-Driven UI
dalog
4
610
Data-Driven View Controllers. Tips and Tricks
dalog
5
1.8k
2 years of Redux in iOS. Lessons learned
dalog
0
340
Why unidirectional architecture matter for iOS.
dalog
1
270
Mobile backend without REST
dalog
2
88
Self managed teams 101
dalog
0
130
Other Decks in Programming
See All in Programming
Generating OpenAPI schema from serializers throughout the Rails stack - Kyobashi.rb #5
envek
1
430
はじめての Go * WASM * OCR
sgash708
1
120
変化の激しい時代における、こだわりのないエンジニアの強さ
satoshi256kbyte
0
100
Google Cloudとo11yで実現するアプリケーション開発者主体のDB改善
nnaka2992
1
110
ML.NETで始める機械学習
ymd65536
0
240
もう少しテストを書きたいんじゃ〜 #phpstudy
o0h
PRO
21
4.3k
Learning Kotlin with detekt
inouehi
1
200
Swift Testingのモチベを上げたい
stoticdev
2
200
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
160
クックパッド検索システム統合/Cookpad Search System Consolidation
giga811
0
140
お前もAI鬼にならないか?👹Bolt & Cursor & Supabase & Vercelで人間をやめるぞ、ジョジョー!👺
taishiyade
7
4.2k
GoとPHPのインターフェイスの違い
shimabox
2
220
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Visualization
eitanlees
146
15k
Documentation Writing (for coders)
carmenintech
68
4.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
134
33k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.7k
Typedesign – Prime Four
hannesfritz
41
2.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
A better future with KSS
kneath
238
17k
Scaling GitHub
holman
459
140k
Designing Experiences People Love
moore
140
23k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Transcript
SENSUS OBJECTIVE-C DSL FOR DIRTY DATA Alexey Demedeckiy October 2014
ABOUT ME
AGENDA • Problem description • Existing solutions • Sensus •
Usage Demo • Internal Demo https://speakerdeck.com/dalog/sensus
SERVER DATA • Generated on server side WITH type info
• Transferred via JSON • Converted to NSDictionary • Stored to database • Used in logic
PROBLEMS • JSON data has no types • Types interpreting
may fail • Missed types are not detected
POSSIBLE SOLUTIONS • Class mappers (Mantle and similar) • Checks,
checks • Save validators • Swift • …
SENSUS • DSL • Strong typed • Date parsers included
• Default values support • Keypath support • Extensible (a little)
DEMO
PROS AND CONS • Parse time type check • Simple
value transformations
OPEN SOURCED HTTPS://GITHUB.COM/DALOG/SENSUS
TODO • Custom type transformers • Runtime extensions • DSL
refining
INTERNAL • Custom root class • Category extensions • Protocols
DEMO
QUESTIONS? E-MAIL:
[email protected]
SKYPE: NOBIDON