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
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
120
Picking Records with JavaScript and a Button
gordondiggs
0
88
Kafka Partitioning Algorithm
gordondiggs
0
150
Supbutton
gordondiggs
0
88
Rayons
gordondiggs
0
94
Sous Vide
gordondiggs
0
110
Dev Events & Internal Tools at Paperless Post
gordondiggs
0
130
The Joys and Pains of Working With an Old Codebase
gordondiggs
0
150
Other Decks in Programming
See All in Programming
IBM Bobを活用したレガシーアプリの最新化
oniak3ibm
PRO
1
190
AIで効率化できた業務・日常
ochtum
0
120
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
520
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
150
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
160
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
250
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
560
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
180
Agentic UI
manfredsteyer
PRO
0
130
Modding RubyKaigi for Myself
yui_knk
0
910
Oxcを導入して開発体験が向上した話
yug1224
4
300
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
450
Embracing the Ebb and Flow
colly
88
5.1k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
420
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
360
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
940
The Cult of Friendly URLs
andyhume
79
6.9k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
What's in a price? How to price your products and services
michaelherold
247
13k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
850
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