Wednesday, May 22, 2013 [Tweets] [Favorites]

Getting Started With ReactiveCocoa

Ash Furrow:

ReactiveCocoa is a tool that programmers can use to make writing apps easier by removing state. However, even in a “completely reactive” app, you have to deal with non-ReactiveCocoa code. Things like table view delegate methods, for example. When you want to bridge the gulf between non-reactive and reactive worlds, use RACSubjects.

While subscriptions are useful and necessary for performing side-effects, be careful not to overuse them. They are like mutable variables – state – which ReactiveCocoa tries to avoid. Don’t use RACSubjects to manipulate application state where binding properties to mapped signals can work instead.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment