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
Refactoring and stuff
Search
Samuel Goodwin
March 09, 2012
Programming
3.1k
1
Share
Refactoring and stuff
My first talk as presented to the NYC Cocoaheads group.
Samuel Goodwin
March 09, 2012
Other Decks in Programming
See All in Programming
決定論 vs 確率論:Gemini 3 FlashとTF-IDFを組み合わせた「法規判定エンジン」の構築
shukob
0
160
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
310
Road to RubyKaigi: Play Hard(ware)
makicamel
1
550
20260514_its_the_context_window_stupid.pdf
heita
0
600
Are We Really Coding 10× Faster with AI?
kohzas
0
120
Programming with a DJ Controller — not vibe coding
m_seki
3
790
Explore CoroutineScope
tomoeng11
0
170
AgentCore Optimizationを始めよう!
licux
3
210
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
170
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.9k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
200
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
190
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
320
The Spectacular Lies of Maps
axbom
PRO
1
740
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
110
We Are The Robots
honzajavorek
0
220
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
560
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
160
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Making Projects Easy
brettharned
120
6.6k
Optimising Largest Contentful Paint
csswizardry
37
3.7k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
WENDY [Excerpt]
tessaabrams
10
37k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Transcript
Samuel Goodwin @samuelgoodwin Refactoring and Stuff
What is refactoring? • Changing code without changing code behavior.
Why refactor? • Code is for humans • Nobody's perfect
• Requirements change
When to refactor? • When it smells • When code
becomes too rigid • Maybe not before deadlines • Sometimes not at all ( nuke and pave! )
How to refactor? • Step 0: Use version control!
Objc_dep ( github.com/nst/objc_dep )
Delete
MVC Ideally...
What to aim for? • Single responsibility principle • Open/closed
principle • Liskov Substitution principle • Interface segregation principle • Dependency inversion principle
• Coding Guidelines for Cocoa • Concepts in Objective-C Programming
• Cocoa Fundamentals Guide From the guys who brought you Cocoa: