Dependency injection is a great technique for decoupling code and making it easier to test. In this blog post I take a look at how functions can be used for simple dependency injection.
After diving into one of our largest Swift projects at Hyper, I managed to reduce the average build time for a clean build by 20%. This blog post is detailing how I did it.
How to use custom, lazily evaluated sequences in Swift to improve performance and enable you to deal with larger datasets, such as entries in a database.
How type erasure can be implemented using closures, and how it can help you work around using protocols with self or associated type requirements.
I want to share a technique that I’ve come to find quite useful when using the Swift do, try, catch error handling model, to limit the amount of errors that can be thrown from a given API call.