-
-
Save thekarladam/1174535 to your computer and use it in GitHub Desktop.
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 |
pbowden
commented
Aug 26, 2011
- Cool story, though
Though shalt compile with clang as the Lord intended
Though shalt use #pragma mark
Though shalt use #pragma message() instead of #warning for thy fixmes
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