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
Types of Coding with Automated Tests
Search
Lemi Orhan Ergin
PRO
November 16, 2018
Technology
17
440
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
Tweet
Share
More Decks by Lemi Orhan Ergin
See All by Lemi Orhan Ergin
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
2
190
Unlearn Product Development
lemiorhan
PRO
8
1.6k
Unlearn OOP: Back To Origins
lemiorhan
PRO
6
3k
Unlearn Modularity
lemiorhan
PRO
6
530
The Disturbing Truth: Why Do Most Software Projects Suck?
lemiorhan
PRO
4
340
Yazılım Geliştirme Hakkında Okulda Bahsedilmeyenler
lemiorhan
PRO
2
660
Things About Software Development Not Taught In School
lemiorhan
PRO
5
210
Fixing The Typos in Softvare Devlopment - DevFest İzmir 2023
lemiorhan
PRO
3
260
SOLID Is Dead, Long Live SOLID
lemiorhan
PRO
5
750
Other Decks in Technology
See All in Technology
第27回クラウド女子会 ~re:Invent 振り返りLT会~ 私の周辺で反響のあった re:Invent 2024 アップデートつれづれ/reinvent-2024-update-reverberated-around-me
emiki
1
550
GraphRAG: What I Thought I Knew (But Didn’t)
sashimimochi
0
110
20250122_個人向けCopilotどうなん
ponponmikankan
0
180
2025-01-24-SRETT11-OpenTofuについてそろそろ調べてみるか
masasuzu
0
120
プロダクト価値を引き上げる、「課題の再定義」という習慣
moeka__c
0
140
15年入社者に聞く! これまでのCAのキャリアとこれから
kurochan
1
130
SREとしてスタッフエンジニアを目指す / SRE Kaigi 2025
tjun
14
4.6k
今から、 今だからこそ始める Terraform で Azure 管理 / Managing Azure with Terraform: The Perfect Time to Start
nnstt1
0
280
TypeScriptでモジュラーモノリスやってみた
diggymo
0
100
Plants vs thieves: Automated Tests in the World of Web Security
leichteckig
0
140
インフラコストとセキュリティ課題解決のためのリアーキテクチャリング / srekaigi2025
hgsgtk
3
3.4k
メンバーがオーナーシップを発揮しやすいチームづくり
ham0215
2
340
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
67
4.6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.3k
Facilitating Awesome Meetings
lara
51
6.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
How GitHub (no longer) Works
holman
312
140k
Making the Leap to Tech Lead
cromwellryan
133
9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
39
1.9k
Done Done
chrislema
182
16k
Optimizing for Happiness
mojombo
376
70k
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