- Not turning on Hosey-level warnings.
- Not treating warnings as errors.
- Not fixing every single static analyzer issue.
- Not downloading crash logs from iTunes Connect.
- Putting things in your .h file that shouldn’t be public, that should be in a class extension in the .m file.
- Using short variable names like
img
andbtn
. - Not using
#pragma mark
. - Not understanding the concept of designated initializers.
- Using tap gesture recognizers when you need a button. (Think of accessibility.)
- Not de-queuing table cells.
- Calling viewDidLoad from your own code.
- Passing model objects to a
UITableViewCell
subclass. - Not using conditional GET for web resources that might not change.
- Not testing with a clean install.
- Not using curly quotes — “” and ‘’ — in text that users see, including error messages.
- Breezy and unnecessary comments like
//nil it out, kemo sabe
. - Not using
NSLocalizedString
. - Using
false
andtrue
instead ofYES
andNO
. - Not testing performance with Instruments.
- Not analyzing memory use and looking for memory leaks with Instruments.
Jan 3, 2013
The Seven Deadly Sins of Coding-C
I’d also add a bunch of other sins. They may not be deadly, but they’re sins:
Posted by
gavinmatix
at
12:51 PM