Using Channels for Data Flow in Swift 📻

Apple frameworks use delegation and observer pattern (NotificationCenter) heavily to pass information around. Although there is nothing wrong about these patterns, the actual implementation always looked a bit inconsistent to

Share
Lightning Read #2: Optional String Pitfalls

I was trying to build a URL the other day. Check the following code block: [crayon-5c1256c3ec9bc877500187/] Seems legit, right? Assume that we’re passing 23940 as userId to this initializer. Depending on the Swift version,

Share
Lightning Read #1: Lazy Collections in Swift

I was planning to write “short” and simple articles about my findings from day-to-day Swift experiments for a while now… 🕵 Here goes the first lightning article! 🚀

Share
Reusability and Composition in Swift

The one concept Nietzsche, Thoreau and Hesse most probably tried to elude through their lives: Dependency. Even if one does not agree or embrace their philosophies, a programmer should —

Share
Generics in Swift 4

As one of the most powerful features in Swift, Generics can be tricky. A lot of people have trouble understanding and using them, especially application developers. Generics are most suitable

Share
Swift 4’s Codable

It is almost certain that at some point in your app development journey, you needed to (or you will soon :]) serialize some object or value and parse JSON response

Share