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
310
The Customer Gap
gordondiggs
1
130
Picking Records with JavaScript and a Button
gordondiggs
0
89
Kafka Partitioning Algorithm
gordondiggs
0
170
Supbutton
gordondiggs
0
97
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
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
310
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
380
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
130
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
230
iOSDC2026登壇資料.pdf
riofujimon
0
170
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
230
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.1k
Java 27新機能 / Java 27 new features
kishida
2
150
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
300
Omarchy Tokyo やると聞いて UMPC 買ってセットアップしてきた
mtsmfm
0
150
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
270
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
8
5.2k
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
500
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.2k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
850
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
Are puppies a ranking factor?
jonoalderson
2
3.9k
How to Ace a Technical Interview
jacobian
281
24k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
A Soul's Torment
seathinner
8
3.6k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
280
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