My talk about using Mixins in Swift @ AppDevCon 2017
Embark in a journey with some Sci-Fi characters to discover how the Mixins & Traits pattern can help you better design your Swift code, avoid multiple-inheritance problems, and propose a protocol-oriented, Crusty-approved™ alternative to composition!
In this talk you’ll discover what Mixins & Traits are, and how they can help you solve some interesting problems and make your architecture more flexible. Using some concrete examples, we’ll see also how these can be used in everyday challenges.
By digging even further and leveraging things like generics, type inference and POP, we’ll even be able to bring some more magic to our code and make it safer, also allowing us to get rid of String-based API and letting the compiler do all the job for us!