Zachary Waldowski is a developer of iOS & Cocoa apps at the < a href="https://bignerdranch.com">Big Nerd Ranch. He's a dedicated problem solver who has hacked on computers all his life, and now shares that experience with others teaching iOS and Cocoa classes around the world. When not obsessively perfecting every line of code in a project, he travels with his family and reads Apple API diffs.
Values come in many shapes and sizes, but the hardest way to think about them is in the fourth dimension: not now, but later. The majority of asynchronous programming boils down to some work that produces a value.
With generics, first-class functions, and powerful types, Swift gives us new ways to think about these problems. But many popular frameworks bill themselves as lifestyle changes, not just another tool in your tool belt. There is a simpler way; one that’s no less powerful, but scales when you need it to, using types.
Take a walk through this style of programming — what many languages call futures and promises — and learn about Deferred, a simplified model for doing work in the background.