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
150
Redux + MQTT
dalog
1
730
От задач к проблемам
dalog
1
170
Unlimited power of Data-Driven UI
dalog
4
580
Data-Driven View Controllers. Tips and Tricks
dalog
5
1.7k
2 years of Redux in iOS. Lessons learned
dalog
0
320
Why unidirectional architecture matter for iOS.
dalog
1
260
Mobile backend without REST
dalog
2
72
Self managed teams 101
dalog
0
120
Other Decks in Programming
See All in Programming
2024 コーディング研修
ckazu
2
650
TypeScriptコードの漸進的改善 / Progressive Improvement of TypeScript Code
medley
1
430
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
300
Next.js App Router
quramy
14
2.3k
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
160
Direct Style Effect Systems The Print[A] ExampleA Comprehension Aid
philipschwarz
PRO
0
410
ソースコードを美しくたもつために ~コードレビューの認知限界を突破し、年間400リリースを達成する~
kotauchisunsun
1
730
Jetpack Composeとデザインシステム
rmakiyama
0
230
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
180
How to improve maintainability and readability of your automated tests? ( #scrumniigata )
teyamagu
PRO
1
130
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.3k
FoodGram
iseruuuuu
0
230
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
75
5.2k
Why Our Code Smells
bkeepers
PRO
331
56k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
The Art of Programming - Codeland 2020
erikaheidi
43
12k
Fireside Chat
paigeccino
22
2.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.7k
Rebuilding a faster, lazier Slack
samanthasiow
74
8.3k
Unsuck your backbone
ammeep
664
57k
[RailsConf 2023] Rails as a piece of cake
palkan
28
4.1k
Docker and Python
trallard
35
2.7k
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