How I Learned to Stop Worrying about State and Love ReactiveCocoa
summary
Claim: model UI and async work as streams with ReactiveCocoa to minimize mutable state and simplify branching logic. Uses ReactiveCocoa primitives—RACSignal, combineLatest and flattenMap, subscribeNext/sendError/complete—and composes an API client that returns signals so login → loadMe → loadNewsletters is one composed stream. Server-side email validation uses map returning signals plus switchToLatest cancels old requests; throttle and deliverOn handle rate limiting and main‑thread delivery. Example UI (signup button enablement) runs end‑to‑end as expected in the demo.
AI-written summary · about
