associatedtype on Protocol, making Protocol Generic

associatedtype Protocol Generic

When we talk about generic code we have to come to an associatedtype for protocol. The protocol is the contract between two entities. And to make that contract more generic Swift provides the associatedtype for generic type on the protocol. To develop the proper Protocol Oriented Programming, POP, skill the associatedtype plays an important role. … Continue the deep dive into the associatedtype on Protocol, making Protocol Generic

Swift Generic introduction

Feature image of Swift Generic introduction talk

The Generic realm is that kind of world, which we think we have some good understanding. And probably so. But things start to get messy when we initiate the implementation of so called Generic solution on our code base. The implementation doesn’t go so well as we used to see them on the example of … Continue the deep dive into the Swift Generic introduction

Strong Reference Cycles, forming and deforming

Strong Reference cycle

This blog post suppose to be a closure talk, specially on Capture List. But we just can not dive on that yet. Because we have not talked about the Strong Reference Cycles. So this blog post is dedicated on Strong Reference Cycles. Just a reminder, we need to spend some good time on this blog … Continue the deep dive into the Strong Reference Cycles, forming and deforming

Swift function closure, gaining the last minute Knowledge

closure function in Swift

We will continue the closure expression talk from our last blog post, closure, Starting of being creative. Here on this blog post we will address one of the confusing topic of swift, the relation between function and closure in Swift. Are they same or they are just reverse? Hmmm let us find it out. Background … Continue the deep dive into the Swift function closure, gaining the last minute Knowledge

Swift closure, Starting of being creative

Coding is an art irrespective of this mindset, we all will agree that structural code is a pleasure to eye and joyful to work with. But why Swift yet not been so fluent to us? Why are we yet not been so impressed with Swift as others say so? Why we can’t see the beautification … Continue the deep dive into the Swift closure, Starting of being creative

tuple & typealias, the little buddies on Swift

Swift tuple & typealias

Tuple may seems like a non-important topic to talk about on Swift. But smart dudes knows the benefit of using tuple. Mixing tuple with typealias on Swift can make our code more joyful to our coworker. So let us dive deep. Background What is tuple tuple declaration and usage When to use Why to use … Continue the deep dive into the tuple & typealias, the little buddies on Swift

Snippets, one step closer to Flash

Xcode code snippets

Sloths are cute, but not easy to watch them climbing on a tree. It seems decade and yet, they just moves some inches. How about sloth speed coding! Ever think about it? And what impact does it have on a pair programming session. I know I know it is very horrible and frustrating both to … Continue the deep dive into the Snippets, one step closer to Flash

Error Handling through try variance

Swift Error Handling Through Try Variance

Each and every system has erroneous state, smart system handle those error and fall gracefully, so that the end user don’t just freakout. Swift also provides us with some cool error handling system which can be really worthy when used with try and enum. On this short blog post we will talk about Swift error … Continue the deep dive into the Error Handling through try variance

Love for Enum, continuing…

Swift enum advance topic

On our previous blog post we had some talk, which covers the surface of enum. Here we will dive a bit deeper for familiarizing ourself with some more advance concepts of enum. And Finally on the next case study blog post, tic tac toe through enum, we will wrap it up by using our gained … Continue the deep dive into the Love for Enum, continuing…

Format your Date[s]

Swift Date formatter Feature Image

How dashing you look; is the key factor when you have Date[s] 😜. Same goes with our Date also when we are in the Swift arena. Although dashing may not be the proper term, rather presenting thyself is more appropriate. DateFormatter comes into play on this occasion. Swift Date formatter is one of the confusing item that … Continue the deep dive into the Format your Date[s]