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
The Joys and Pains of Working with an Old Codebase
Search
Gordon Diggs
May 17, 2014
Programming
2.4k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Joys and Pains of Working with an Old Codebase
Gordon Diggs
May 17, 2014
More Decks by Gordon Diggs
See All by Gordon Diggs
John Coltrane: Lessons in Leadership
gordondiggs
2
320
The Customer Gap
gordondiggs
1
130
Picking Records with JavaScript and a Button
gordondiggs
0
91
Kafka Partitioning Algorithm
gordondiggs
0
170
Supbutton
gordondiggs
0
100
Rayons
gordondiggs
0
100
Sous Vide
gordondiggs
0
120
Dev Events & Internal Tools at Paperless Post
gordondiggs
0
130
The Joys and Pains of Working With an Old Codebase
gordondiggs
0
160
Other Decks in Programming
See All in Programming
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
460
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2k
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
2
2.1k
FreeBSDでZabbixを動かす
kenkino
0
360
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
170
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
140
残高管理から台帳サービスへの進化
artoy
0
170
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
Simple Storage Service(S3) is not simple
iwatsukayura
0
220
setup-vp GitLab対応の裏側
naokihaba
0
150
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
310
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
470
Making the Leap to Tech Lead
cromwellryan
135
10k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
970
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
Fireside Chat
paigeccino
43
4.1k
sira's awesome portfolio website redesign presentation
elsirapls
0
440
What's in a price? How to price your products and services
michaelherold
247
13k
Building an army of robots
kneath
307
47k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
270
Design in an AI World
tapps
1
350
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
Transcript
The Joys and Pains of Working With An Old Codebase
Gordon Diggs BACON 2014
The Joys and Pains of Working With An Old Codebase
Gordon Diggs BACON 2014
if total_guests == 150 && total_guests + 1 == 151
... end
Outline About Me Introduction to our codebase Adding features Executing
refactors Tools we use The joys
@gordondiggs Record Collector
@gordondiggs Baker / Cook
@gordondiggs Baker / Cook #devslovebaking
@gordondiggs New York City Resident
None
"I have always found that plans are useless but planning
is indispensable." - Dwight D. Eisenhower
The Codebase Ruby 2.1 Rails 2.3 Postgres, Redis, Memcached Started
in 2008 60 contributors ~128k lines of application code
#TODO: redo this
How to add features
1. Plan out the feature
1. Plan out the feature Have developers involved in the
planning
1. Plan out the feature Have developers involved in the
planning ! Let your unique development concerns be known
1. Plan out the feature Have developers involved in the
planning ! Let your unique development concerns be known ! Make it a conversation
2. Do a technical kick-off
2. Do a technical kick-off What new data models do
we need? ! What needs to be refactored? ! What might the challenges be?
3. Be prepared to do something else entirely
4. Write lots of tests, especially for things that already
exist
5. Document Things
Build awesome things
# because the "update_attributes!" does not behave as expected, we
need this def update_attributes_is_broken_with_nested_attribute_validations_in_rails ... end
How to execute refactors
Treat them like features
1. Plan out the refactor
2. Do a technical kick-off
3. Write lots of tests, especially for things that already
exist
4. Document Things
Build awesome things
Tools we use (and love)
None
None
None
None
None
None
None
None
Peter Welch - Programming Sucks stilldrinking.org/programming-sucks
The Joys
Get to fix lots of bugs
Get to fix lots of interesting bugs
Give time to fix the bugs
Treat your codebase like a campsite
Build awesome things
Thank you! @gordondiggs Special Thanks to: Mike Bernstein, Michael Hansen,
Solomon Kahn, Alan Macdougall, Aaron Quint, Todd Mazierski, Justin Searls, Stephanie Shih, Alyssa Stein