Created
August 26, 2011 22:04
-
-
Save thekarladam/1174535 to your computer and use it in GitHub Desktop.
Cocoa commandments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Thou shalt always use Key Value Observing | |
2. Thou shalt not block the main thread | |
3. Thou shalt compile with zero errors or warnings | |
4. Thou shalt use #pragma mark to separate code into groups based on related functionality |
Thou shalt never write interface code achievable through Interface Builder.
I disagree with that one Streza. Interface builder is not something I often use. The more custom the UI the less Interface Builder makes an appearance.
Meh, I haven't implemented loadView in years and I'm better for it. Custom UIView subclasses laid out in IB FTW.
Thou shalt make copious use of categories
Karl: if it can't be done in IB, sure. If it can, but you're writing code anyway, you're doing it wrong. Less code == less bugs. And the cases where it can't be done are being addressed by Apple.
I certainly agree with the logic behind your statement, just not the execution of it
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Though shalt use #pragma message() instead of #warning for thy fixmes