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
Bugs - What are they good for
Search
Leif Gensert
December 05, 2019
Technology
45
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bugs - What are they good for
Leif Gensert
December 05, 2019
More Decks by Leif Gensert
See All by Leif Gensert
Sorbet - Is it really that tasty?
leifg
0
77
state_of_functional_programming.pdf
leifg
0
73
Parsers in JavaScript
leifg
0
58
Building Event Sourced Apps
leifg
1
880
Unicode Spaß
leifg
0
57
Event Sourcing - The Story Telling of Processes
leifg
1
98
Elixir Releases
leifg
0
160
Introduction to Rails
leifg
0
78
JRuby - The enterprise view
leifg
1
130
Other Decks in Technology
See All in Technology
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
150
Rust で関数型ドメインモデリング
takonda
0
170
専門領域のAIをどう評価するか
bengo4com
2
350
~最速でビジネスインパクトを創出する~ Sansanのデータ基盤と活用事例
sansantech
PRO
0
110
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
130
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
160
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
5
1.2k
hackers_champloo_2026_tidb
makocchi
0
170
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
270
Kiro Crewで「みのるん式」仕事術やってみた
minorun365
PRO
3
940
フィンテック養成勉強会#68
finengine
0
180
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
250
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
How to train your dragon (web standard)
notwaldorf
96
6.9k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Utilizing Notion as your number one productivity tool
mfonobong
4
620
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
610
Game over? The fight for quality and originality in the time of robots
wayneb77
1
310
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Unsuck your backbone
ammeep
672
58k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Transcript
1 Bugs What are they good for?
None
What is a bug?
“First actual case of bug being found” Grace Hopper -
1947
“I did find a bug in my apparatus” Thomas Edison
- 1878
The Crash <> Request Scale Crash Change Request ⚠
Let’s ship some products
Numbers only?
Nope
“You didn’t say you wanted to ship stuff to the
Queen”
“Well you should know how addresses work”
The Crash <> Request Scale Crash Change Request ⚠
Record Investigate Fix
None
Reproduce It Fix It Ship It
Find a reproducible scenario
Speeds up fixing process
accepted Closed Won
paid Closed Lost
context 'accepted order' do let(:order) { build(:order, status: 'accepted') }
it 'returns "closed won"' do expect(deal_stage(order)).to eq('closed won') end end context 'paid order' do let(:order) { build(:order, status: 'paid') } it 'returns "closed won"' do expect(deal_stage(order)).to eq('closed won') end end
def deal_stage(order) return 'enquired' if order.nil? return 'quoted' if order.open?
return 'closed won' if order.accepted? 'closed lost' end
Lets you try out different solutions
Makes it clear what to fix
NoMethodError: undefined method `date’ for nil:NilClass
def render(order) { id: order.id, delivery_date: order.delivery.date } end
def render(order) { id: order.id, delivery_date: order.delivery&.date } end
GET /api/v1/orders?status=delivered • Order 01 • Order 02 • Order
03
Confidence that bug has been fixed
Continuous Integration Heroku Review Apps Create App Precompile Assets Create/Migrate
Database Launch App Code
But what about actually fixing the bugs?
def deal_stage(order) puts "What's happening?: #{order.inspect}" return 'enquired' if order.nil?
puts "What's happening?: #{order.inspect}" return 'quoted' if order.open? puts "What's happening?: #{order.inspect}" return 'closed won' if order.accepted? puts "What's happening?: #{order.inspect}" 'closed lost' end Puts Debugging
github.com/pry/pry def deal_stage(order) binding.pry return 'enquired' if order.nil? return 'quoted'
if order.open? return 'closed won' if order.accepted? 'closed lost' end
Is it really the culprit? Caching Third Party Libraries Recent
Changes User
Push Continuous Integration Deploy Revert Continuous Integration
Record Investigate Fix Now Depends on Urgency/Impact
My Latest Bug
None
None
None
None
Reproduce It Don’t jump to conclusions