Alok Subedi·Sep 8, 2021Better iOS through Factory Method Pattern — A basic chat viewDesign pattern for me was one of the greatest revelation. They taught me to look at object-oriented programming beyond simple inheritance…
Alok Subedi·Sep 1, 2021Remove code duplication with Generics — A basic chat viewFor a very long time I couldnot use generics beyond a generic api call. I used this get function that can make all get requests and decode…
Alok Subedi·Aug 24, 2021Dissecting functional programming with closure in SwiftI used map and sort frequently, but was always confused when I had to use reduce. I would rather create a variable to store the result and…
Alok Subedi·Aug 17, 2021Understanding Delegate Pattern and protocol/interface in swiftI never understood why we needed an interface that can’t have code. We even have to write code for different class every time we implement…
Alok Subedi·Aug 11, 2021Separating Views from ViewControllerViewController in iOS is both view and controller, which makes it massive. Let’s separate View from ViewController.A response icon2A response icon2
Alok Subedi·Aug 6, 2021MVC that is not massiveI started my iOS development following Apple’s food rating app. iOS development was in an early stage in my country, so I was a solo iOS…