Codable Witnesses

With special guest Luke Redpath, this series is an exploration of protocol witnesses and how we can use them to bend Codable to behave in different ways. This series explores Swift's generics, functional composition, and expressive API design.

Length: about 1 hour.

Start Series

Installments

1. Intro to Protocol Witnesses

free

In the next few episodes we will explore the concept of Protocol Witnesses. This is an advanced topic that can be somewhat hard to approach, but in learning about Protocol Witnesses you will see how we can leverage the Swift language and functional programming to do some really cool things.

2. Exploring Witnesses for Encodable

Subscribers only

We start exploring the concept of converting Encodable into an Encoding protocol witness. We discover how to clean up our code and make it fit in with `JSONEncoder`’s existing API. We then break down our example into smaller pieces and discuss how we can leverage pullback and functional composition to build bigger pieces out of smaller ones.