I admit it – I’m a recovering C++ programmer. I’ve suffered a bit of a relapse related to a recent project, and may very well be dragged back deeper on an upcoming one. (Point of history – I attended one of Bjarne Stroustrup’s early lectures on “C with Classes” when I worked at Bell Labs. […]
Android OpenGL Unit Testing
Every once in a while you go back to your toolbox and discover something shiny you haven’t shown the world before. I have a client who needed some OpenGL work done on Android, which brings up the whole question of how to unit test OpenGL code. I had some support classes for this lurking around […]
Xcode 5.1 code coverage
As you may have guessed from a previous post, code coverage is one of my favorite metrics. When Xcode 5.1 came out, it unfortunately broke the code coverage tools that I’ve been using. Fortunately, the nice folks over at qualitycoding.org jumped in and took care of the problems. See their post on the topic for […]
iOS Unit Testing – Part 8 – Tweaking our Sound Logic
In the previous part of this tutorial, we finished up restructuring and unit testing the on-screen animation code for our sample application. We did still have some issues outstanding with the sound, however, which we will clean up in this part. As always, the source code for this tutorial may be found on GitHub. This […]
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 […]
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 […]
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.