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
現場の壁を乗り越えて、 「計装注入」が拓く オブザーバビリティ / Beyond the Field Barriers: Instrumentation Injection and the Future of Observability
aoto
PRO
1
640
AI機能プロジェクト炎上の 3つのしくじりと学び
nakawai
0
120
AI時代、“平均値”ではいられない
uhyo
8
2.6k
Dify on AWS 環境構築手順
yosse95ai
0
150
[re:Inent2025事前勉強会(有志で開催)] re:Inventで見つけた人生をちょっと変えるコツ
sh_fk2
1
660
Building a cloud native business on open source
lizrice
0
190
「タコピーの原罪」から学ぶ間違った”支援” / the bad support of Takopii
piyonakajima
0
150
Retrospectiveを振り返ろう
nakasho
0
130
AI連携の新常識! 話題のMCPをはじめて学ぶ!
makoakiba
0
130
個人でデジタル庁の デザインシステムをVue.jsで 作っている話
nishiharatsubasa
3
5.2k
あなたの知らない Linuxカーネル脆弱性の世界
recruitengineers
PRO
3
160
What's new in OpenShift 4.20
redhatlivestreaming
0
320
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Why Our Code Smells
bkeepers
PRO
340
57k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
10
890
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Six Lessons from altMBA
skipperchong
29
4k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
4 Signs Your Business is Dying
shpigford
185
22k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Side Projects
sachag
455
43k
Facilitating Awesome Meetings
lara
57
6.6k
Being A Developer After 40
akosma
91
590k
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