O'Reilly logo

iPhone® Application Development For Dummies®, 4th Edition by Neal Goldstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20

Ten Ways to Be a Happy Developer

In This Chapter

arrow Finding out how not to paint yourself into a corner

arrow 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required