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 Design
Search
isa
January 08, 2013
Programming
2
180
Test-Driven Design
The main idea behind TDD, why it matters, and how to do it
isa
January 08, 2013
Tweet
Share
More Decks by isa
See All by isa
Introduction to Functional Programming
isa
2
360
Innovative Thinking
isa
1
95
We are ThoughtWorks
isa
0
280
Hala Bireysellik mi?
isa
1
79
Agile Estimation & Agile Metrics
isa
1
260
Microservices
isa
13
530
Configuration Management
isa
2
140
Assuring Quality in Borsa Istanbul
isa
2
81
Software Development in the Wild
isa
4
120
Other Decks in Programming
See All in Programming
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
240
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
590
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
2026年 エンジニアリング自己学習法
yumechi
0
130
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
510
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
290
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
480
KIKI_MBSD Cybersecurity Challenges 2025
ikema
0
1.3k
CSC307 Lecture 03
javiergs
PRO
1
490
Vibe codingでおすすめの言語と開発手法
uyuki234
0
220
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
270
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
170
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
310
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
72
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
140
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
How to build a perfect <img>
jonoalderson
1
4.9k
Transcript
Test-Driven Design for dummies
Agenda • What is TDD? • Why TDD? • For
the first time • More beginner style (tomorrow) • What about legacy? (on Friday)
Testing in General http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-32-02-metablogapi/8054.image_5F00_thumb_5F00_35C6E986.png
What is TDD • Test-Driven what? • They don’t show
you how to write software in school, ‘coz they don’t know either • How to be professional like this?
What is TDD • It’s actually one simple rule: •
Specify what the code should do, and make it happen • Repeat it! • It’s about how you want to use your unit • Tests are side-effects
Red-Green-Refactor RED GREEN REFACTOR
It’s THE Design http://blog.myedonline.com/wp-content/uploads/2012/06/trying_to_find_X.jpg simplicity really matters
Why TDD • Use your brain before your fingers •
Because you are not that smart, remember “dummies” ;) • It’s a safety-net • It helps you remember things, and why you do them • Out-of-the-box regression
Unless http://farm7.static.flickr.com/6193/6152609977_32902aa668.jpg You wanna be like him?
Unless or him?
Time We don’t have time to NOT write TESTS http://www.typemock.com/blog/2009/03/05/the-cost-of-test-driven-development/
Cost And these guys are from Micro$oft ;) http://www.typemock.com/blog/2009/03/05/the-cost-of-test-driven-development/
What About Feedback http://www.care-marketing-advice.com/wp-content/uploads/2012/07/fast-response-feedback-questionnaire.jpg
Is It Difficult • Not really? • It’s a discipline
• And still difficult? Then do it more often..
Let’s Practice