Pattern Matching, Part 3: Custom pattern matching & syntactic sugar

In parts 1 and 2 of this article series, we saw some usages of switch on a lot of things, including tuples, Range, String, Character and even type. But what if we can use pattern matching even with our own custom types?

Pattern Matching, Part 2: tuples, ranges & types

In the previous article, we saw the basics of pattern matching using switch on enums. But what about using switch with anything other than enum types?

Pattern Matching, Part 1: switch, enums & where clauses

From a simple switch to complex expressions, pattern matching in Swift can be quite powerful. Today weโ€™re gonna start exploring it by seing some cool usages of switch, before going further in later articles with even more advanced pattern matching techniques.

Being Lazy

Today weโ€™re gonna see how we can be more efficient โšก๏ธ byโ€ฆ being la๐Ÿ’คy ๐Ÿ˜ด.
In particular, weโ€™ll talk about lazy var and LazySequence. And cats ๐Ÿ˜ธ.

Asynchronous error handling

In a previous article, I talked about error handling in Swift using throw. But what happens when you deal with asynchronous workflows, where throw canโ€™t really fit?

Using Generics to improve TableView cells

Happy New Year everybody ๐ŸŽ‡๐ŸŽ‰๐ŸŽŠ๐ŸŽ†! My first post of 2016 will be a useful trick I want to share, which will demonstrate the power of Swiftโ€™s generics and how they can be really handy when dealing with UITableViewCells and UICollectionViewCells.

Let it throw, Let it throw!

Todayโ€™s article will be about handling errors in Swift.
Because letโ€™s be honest, that makes a fun post title for the season โ„๏ธโ˜ƒ๏ธ.

The OpenSource Experience

As you all know, Swift just went OpenSource earlier this week. Thatโ€™s huge news for the community, and there have been plenty of posts about that already explaining what a game changer that is.
And now for something completely differentโ„ข, today Iโ€™ll take this opportunity to talk about my own experience with OpenSource and how contributing to OSS can be very enlighting for everybody.

Mixins over Inheritance

When coming from an Object-Oriented Programming language like ObjC, inheritence is often used to share code between multiple classes. But that solution is not always the best, and have some issues.
In todayโ€™s article, weโ€™ll see how Swiftโ€™s Protocol Extensions and their usage as โ€œMixinsโ€ can change the deal.

Let's talk about Monads

In the last article, we played a lot with map and flatMap, methods on the Optional and Array types. What you probably didnโ€™t realise is that you were manipulating Monads without knowing. But what is a Monad?