Mickey Williamson

All posts by admin

Program to an Interface

If you’re in the Object Oriented Programming world any length of time, you’re going to hear the design principle, “Program to an interface, not an implementation.” But what exactly does that mean? First, it can be a bit misleading because the word interface is not used in the sense of the OOP programming structure used […]

Android Fragments and Static Factory Methods

Typically when we create a class, we create one or more constructors for the class: We then use the “new” operator to instantiate the class and pass in an argument: This works in the more common scenarios but isn’t flexible enough in others. What if we needed to: Return an subclass of the class instead […]

Database inspection window in Chrome DevTools from Android emulator

Set Up Stetho to View Your Room Database

Building an app that uses a backend database for persistent data storage without access to the database can be like playing darts in the dark. While building out the app’s functionality, how do you know whether data is getting stored in the database correctly or even at all? There are several methods for viewing your […]

11 Ways I Keep Up With Technology

The field of technology changes at a rapid pace. I know people for whom the rate of change would be their worst nightmare. My worst nightmare would be working on an assembly line doing the same thing day after day, bored out of my skull, and not regularly learning something new. I thrive on the […]

Building blueprints

The Builder Design Pattern

Instantiating Objects with Many Properties Let’s build a house!  First, let’s decide what kind of house we want to build: Construction type = timber frame Stories = 2 Roof type = slate Siding = batten-board Basement = true Attic = true Size = 2000 sq ft Bedrooms = 3 Bathrooms = 2 Technology = alarm […]

Books: Head First Design Patters, Refactoring, Effective Java

A Dream Summer

I am beyond excited for this summer.  In fact, I’m probably as excited as I was the summer I got to hike the 500-mile Colorado Trail across the Rockies with my dog!  Why am I excited? Self-Directed Learning I’ve fulfilled the requirements for my Master’s in Computer Science and graduated six months ago. I learned […]