Chapter 20
Ten Ways to Be a Happy Developer
In This Chapter
Finding out how not to paint yourself into a corner
Avoiding “There’s no way to get there from here”
There are lots of things you know you’re supposed to do but don’t because you think they’ll never catch up with you. (After all, not flossing won’t cause you problems until your teeth fall out years from now, right?)
But in iPhone application development, those things catch up with you early and often, so I want to tell you about what I’ve learned to pay attention to from the very start in app development, as well as a few tips and tricks that lead to happy and healthy users.
Keep Things Loosely Coupled
A loosely coupled system is one in which each of its components has little or no knowledge (or makes no use of the knowledge it may have) of other components.
Loose coupling refers to the degree of direct knowledge that one class has of another — not about encapsulation, or to one class’s knowledge of another class’s attributes or implementation, but rather knowledge of that other class itself.
Remember Memory
The iOS does not store “changeable” memory (such as object data) on the disk to free space and then read it back in later when needed.
This fact means that running out of memory is easy, and you should use Automatic ...
Get iPhone® Application Development For Dummies®, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.