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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Hyperjump Tech
May 07, 2021
Programming
44
3
Share
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
62
Pull Request, Make & Review
hyperjump
3
48
Next.JS
hyperjump
3
31
Pull Request
hyperjump
3
26
IT Process & Delivery
hyperjump
3
43
Trunk Based Development
hyperjump
3
65
Develop NPM Package Locally
hyperjump
3
58
Mobile Application Security
hyperjump
3
57
Storage for the WEB
hyperjump
4
74
Other Decks in Programming
See All in Programming
誰も頼んでない機能を出荷した話
zekutax
0
150
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
470
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
670
JJUG CCC 2026 Spring: JSpecify で実現する Kotlin フレンドリーな Java API 設計
ternbusty
1
110
New "Type" system on PicoRuby
pocke
1
380
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
420
3Dシーンの圧縮
fadis
1
520
OSもどきOS
arkw
0
320
Moments When Things Go Wrong
aurimas
3
130
AIとRubyの静的型付け
ukin0k0
0
450
tsserverとは何だったのか、これからどうなるのか
nowaki28
1
420
AI Agent と正しく分析するための環境作り
yoshyum
3
640
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
850
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
270
WENDY [Excerpt]
tessaabrams
11
38k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
230
Exploring anti-patterns in Rails
aemeredith
3
380
The Curious Case for Waylosing
cassininazir
1
360
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Abbi's Birthday
coloredviolet
2
7.8k
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/