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.2k
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.2k
Stuart Hall: How I got 2.3 Million App Downloads
realm
0
2k
James Majors: What the Swiftly Func?
realm
1
4.3k
Simina Pasat: Continuous everything for iOS apps
realm
0
650
Other Decks in Technology
See All in Technology
最強のAIエージェントを諦めたら品質が上がった話 / how quality improved after giving up on the strongest AI agent
kt2mikan
0
190
(Test) ai-meetup slide creation
oikon48
3
430
非情報系研究者へ送る Transformer入門
rishiyama
12
7.6k
us-east-1 に障害が起きた時に、 ap-northeast-1 にどんな影響があるか 説明できるようになろう!
miu_crescent
PRO
13
4.4k
20260311 技術SWG活動報告(デジタルアイデンティティ人材育成推進WG Ph2 活動報告会)
oidfj
0
360
2026年もソフトウェアサプライチェーンのリスクに立ち向かうために / Product Security Square #3
flatt_security
1
600
AI時代の「本当の」ハイブリッドクラウド — エージェントが実現した、あの頃の夢
ebibibi
0
130
Go標準パッケージのI/O処理をながめる
matumoto
0
220
【Oracle Cloud ウェビナー】【入門編】はじめてのOracle AI Data Platform - AIのためのデータ準備&自社用AIエージェントをワンストップで実現
oracle4engineer
PRO
1
150
進化するBits AI SREと私と組織
nulabinc
PRO
1
230
PMとしての意思決定とAI活用状況について
lycorptech_jp
PRO
0
130
OCI技術資料 : コンピュート・サービス 概要
ocise
4
54k
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Darren the Foodie - Storyboard
khoart
PRO
3
2.9k
The Curious Case for Waylosing
cassininazir
0
270
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
320
RailsConf 2023
tenderlove
30
1.4k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
71
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
640
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Designing for Timeless Needs
cassininazir
0
170
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.5k
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