Let’s rock another data structure in Swift. Queue!
Queue is an abstract data structure that represent queue in real world like the picture above. In computer science terminology, queue is FIFO (First in First out) which mean the first data that come in to the queue also will be the first data come out from the queue. You might need to use queue if you have to maintain the order of the data.
First of all, let’s define basic protocol for queue here
There are two main operations in queue data structure which are enqueue and dequeue. …
Another article about data structure in swift. Stack!
Stack is abstract data structure that have a similar representation with physical stack in a real world. You are recommended to use stack if you want to minimise access to the data. There are two main operation that stack used, which are push and pop. Push mean you add new data to top the stack and pop mean you remove the last data or the top of the stack. …
A linked list basically is a collection of objects where each of them (usually called a node) has a reference to the next node. You can imagine a linked list like a chain. Here is the linked list representation:
Another article about clean architecture and using presenter as a business-logic handler in presentation layer.
I created simple application using Open Dota API as a data source. Feel free to visit my repository on github and just clone it. The project consist of several additional layer such as DI Container for managing dependencies, Router for handling navigation, and of course the network layer that support local cache using UserDefault. I used clean architecture approach for create separation layer between presentation, domain, and data. …
Testing core data? is it possible? let me tell you how to do it.
Testing is a crucial part in software development process. Testing has some useful benefits like get feedback quickly when developing app in the early phase, useful for other teammates when work together because it can act as a documentation, and save more time in the future for reducing production issue probabilities. In this article, I will try to introduce you how to implement unit testing for iOS project that using Core Data as a data persistence.
Unit test must following FIRST principle:
VIP architecture basically consists of three main layers with unidirectional communication through each declared protocol.
Hi everyone, how it’s going today? I hope everything just going well for you guys and stay healthy in this current pandemic situation.
And yes it take a really long time to make me write an article again :] because I have pretty busy with my full time job right now as an iOS Engineer at one of education tech company in Indonesia. Sorry, just a little bit of show off.
So basically in this article, I want to write about how to build scalable…
Hello everyone, how are you today? I hope everything goes well for you wherever you are. So basically I just learnt something new in
UICollectionView on iOS 13. Have you ever seen the photo app on iPhone? It’s pretty complicated layout right?
We actually can build the complex layout such iPhone’s photo app using the old way
UICollectionViewFlowLayout but in my opinion it will take a long time and need a bunch of codes. …
Software Engineer (iOS)