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
Bugs - What are they good for
Search
Leif Gensert
December 05, 2019
Technology
28
0
Share
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
59
state_of_functional_programming.pdf
leifg
0
54
Parsers in JavaScript
leifg
0
51
Building Event Sourced Apps
leifg
1
850
Unicode Spaß
leifg
0
46
Event Sourcing - The Story Telling of Processes
leifg
1
76
Elixir Releases
leifg
0
140
Introduction to Rails
leifg
0
57
JRuby - The enterprise view
leifg
1
120
Other Decks in Technology
See All in Technology
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
260
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
280
QGISプラグイン CMChangeDetector
naokimuroki
1
360
AI駆動1on1〜AIに自分を育ててもらう〜
yoshiakiyasuda
0
120
「責任あるAIエージェント」こそ自社で開発しよう!
minorun365
9
1.8k
小説執筆のハーネスエンジニアリング
yoshitetsu
0
470
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
170
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
290
Code Interpreter で、AIに安全に コードを書かせる。
yokomachi
0
7k
昔はシンプルだった_AmazonS3
kawaji_scratch
0
320
自立を加速させる神器 - EMOasis #11
stanby_inc
0
130
AI와 협업하는 조직으로의 여정
arawn
0
110
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
エンジニアに許された特別な時間の終わり
watany
106
240k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
320
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
180
Site-Speed That Sticks
csswizardry
13
1.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
130
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
180
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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