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
Search
Hyperjump Tech
May 07, 2021
Programming
45
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Test Driven Development
Explain how TDD is actually happening in a real programming case.
Hyperjump Tech
May 07, 2021
More Decks by Hyperjump Tech
See All by Hyperjump Tech
Web Development Tips
hyperjump
3
65
Pull Request, Make & Review
hyperjump
3
48
Next.JS
hyperjump
3
32
Pull Request
hyperjump
3
27
IT Process & Delivery
hyperjump
3
50
Trunk Based Development
hyperjump
3
66
Develop NPM Package Locally
hyperjump
3
60
Mobile Application Security
hyperjump
3
57
Storage for the WEB
hyperjump
4
78
Other Decks in Programming
See All in Programming
SLOをサービス品質の共通言語にするために 取り組んできたこと
wakana0222
0
500
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
580
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
260
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
210
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
230
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.2k
5分で問診!Composer セキュリティ健康診断
codmoninc
0
250
Snowflake Summitでの新機能 CoCo / CoWork / snowflake-summit-2026-overall-what-new-coco
tatsuhiro
1
230
AI時代の仕事技芸論〜ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ(スクフェス仙台 2026バージョン)
kuranuki
0
640
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
190
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
130
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
0
170
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Documentation Writing (for coders)
carmenintech
77
5.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.6k
From π to Pie charts
rasagy
0
240
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
320
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Practical Orchestrator
shlominoach
191
11k
A Soul's Torment
seathinner
6
3.1k
Become a Pro
speakerdeck
PRO
31
6k
Into the Great Unknown - MozCon
thekraken
41
2.6k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
520
Transcript
Test Driven Development
What is TDD ?
The Red/Green/Refactor Cycle Refactor and clean the code Write test
and watch it fails Write minimal code that makes that test pass
None
Write test.
None
None
None
None
Run test, watch it fails.
None
Write minimal code, pass the test.
None
Run test, watch it fails.
None
Write minimal code, pass the test.
None
Run test, watch it fails.
None
Refactor is the key
None
None
None
Run test, watch it fails.
None
Write minimal code, pass the test.
None
Run test, watch it fails.
None
Write minimal code, pass the test.
None
Run test, watch it fails.
None
Even more refactor.
None
Run test, watch it fails.
None
Write minimal code, pass the test.
None
Run test, watch it fails.
None
Ship code to production.
None
Refactor is the key, remember?
Refactoring is a disciplined technique for restructuring an existing body
of code, altering its internal structure without changing its external behavior. - Martin Fowler
None
Run test, watch it fails.
None
Why should we use TDD ?
TDD start with the end of mind, and walks you
through what is the next step you have to do to get the code working
None
None
None
None
75% of a developer’s time is spent on debugging
TDD eradicates fear of change - Eric Elliott
40%-80% fewer bugs in production* *https:/ /www.researchgate.net/publication/3249271_Guest_Editors'_Introduction_TDD--The_Art_ of_Fearless_Programming
Source https://www.codecademy.com/articles/tdd-red- green-refactor https://blog.cleancoder.com/uncle-bob/2014/1 2/17/TheCyclesOfTDD.html https://medium.com/javascript-scene/tdd-chan ged-my-life-5af0ce099f80 https://coralogix.com/log-analytics-blog/this-is- what-your-developers-are-doing-75-of-the-time -and-this-is-the-cost-you-pay/
https://pixabay.com/vectors/wow-bang-explosi on-pow-blast-155268/ https://heeris.id.au/2013/this-is-why-you-shoul dnt-interrupt-a-programmer/