$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Test Driven Development (A Short Introduction)
Search
John Chandler
April 08, 2011
Programming
0
12
Test Driven Development (A Short Introduction)
Internal company presentation, 2011.
John Chandler
April 08, 2011
Tweet
Share
More Decks by John Chandler
See All by John Chandler
Everything I've Learnt from Russel Winder's Talks, in 5 Minutes (A Tribute)
metaljoe
0
12
Snowboarding Saved My Software Career
metaljoe
0
10
Neurodiversity in Tech
metaljoe
0
55
Neurodiversity Lightning Talk
metaljoe
0
13
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
11
Regular Expressions
metaljoe
0
15
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
19
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
14
Python, DOT, and Visualising Legacy Code The Lazy Way
metaljoe
0
20
Other Decks in Programming
See All in Programming
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.3k
Integrating WordPress and Symfony
alexandresalome
0
150
MAP, Jigsaw, Code Golf 振り返り会 by 関東Kaggler会|Jigsaw 15th Solution
hasibirok0
0
230
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
800
AIコーディングエージェント(NotebookLM)
kondai24
0
180
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
3k
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
710
AWS CDKの推しポイントN選
akihisaikeda
1
240
sbt 2
xuwei_k
0
280
エディターってAIで操作できるんだぜ
kis9a
0
720
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
2
680
認証・認可の基本を学ぼう後編
kouyuume
0
190
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Fireside Chat
paigeccino
41
3.7k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Context Engineering - Making Every Token Count
addyosmani
9
500
GitHub's CSS Performance
jonrohan
1032
470k
Speed Design
sergeychernyshev
33
1.4k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.6k
Transcript
Test Driven Development (a short introduction) (C) John Chandler 2011
Perfect Code? First Time? Every Time? (yeah right)
Confidence Through Tests Manual Tests = Error Prone Automated Tests
= Repeatable
Writing Tests After the Code Is Useful
Writing Tests Before the Code Helps us...
Think about What before we decide How
Write code that is easy to test
Write small units of code at a time
Ensure all code has test coverage
Know when to stop writing code
First we write a test that fails
Then we write code to make the test pass
Did we break anything?
Are we more confident?
Refactor if necessary Refactor with confidence
Then repeat until done
What else?
Fail Fast Early Feedback
Easier to learn unfamiliar code
Easier to change unfamiliar code
Supplementary code documentation
Give confidence to Others
Continuous Integration
Now go write tests!