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
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
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
13
3.4k
OSもどきOS
arkw
0
400
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
340
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
Modding RubyKaigi for Myself
yui_knk
0
880
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
140
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
2.1k
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
430
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
240
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.3k
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
190
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
180
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
370
For a Future-Friendly Web
brad_frost
183
10k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
160
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!