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'…

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…

Android Logger Refactor - Encapsulate

This is a simple refactor to bring encapsulation to the current log level and controlling if the output should go to android.util.Log or System.out. As part 4 mentioned; this is super simple. The change to FyzLog is to take the following /** * Write Log Message to {@link System#…

Android Logger Refactor- Sin Forgiven

Last we left our hero; unit tests were red. The horrible horrible red bar! faints I believe it was in Kent Beck's TDD book that he recommends ending the work day with a failing test. It gives you an explicit place to start working again the following day.…

Android Logger Refactor - Primitive Extermination

Previously in our Logger Refactor adventure, we extracted a class for logging to System.out. As mentioned; the focus of this part will be performing a similar operation for logging to android.util.Log. (Note: This focus totally didn't happen...) We can revisit the current state of Logger.…

TDD Kata: Bowling Game

A week into the bowling game, the time it's taken me to complete the exercise decreased quite a bit from the first time I did it. Day 1: 60 minutes Day 2: 45 minutes Day 3: 30 minutes Day 4: 26 minutes Day 5: 15 minutes Day one…

Android Logger Refactor - Analysis

This is part 1 of a unknown number of posts going through a wrapper around android.util.Log that I use in a number of projects. My favorite feature of this wrapper is being able to turn off logging while running tests. This particular iteration doesn't turn it…

Doing Katas

I never quite understood the practicality of Code and TDD Katas. The idea behind a kata is that you do it over and over and over... Until you can do it in your sleep. "Why would I want to code tic-tac-toe a thousand times over?" "Why build…