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
1
3k
Refactoring and stuff
My first talk as presented to the NYC Cocoaheads group.
Samuel Goodwin
March 09, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
160
Codex の「自走力」を高める
yorifuji
0
460
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
7.6k
オブザーバビリティ駆動開発って実際どうなの?
yohfee
3
690
浮動小数の比較について
kishikawakatsumi
0
380
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
2
160
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
210
CSC307 Lecture 14
javiergs
PRO
0
450
エージェント開発初心者の僕がエージェントを作った話と今後やりたいこと
thasu0123
0
230
PJのドキュメントを全部Git管理にしたら、一番喜んだのはAIだった
nanaism
0
230
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
310
あなたはユーザーではない #PdENight
kajitack
4
300
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
230
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.5k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
190
Game over? The fight for quality and originality in the time of robots
wayneb77
1
130
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
120
The Cost Of JavaScript in 2023
addyosmani
55
9.7k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
370
Leo the Paperboy
mayatellez
4
1.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
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: