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
3
32
Test Driven Development
Explain how TDD is actually happening in a real programming case.
Hyperjump Tech
May 07, 2021
Tweet
Share
More Decks by Hyperjump Tech
See All by Hyperjump Tech
Web Development Tips
hyperjump
3
39
Pull Request, Make & Review
hyperjump
3
33
Next.JS
hyperjump
3
17
Pull Request
hyperjump
3
13
IT Process & Delivery
hyperjump
3
18
Trunk Based Development
hyperjump
3
48
Develop NPM Package Locally
hyperjump
3
36
Mobile Application Security
hyperjump
3
38
Storage for the WEB
hyperjump
4
36
Other Decks in Programming
See All in Programming
良いユニットテストを書こう
mototakatsu
11
3.4k
Fibonacci Function Gallery - Part 2
philipschwarz
PRO
0
190
Go の GC の不得意な部分を克服したい
taiyow
3
930
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.2k
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
150
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
350
php-conference-japan-2024
tasuku43
0
390
Online-Dokumentation, die hilft: Strukturen, Prozesse, Tools
ahus1
0
110
Jaspr Dart Web Framework 박제창 @Devfest 2024
itsmedreamwalker
0
120
GitHubで育つ コラボレーション文化 : ニフティでのインナーソース挑戦事例 - 2024-12-16 GitHub Universe 2024 Recap in ZOZO
niftycorp
PRO
0
790
AppRouterを用いた大規模サービス開発におけるディレクトリ構成の変遷と問題点
eiganken
1
340
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.2k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Producing Creativity
orderedlist
PRO
342
39k
Optimising Largest Contentful Paint
csswizardry
33
3k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Writing Fast Ruby
sferik
628
61k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Designing for humans not robots
tammielis
250
25k
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/