HackerNews Android - Let's not crash

As discovered in our last session - Opening a lot of connections breaks things. The creation of the OkHttpClient is done in HackerNewsNetwork#getClient... ugg... A get. Ruthless refactoring! As I was saying; the creation is done in HackernewsNetwork#httpClient. private OkHttpClient httpClient() { return interceptorObj == null ? new OkHttpClient() : new OkHttpClient(…

VBM on Android - Retrofit

Set Up I'm using Android Studio to do the development. At home, where I'm doing this development, I like to run the Canary branch. I've run Canary at work before; and it's helped in a number of situations to know what's coming. Right now; that future sight isn't as useful…

VBM in Android

View-Bridge-Mediator in Android In this blog series I'll be sharing the process of developing an app that utilizes a lot of technologies, practices, and patterns that I find critical to producing high quality, maintainable code. The big part; if not obvious, is to demonstrate the development and use of the…