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
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
350
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
200
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
0
170
霧の中の代数的エフェクト
funnyycat
1
310
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
350
Vite+ Unified Toolchain for the Web
naokihaba
0
720
フィードバックで育てるAI開発
kotaminato
1
110
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
300
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
150
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
720
ローカルLLMでどこまでコードが書けるか -縮小版 / How much code can be written on a local LLM Shortened
kishida
2
180
Performance Engineering for Everyone
elenatanasoiu
0
260
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
247
13k
Music & Morning Musume
bryan
47
7.3k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.6k
Facilitating Awesome Meetings
lara
57
7k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Skip the Path - Find Your Career Trail
mkilby
1
160
The Cult of Friendly URLs
andyhume
79
6.9k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
GitHub's CSS Performance
jonrohan
1033
470k
How to Talk to Developers About Accessibility
jct
2
290
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
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: