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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Gordon Diggs
May 17, 2014
Programming
1
2.4k
The Joys and Pains of Working with an Old Codebase
Gordon Diggs
May 17, 2014
Tweet
Share
More Decks by Gordon Diggs
See All by Gordon Diggs
John Coltrane: Lessons in Leadership
gordondiggs
2
290
The Customer Gap
gordondiggs
1
110
Picking Records with JavaScript and a Button
gordondiggs
0
80
Kafka Partitioning Algorithm
gordondiggs
0
140
Supbutton
gordondiggs
0
64
Rayons
gordondiggs
0
66
Sous Vide
gordondiggs
0
88
Dev Events & Internal Tools at Paperless Post
gordondiggs
0
120
The Joys and Pains of Working With an Old Codebase
gordondiggs
0
150
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
560
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
300
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
4
1.3k
Codex の「自走力」を高める
yorifuji
0
1.2k
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
420
The free-lunch guide to idea circularity
hollycummins
0
230
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
110
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
200
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
980
Claude Code Skill入門
mayahoney
0
400
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
270
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
190
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Speed Design
sergeychernyshev
33
1.6k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
120
Automating Front-end Workflow
addyosmani
1370
200k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
エンジニアに許された特別な時間の終わり
watany
106
240k
Being A Developer After 40
akosma
91
590k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
300
RailsConf 2023
tenderlove
30
1.4k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
74
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