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
44
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
76
state_of_functional_programming.pdf
leifg
0
71
Parsers in JavaScript
leifg
0
58
Building Event Sourced Apps
leifg
1
880
Unicode Spaß
leifg
0
56
Event Sourcing - The Story Telling of Processes
leifg
1
96
Elixir Releases
leifg
0
160
Introduction to Rails
leifg
0
77
JRuby - The enterprise view
leifg
1
130
Other Decks in Technology
See All in Technology
[Kiro Meetup #7] Kiro Crew Dive Deep
konippi
0
440
Swap and Memory Reclaim - Squeezing Out More RAM
ennael
PRO
1
1.4k
Confitura 2026
logico_jp
0
110
Terraformを用いたJamf Pro構成のIaC, GitOps化への挑戦
yukun
0
120
「大丈夫そう?」をObservabilityで確かめる
mrmtsu
0
240
プラットフォームを「作る」、 チームに「入り込む」
sansantech
PRO
0
410
大阪オフィスに Unitree Go2 がやってきたので Physical AI やってみた
dafujii
0
180
Making AI Agents Safe and Fast- Jev, Obsidian, and the Meta-Harness
x5gtrn
PRO
0
170
顧客の成果創出とプロダクトの成長を 両立するためのFDE
sansantech
PRO
0
540
The seven pitfalls of AI (revised version)
ufried
0
150
Harness Engineering on Rails
joelq
0
770
Databricksメトリクスビューはじめてのもくもく会
taka_aki
0
150
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
2
11k
Utilizing Notion as your number one productivity tool
mfonobong
4
600
Site-Speed That Sticks
csswizardry
13
1.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The Limits of Empathy - UXLibs8
cassininazir
1
690
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
440
How to build a perfect <img>
jonoalderson
1
6k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
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