Other Benefits of Store Objects

Now that you’ve changed Nerdfeed to use a store and added new features involving external sources of data, let’s return to the general concept of store objects and the benefits of using them.

The main selling point of store objects is that we move the burden of dealing with external sources of data away from controllers and put all the request logic in one place. This is reason enough to use MVCS, but we’ve found other benefits of using store objects that we’d like to share.

We can write the controller logic of an application independently of its store logic. This really carries two benefits because the controller and store logic are independent in time and in space.

When beginning a project, sometimes the external ...

Get iOS Programming: The Big Nerd Ranch Guide 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.