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
140
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
350
Innovative Thinking
isa
1
78
We are ThoughtWorks
isa
0
180
Hala Bireysellik mi?
isa
1
62
Agile Estimation & Agile Metrics
isa
1
230
Microservices
isa
13
510
Configuration Management
isa
2
110
Assuring Quality in Borsa Istanbul
isa
2
62
Software Development in the Wild
isa
4
110
Other Decks in Programming
See All in Programming
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
320
Netty Chicago Java User Group 2024-04-17
sullis
0
200
Milestoner
bkuhlmann
1
410
Fragment Composition of GraphQL
quramy
13
1.5k
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
130
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
43
19k
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
280
ServerAction で Progressive Enhancement はどこまで頑張れるか? / progressive-enhancement-with-server-action
takefumiyoshii
6
430
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
510
Three ways to use AI on Android: The Good, the Bad and the Ugly
marxallski
0
110
新宿ダンジョンを可視化してみた
satoshi7190
3
390
使ってみよう Azure AI Document Intelligence
kosmosebi
2
360
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Agile that works and the tools we love
rasmusluckow
325
20k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1k
A better future with KSS
kneath
231
16k
Building Effective Engineering Teams - LeadDev
addyosmani
32
1.9k
Producing Creativity
orderedlist
PRO
338
39k
Design by the Numbers
sachag
274
18k
Unsuck your backbone
ammeep
663
57k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
Building Your Own Lightsaber
phodgson
100
5.7k
Visualization
eitanlees
137
14k
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