The template for View Controller unit testing

Hot topics like this one, testing view controllers, often come back from time to time and get some updates. It probably all started with Testing View Controllers [https://www.objc.io/issues/1-view-controllers/testing-view-controllers/] by Daniel Eggert back in 2013. Now quite out-dated as in Objective-C and showing examples of…

The easiest Promises in Swift

Here's another article of the serie "The easiest <something>". Previous one on Core Data here -> The easiest Core Data [https://albertodebortoli.com/2016/08/05/the-easiest-core-data/]. Swift 5 will most likely include async/await, which will be a revolution for handling concurrency…

The recipe for Singletons removal

We all went through it, am I right? You join a new company, you jump on the new codebase, you find lots of singletons, get used to them, become friend with them, but after some time you realize it's time to terminate the friendship. For a greater good.…

How to abstract your persistence layer on iOS with JustPersist

The original post is published on the Just Eat tech blog at this URL [http://tech.just-eat.com/2017/03/02/how-to-abstract-your-persistence-layer-and-migrate-to-another-one-on-ios-with-justpersist/] . In this blog post we introduce a solution to deal with data persistence. We developed it for the Just Eat iOS app and we call it JustPersist. It’…

A better local and remote logging on iOS with JustLog

The original post is published on the Just Eat tech blog at this URL [http://tech.just-eat.com/2017/01/18/a-better-local-and-remote-logging-on-ios-with-justlog/] . In this blog post we introduce the solution for local and remote logging we developed for the Just Eat iOS app. It’s named JustLog and it’s…

The easiest Core Data

Over the past months I spent a lot of time on Core Data, I had to deal with a project with a lot of legacy code, Core Data horros and multithreading violations. Core Data is hard, at times it can be frustrating and confusing. For this reasons, I decided to…

Offline UI testing on iOS with stubs

The original post is published on the Just Eat tech blog at this URL [http://tech.just-eat.com/2015/11/23/offline-ui-testing-on-ios-with-stubs/]. Here at Just Eat, while we have always used stubs in Unit Tests, we tested against production public APIs for our functional and UI Testing. This always caused…