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
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
170k Jobs a Day on GKE: Scaling Mercari's CI Platform - and What's Next for AI-Native Development
junyaokabe
0
120
メールのエイリアス機能を履き違えない
isshinfunada
0
250
MySQLとPostgreSQLって何が違うの?
akagami
0
130
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
350
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
510
tsc.rip を支える技術 / Kyoto.なんか #8
susisu
0
120
リアルな遅延を測る仕様
kota_yata
1
120
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
720
源内ハンズオン概要編
hideg
0
210
Cloudflare is Agents
chimame
0
180
VibeCodingからAgenticWorkflowへ
starfish719
0
770
Go 1.27 における memory allocation の高速化
andpad
0
300
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
340
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
A Tale of Four Properties
chriscoyier
163
24k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Odyssey Design
rkendrick25
PRO
2
770
Code Reviewing Like a Champion
maltzj
528
40k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
800
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
640
My Coaching Mixtape
mlcsv
0
260
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
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: