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
Test Driven Development (A Short Introduction)
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
John Chandler
April 08, 2011
Programming
15
0
Share
Test Driven Development (A Short Introduction)
Internal company presentation, 2011.
John Chandler
April 08, 2011
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
16
Snowboarding Saved My Software Career
metaljoe
0
13
Neurodiversity in Tech
metaljoe
0
61
Neurodiversity Lightning Talk
metaljoe
0
15
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
13
Regular Expressions
metaljoe
0
17
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
22
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
15
Python, DOT, and Visualising Legacy Code The Lazy Way
metaljoe
0
22
Other Decks in Programming
See All in Programming
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
1
610
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.3k
エージェンティックRAGにAWSで入門しよう!
har1101
5
540
Oxlintのカスタムルールの現況
syumai
5
990
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
100
Inside Stream API
skrb
1
630
LLM Plugin for Node-REDの利用方法と開発について
404background
0
160
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
200
Claspは野良GASの夢をみるか
takter00
0
160
AIとASP.NET Coreで雑Webアプリを作った話
mayuki
0
270
Datadog × OpenTelemetry 入門と実践のあいだ
kn_to_maxpno
1
140
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
810
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
330
40k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How GitHub (no longer) Works
holman
316
150k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Designing Experiences People Love
moore
143
24k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
440
Navigating Weather and Climate Data
rabernat
0
210
Between Models and Reality
mayunak
4
320
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!