DH
DH

What Is Testing For Anyway?

The first part of a fresh look at testing

September 22, 2019

For something that is thought to be precise and unambiguous, the whole subject of software testing tends to be hilariously unclear. I’ve had a deep interest in the subject of automated testing for iOS for years now, and found that if you ask 3 people what the point of testing is, you’ll probably get a dozen different answers.

For . . .

Read More

Blog Update: Back to Life and Finally Adding SSL

And CloudFlare made it really easy!

September 21, 2019

So, my blog has gone somewhat neglected for a couple years now and I’m sort of blown away by how fast that time went by... Being busy at work, busy with small kids and busy with side projects all meant that my little corner of the Internet dried up like an abandoned lawn in Arizona.

And part of that sad neglect included never adding . . .

Read More

WWDC 2017 Wishlist

June 04, 2017

It's the night before WWDC and so while this post is pretty late, its technically not too late to be appropriate. But not having much time to type this up means that I'm not able to go into as much detail as I normally do for these wishes and they are all going into a single post.

Some interesting context going into WWDC . . .

Read More

A Single Writer Pattern in Swift

A Fun Experiment With Shared Mutable State and Lock-Free "Locking"

December 08, 2016

I was talking to a co-worker today about different ways to minimize the risks around having a single shared instance in any app that holds global values which can be read and written to from anywhere in the code.

The potential risks around global mutable state are discussed in lots of places, but some of the key problems are:

. . .

Read More

Towards Better Unit Testing

December 04, 2016

Last year, I wrote a post about the problems with code coverage as a metric, and left the topic as “to be continued”, saying that I had some ideas for a better approach. Well, it's taken long enough, but here are the first pieces in that objective to evolve a better way to create and measure well-tested software.

What Makes Good . . .

Read More

Swift-y Dependency Injection, Part Two

Injecting unique, mutable and persistent property values

October 21, 2016

Update: The original approach and sample code in this post have been modified slightly — instead of every Injected instance defining its own storage for injected traits, the Injectable struct instead defines global storage for all Injected instances. This is to allow let / constant struct instances to be injected with a stored trait without . . .

Read More

A Swift-y Approach to Dependency Injection

June 11, 2016

While I would guess that fewer iOS developers are concerned with Dependency Injection than say, Java developers, the concept has gained more steam on the platform as the practice of unit and integration testing has increased.

In short, Dependency Injection (or DI) consists of:

  1. Making your structs or classes depend on . . .

Read More

Archive
   Subscribe by email and never miss a post.