Staring me in the face

I’ve been working on a feature in our Android app for a while now. Every now and then, we’d get an app crash due to a NullPointerException being thrown here: switch (mMeta.optString("type", null)) { case "a": return Type.A; case "b": return Type.B; case "": return Type.OTHER; default: return Type.UNKNOWN; } mMeta is guaranteed to exist,…

Continue →

Taking stock

Two and a half years ago, I pulled my finger out and managed to put together a design for this site that I was somewhat happy with. “Finally,” I thought, “I have somewhere to write, and share my thoughts!” I would note down all the things, become internet famous, and life would be fantastic. I…

Continue →