Building Type-Safe APIs in Swift
Swift has a lot to offer, but it isn't always obvious how to get the most out of the language. I often see developers compromise the APIs they build by using stringly typed code while Swift provides features that make stringly typed code unnecessary. In this course, I show you how a handful of simple patterns and techniques can help you build APIs that are type-safe, elegant, and intuitive to use.
We cover a range of topcis, including proven design patterns to eliminate stringly typed code, unit testing, code coverage, and protocol-oriented programming. The goal of this course is to give you the tools and knowledge you need to write elegant, type-safe, intuitive code.
Integrating analytics into a project is without a doubt my least favorite task. It often compromises the carefully crafted architecture of the project to some extent. What I want to focus on in this course is how we can improve analytics by avoiding string literals and stringly typed code. We use a simple application throughout this course. The application is very basic, but it nicely illustrates the problems we often face in the projects we work on. We use SwiftUI in this course, but everything you learn also applies to applications that are powered by UIKit.