Programming

Wednesday, April 15th, 2015

Launching! iOS Unit Testing: Beyond the Model

launch of space shuttle atlantis

I’m super excited to release something that I’ve been working on for a while. Unit testing on iOS is… not common. And part of the problem is that people don’t know where to start. It can be overwhelming. Building on my years of experience leading iOS apps with over 80% test coverage, including at Google, and my ...


Friday, March 20th, 2015

iOSNext: Paul Ardeleanu – 10 Reasons You’ll Love Swift

Swift: A new programming language for iOS and OSX

My notes from Paul's talk at iOSNext. TIOBE Index for Nov 2014 - Swift is at #18. A language that is 5 months old - more popular than Scala, Haskell… Fortran! Proven to be quite a hit with developers, and there are reasons for that. Why do we have a new programming language? What is the most important thing ...


Wednesday, March 18th, 2015

Creating and Comparing Images on Android

IMG_8438

A while ago, I wrote this blog post on creating and comparing UIImages. That code allowed me to develop the image processing part of the app against my unit tests, which was really, really helpful given that I rewrote it about four times to make it performant enough. So, when I started writing Android code it ...


Wednesday, March 4th, 2015

Four Reasons Unit Testing Needn’t Be That Time-Consuming

danbo switches

On my mind this week because I'm giving a workshop and a talk on unit testing UI code on iOS. Tests as Documentation. You think you remember what you did and why... but you don’t. Replace debugging. I almost never use the debugger. If something isn't working as expected, I just start writing tests and figuring out what is ...


Wednesday, February 18th, 2015

Cross-Platform Development Decisions

Screen Shot 2015-02-17 at 5.14.01 pm

I've started to port Show and Hide to Android. There's still a lot to do, but I hit a milestone of having it working end to end on the emulator last week, which was exciting. One of my friends asked if I was using any libraries to make it easier, and the short answer is no. But I ...


Wednesday, February 4th, 2015

Some Things I’ve Learned About Performance on iOS

Screen Shot 2015-01-26 at 3.31.36 pm

Filed under "things I didn't realise anyone else would find useful". The Hybrid App The second iOS app I worked on was a hybrid app, and I became a master of the UIWebView. It looked native. But it didn't quite feel native because... performance. We had a bridge that connected the iOS to the Javascript and vice versa. ...


Wednesday, January 21st, 2015

Creating Test Images and Comparing UIImages

IMG_7749

I've been working on this app which relates to my obsession with color. It's an image processing app, and you can see some pictures made with it on our Tumblr. This involved learning about how to take images apart and put them back together, rewriting a lot of stuff in C for performance, etc. But one ...


Friday, January 9th, 2015

#iOSDevUK – Luke Rogers: The Logic of App Design

converse bag-clothing design by michexist

Design is a skill you can learn, the same way development is a skill you can learn. Design is not about making it look pretty, small percentage of it. About working out hierarchy, working out what is important. Brainstorm what the user should be able to do. Not “have analytics” Instead “watch a video” Order it, figure out what is ...


Wednesday, January 7th, 2015

Getting KIF Set Up

Kif tests running

Continuing my obsessive testing strategy, I had to set up KIF for UI Automation Tests. Honestly it's surprising I didn't do it earlier, but since the UI is very simple I was getting better ROI doing unit tests - I see KIF as a sanity check, not as a way to debug anything. Step 1: I ...




All content © Copyright 2016 by Accidentally in Code.
Subscribe to RSS Feed – Posts or just Comments

Workaholic WordPress Theme by Graph Paper Press