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
190
2
Share
Test-Driven Design
The main idea behind TDD, why it matters, and how to do it
isa
January 08, 2013
More Decks by isa
See All by isa
Introduction to Functional Programming
isa
2
370
Innovative Thinking
isa
1
98
We are ThoughtWorks
isa
0
290
Hala Bireysellik mi?
isa
1
82
Agile Estimation & Agile Metrics
isa
1
260
Microservices
isa
13
530
Configuration Management
isa
2
150
Assuring Quality in Borsa Istanbul
isa
2
87
Software Development in the Wild
isa
4
130
Other Decks in Programming
See All in Programming
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
260
ファインチューニングせずメインコンペを解く方法
pokutuna
0
230
見せてもらおうか、 OpenSearchの性能とやらを!
shunta27
1
160
ロボットのための工場に灯りは要らない
watany
12
3.3k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.2k
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
570
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
310
Laravel Nightwatchの裏側 - Laravel公式Observabilityツールを支える設計と実装
avosalmon
1
280
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
260
AI 開発合宿を通して得た学び
niftycorp
PRO
0
180
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
130
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
220
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
170
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Utilizing Notion as your number one productivity tool
mfonobong
4
280
The Pragmatic Product Professional
lauravandoore
37
7.2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
110
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
170
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Paper Plane (Part 1)
katiecoart
PRO
0
6.2k
The SEO Collaboration Effect
kristinabergwall1
0
410
Designing Experiences People Love
moore
143
24k
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