Pure functions might seem like a mostly theoretical concept at first, but they have the potential to give us some very real, practical benefits — from increased reuse and testability, to more predictable code. This week, let’s take a look at how pure functions might be used in Swift — and how we can apply them to solve real problems in a very nice way.
This week, let's take a look at a way of writing networking code that utilizes Apple's built-in URLSession API, while augmenting it using Futures & Promises, as well as several functional programming concepts.
Brandon Williams and Stephen Celis, formerly iOS developers at Kickstarter and now hosts of Point-Free, join John to talk about functional programming in Swift, and how it can be used to build apps, websites, and even control the world.
Chris Eidhof, founder of objc.io and co-host of Swift Talk, joins John to talk about app architecture, functional programming, the "rockstar developer culture", picking database solutions and much more.
Languages that support first class functions enable us to use functions and methods just like any other object or value. We can pass them as arguments, save them in properties or return them from another function. In order words, the language treats functions as "first class citizens".