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
2.8k
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
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
0
240
Let's learn code review
riofujimon
2
340
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
920
Anthropic Cookbook のおすすめレシピ
schroneko
7
970
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
940
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
370
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
1
520
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
840
Ruby Pattern Matching
bkuhlmann
0
930
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
124
8.5k
It's Worth the Effort
3n
180
27k
The Invisible Side of Design
smashingmag
294
49k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
Agile that works and the tools we love
rasmusluckow
325
20k
Unsuck your backbone
ammeep
663
57k
How GitHub (no longer) Works
holman
304
140k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Clear Off the Table
cherdarchuk
84
310k
Git: the NoSQL Database
bkeepers
PRO
422
63k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Scaling GitHub
holman
457
140k
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: