Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Types of Coding with Automated Tests
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Lemi Orhan Ergin
PRO
November 16, 2018
Technology
490
17
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Types of Coding with Automated Tests
In these slides, I compare different styles of coding styles with automated tests written.
Lemi Orhan Ergin
PRO
November 16, 2018
More Decks by Lemi Orhan Ergin
See All by Lemi Orhan Ergin
When Code Becomes Disposible...
lemiorhan
PRO
3
180
Rebirth of Software Craftsmanship in the AI Era
lemiorhan
PRO
5
3.1k
Conway's Law Never Lies
lemiorhan
PRO
1
370
Fixing The Typos in Engineering Culture
lemiorhan
PRO
3
230
Everything You Know About Agile Is Wrong
lemiorhan
PRO
4
2.5k
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
5
800
Unlearn Product Development
lemiorhan
PRO
10
2k
Unlearn OOP: Back To Origins
lemiorhan
PRO
6
3.4k
Unlearn Modularity
lemiorhan
PRO
8
990
Other Decks in Technology
See All in Technology
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
3
250
React改造してみた
tsukina_7mochi
0
150
AWSセキュリティで活用するAI機能
cmusudakeisuke
1
200
野蛮なアジャイル [サイボウズ発!]組織の常識を覆した反骨のスクラム実践記 / Barbaric Agile - Enterprise Agile Study Group
ama_ch
0
120
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
300
DBについての基礎説明(MySQL編) - コロプラ 2026年度 新卒研修
colopl
0
160
LLM-as-a-Judgeは本当に信頼できるのか――評価器を評価する話
taka_aki
3
1k
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
220
国際カードブランドルール変更に伴うクレジットカード決済取引仕様変更について
k1style
0
150
Optunaの最新リリースv5.0について
pfn
PRO
0
140
CSS2026:OWS研究会・招待講演「世界観を、実装する」
atsush1_sada
2
210
Temporal 最高!でも改めて「日付」について調べたら人類の負債すぎる件
riyaamemiya
0
220
Featured
See All Featured
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
870
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Building AI with AI
inesmontani
PRO
1
1.3k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
790
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Transcript
types of coding automated tests with lemi orhan ergin, agile
software craftsman @ craftbase
CODE TEST REFACTOR Test Driven Development TEST FAIL TEST PASS
START
CODE Refactoring is skipped to be faster Increased duplication in
code Long methods We have to clean our mess TEST FAIL TEST PASS Tested Mess Based Development TEST START
Refactoring is skipped to be faster Increased duplication in code
Long methods We have to clean our mess TEST FAIL TEST PASS Test First Then Write Everything Based Development TEST START CODE CODE CODE CODECODECOD ODE
CODE TEST FAIL TEST PASS TEST FAIL Failed test guaranteed
Can mask ignorance of domain Dummy-Test First Development TEST update same TEST REFACTOR START
CODE START TEST REFACTOR TEST PASS No failing tests Useful
for exploring Losing focus on design Mock misuse Too much refactoring required Code First Development
CODE START TEST REFACTOR TEST PASS Uncovered bugs Hard to
write tests Bored programmers Lower test quality Test Last Development CODE CODE CODECODECODE CODE
CODE TEST REFACTOR TEST PASS START TEST TEST TEST TEST
TEST TEST TEST TEST TEST TEST FAIL TEST Allows planning for future code Loss of focus Harder to code against Test Everything First Development
CODE TEST REFACTOR TEST PASS START TEST FAIL Large, bri!le
setup methods Slow tests High level tests People hate testing Huge Setup Based Development SETUP
CODE SCENARIO REFACTOR Acceptance Test Driven Development TEST PASS START
TEST TEST FAIL SCENARIO FAIL SCENARIO PASS Increased focus Focus on requirements Do also the right thing