Swift Heroes 2025

Swift Heroes 2025

Controlling Side Effects with Swift
2025-04-09 , Main Stage

Side effects in your Swift programs are both a blessing and a curse. They can make or break your Swift code, and learning how to effectively control them is one of the most important skills any Swift programmer can acquire.
In this talk, we’ll start with the fundamentals, looking at the differences between pure and effectful functions and how they shape the way we test and reason about our code. Then, we’ll dive into two different approaches to controlling side effects:

One that most Swift developers already use every day but may see in a new light after this talk.

Another, radically different approach that unlocks powerful unit testing that doesn't require mocks and stubs and makes writing pure and composable programs a joy.

Come away with fresh insights and practical techniques to take your Swift code to the next level!

Alex Ozun is a software engineer with a ton of experience in mobile applications development. For the last 6 years he’s been developing the flagship iOS app at American Express, where he currently acts as a Staff iOS Engineer in a team of 60+ iOS engineers.
Outside work, Alex maintains a tech blog on advanced Swift topics at www.swiftology.io.