No image

JUnit Tricks – Part 3 – Assumptions

In Part 1 of this tutorial, we looked at performing parameterized tests in JUnit, and in Part 2 we looked at JUnit’s Rule support. In this portion, we will look at a lesser-used feature of JUnit – assumptions.

Read More
No image

JUnit Tricks – Part 1 – Parameterized Tests

If you code in Java, I’m sure you’re familiar with JUnit. Although it’s not the only unit test framework out there, it’s probably the most popular, and has inspired a variety of similar frameworks for other languages. In this tutorial, we’re going to examine some of the more advanced features of the newer versions of […]

Read More
No image

Does your server’s response “Vary?”

Raise your hands if you’ve ever coded a web application that did any of the following: Supported more than one language, and automatically chose the language to present based on the contents of the Accept‑Language HTTP header. Generated different response formats (e.g. JSON vs XML) to REST queries based on the contents of the Accept […]

Read More
No image

Defensive UIDocument Coding, Part 2

In Part 1 of this tutorial, we set up a simple UIDocument-based class that will save and read an array of objects containing names and birthdays. We also set up a pair of unit tests that verified that we could, indeed, read and write using this class. In particular, the unit tests were designed to […]

Read More
No image

Defensive UIDocument Coding, Part 1

Apple’s UIDocument class is almost mandatory if you are going to be interacting with iCloud. Although, in theory, you can get by without using, there are a lot of file locking and other related concerns that it handles for you. Even if you’re not using iCloud, it makes for a nice way to save and […]

Read More
No image

Code Quality and the Agile Team

In one of my recent reads, the authors tossed out a sentence that first struck me as provocative:

From a business perspective, creating clean and well-written is very hard to justify.
My first reaction was probably the same as yours - "Say what?!?" Fortunately, they immediately went on to clarify exactly what they meant by that.

Read More
No image

Welcome to Silver Bay Technologies!

When Kevin and I started Silver Bay Software back in 2008, the revolution in iPhone apps was just beginning, and so we decided to try our hand. Kevin had already established himself as a successful freelance developer and I had been running my consulting practice, “The Durst Group,” since 2005. The results of that first […]

Read More