Wednesday, July 29th, 2015

iOS: Getting a Thumbnail for a Video

smart phone taking a picture

Between various things being deprecated, and the new Photos framework (which looks cool but seemed a bit heavyweight for this purpose) finding this took me a while! When the image picker returns with a video it has a url in info[UIImagePickerControllerMediaURL]. Then we can use AVAsset and AVAssetGenerator to get a thumbnail. // Gets the asset - note ALAsset ...

Wednesday, July 15th, 2015

Things You Don’t Learn in Technical Interviews

I can see now...

I spend more time than I thought I would thinking about technical interviews lately, because something I’ve been doing is conducting technical interviews for a few startups including Glowforge (they're hiring!). Since March I’ve done ~36 interviews. Designing hiring systems is hard because you only have partial data - specifically you don’t know who your false ...

Wednesday, July 1st, 2015

Unit Testing on iOS

Broken glass

Historically, there hasn’t been a lot of testing done on iOS, and we see the results of that every day—regressions, crashes, consistently reproducible failures. As we build more complex applications, manual testing takes more and more time and automated testing becomes increasingly necessary. The biggest challenge of testing on iOS starts at the UIViewController with the ...

Monday, May 18th, 2015

Giving a Talk and a Workshop – in Two Days

Unit Testing on iOS

Submitting I have two ways of submitting to CfPs. The first: a carefully written abstract of a talk that I have already prepped, and probably already given. The second: something that I have already been exploring in blog posts, collected into a "here is this thing that I think I could talk about, but I'm not 100% ...

Wednesday, May 13th, 2015

Some Thoughts on Mocking

Magritte Pipe

    When do we use mocks and when shouldn’t we? Some thoughts: Don’t Mock Data Structures We wouldn’t mock an NSArray or an NSDictionary, so why would we mock our own data structures? Data structures should be simple and well tested, so we can trust them to behave as they should. It will be more work to mock ...

Wednesday, May 6th, 2015

Discoveries About OSS Culture

Danbo on Flickr II

I was hanging out with an OSS-dude (OSS = Open Source Software) for a while, and I learned a couple of things. Firstly - don’t try and buy committed OSS types books. It’s a complete nightmare. Secondly - I’ve reached a better understanding of harassment and open source. And particularly the pushback, which comes from a place ...

Wednesday, April 29th, 2015

Unit Testing on iOS: Beyond the Model

Unit Testing on iOS

I want to introduce you to my app, it’s called Show and Hide. It’s an image processing app. This is V1, so the UI is pretty simple, so I think it’s a reasonable example. Briefly, what the app does is it detects the dominant color in an image, and creates these cool partially colored images based ...

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 ...

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

Workaholic WordPress Theme by Graph Paper Press