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
Jorge Ortiz: TDD for the Masses
Search
Realm
July 08, 2016
Technology
1
6.3k
Jorge Ortiz: TDD for the Masses
Realm
July 08, 2016
Tweet
Share
More Decks by Realm
See All by Realm
WWDC 2017 Review
realm
0
2.1k
Xcode shortcuts
realm
0
4.7k
Self Branding with GitHub
realm
0
4.3k
Realm Mobile Platform overview and demo
realm
0
2.1k
Realm advanced topics and demo
realm
0
2k
Realm introduction Seoul meetup 10
realm
0
2.1k
Stuart Hall: How I got 2.3 Million App Downloads
realm
0
1.9k
James Majors: What the Swiftly Func?
realm
1
4.3k
Simina Pasat: Continuous everything for iOS apps
realm
0
630
Other Decks in Technology
See All in Technology
スタートアップにおけるこれからの「データ整備」
shomaekawa
2
480
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
14k
incident_commander_demaecan__1_.pdf
demaecan
0
140
エンタメとAIのための3Dパラレルワールド構築(GPU UNITE 2025 特別講演)
pfn
PRO
0
330
いまからでも遅くない!SSL/TLS証明書超入門(It's not too late to start! SSL/TLS Certificates: The Absolute Beginner's Guide)
norimuraz
0
240
OCI Network Firewall 概要
oracle4engineer
PRO
2
7.9k
今この時代に技術とどう向き合うべきか
gree_tech
PRO
2
1.8k
20251014_Pythonを実務で徹底的に使いこなした話
ippei0923
0
200
AI時代こそ求められる設計力- AWSクラウドデザインパターン3選で信頼性と拡張性を高める-
kenichirokimura
3
320
Wasmのエコシステムを使った ツール作成方法
askua
0
180
大規模サーバーレスAPIの堅牢性・信頼性設計 〜AWSのベストプラクティスから始まる現実的制約との向き合い方〜
maimyyym
10
4.8k
ガバメントクラウドの概要と自治体事例(名古屋市)
techniczna
3
240
Featured
See All Featured
Facilitating Awesome Meetings
lara
56
6.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
A Modern Web Designer's Workflow
chriscoyier
697
190k
Building Applications with DynamoDB
mza
96
6.7k
Six Lessons from altMBA
skipperchong
29
4k
Typedesign – Prime Four
hannesfritz
42
2.8k
Unsuck your backbone
ammeep
671
58k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
189
55k
Transcript
TDD for the Masses Jorge D. Ortiz-Fuentes @jdortiz #TDD4Masses
A Canonical Examples production #TDD4Masses
Legal disclaimer
– YOU “I know how to write unit tests”
– YOU “My name is ____ and I don't always
write tests for my code”
Tests are for the model No
#TDD4Masses Agenda ̣ TDD ̣ Unit testing a Table View
Controller from scratch ̣ Get it to run
Win or Fail!
MVP intro
MVP View Presenter Model display orders events fetch/change data
3min TDD Crash Course
Do you test FIRST?
#TDD4Masses FIRST ̣ Fast ̣ Isolated ̣ Repeatable ̣ Self-verifiable
̣ Timely
Do you test FIRST?
#TDD4Masses TDD Dance ̣ Red ̣ Green ̣ Refactor Write
test ❌ Write simplest code to pass test ✅ Improve code Choose next functionality Loop until done
#TDD4Masses Simplest Code ̣ Hard coded ̣ Closer to the
beginning of scope ̣ Less indented ̣ Shorter Credit Ray Osherove
Demo
#TDD4Masses Recap ̣ Red, Green, and Refactor ̣ Add min
amount of code to pass ̣ TDD is not only possible, but useful&cool! ̣ Great coverage ̣ Views can be tested ̣ Good architecture helps
http://bit.ly/TDD- CmdU
Thank you!
@jdortiz #TDD4Masses