Elliot Chance

Parameterized/Data-Driven Tests in Swift

Silvrback blog image

This is not the first article I have done on parameterised tests, but it is my first article on Swift.

Recently I have been working on an iOS app and I couldn't find any good solutions for data-driven tests. Some of the solutions I found were language hacks to try and trick the test suite into thinking there were more tests than were . . .

Read More

October 10, 2016

Using Amazon EC2 Container Service (ECS) with Travis CI

Silvrback blog image

If you are using Docker with Travis CI and you are not using some Docker registry to hold your pre-built images you will have to build the images on Travis with every build. Even for simple application stacks this can be a slow and expensive process. Ideally you want to move towards publishing your images to a registry.

A registry holds the . . .

Read More

September 18, 2016

The Elevator Game!

Silvrback blog image

The elevator game is a little thought experiment. It is not new, in fact Elevator Saga is another fun one. This one was just based on whatever came out of my head to see what would happen.

Here are the rules:

  • There is one elevator in a building that has 10 floors.
  • There are 30 passengers to transport. 15 passengers from level 1 to another . . .

Read More

Posted in: pythonpuzzle

September 10, 2016

Automatically Locate When and Where Bugs Were Introduced with git bisect

Silvrback blog image

Let's face it, when developing software things will break. Most of these things were probably working before hand, but some change directly or indirectly has broken it.

Best case scenario is you immediately recognise why it is broken. On the other end of the scale is some obscure bug that’s only happening sometimes, you have no idea why . . .

Read More

September 03, 2016

Using docker-compose on Travis CI

Silvrback blog image

If you are not familiar with Docker you can read about it in my other article. In this article I'm talking specifically about docker-compose; the tool for building multiple containers (as most application stacks will require).

docker-compose is great. It can be used to deploy to your dev machines, your production application and of . . .

Read More

August 27, 2016

Flow-safe Enums in JavaScript

My Attempt...

Silvrback blog image

I have been using Flow recently to add some static-type checking to JavaScript. I'm not going to get into the details about Flow itself in this article, but rather how I've approached enums.

This is certainly not new and there are a tons of libraries out there that have various advantages and disadvantages. One great implementation . . .

Read More

Posted in: es6javascript

August 20, 2016

CollectionFactory: JSON and Objective-C

Silvrback blog image

CollectionFactory is a CocoaPod I wrote a long time ago to deal with JSON in Objective-C.

There are a lot of other libraries out there that do this kind of thing. However, I wanted something that was:

  1. Very light and transparent without the need to create any intermediate code (such as predefined models).
  2. Easy and interoperable with native . . .

Read More

August 13, 2016