Thinking Out Loud

Starbucks Tech Talk

Thu, Oct 27, 2016
  1. public-speaking
  2. swift
  3. objective-c

I was recently asked to speak at Starbucks for an internal thing they call Tech Talks. It was a great crowd and lots of fun. I gave a talk about adding Swift into an existing Objective-C application and framework. This post is mostly to share my slides and code.

The Slides

The slides probably won’t mean much without me yapping about them, but maybe you can gleam something from them.

Starbucks Tech Talk Slides

The Code

The code is broken up into two repos. The first is the App Code and the second is the Framework Code.

I’ve created tags — demo0 - demo4 — in the App repo that should step you through the demo. These tags should also include the updates to the submodule that pulls in the framework, so theoretically you should just be able to step through those tags, while updating the submodule, and you’ll get everything you need. (I haven’t tested that yet though.)

The Script

This has to be one of the coolest parts. I used an open source app called KeyGrip to have a script on my iPhone. The app also made code blocks in script tappable and, via the KeyGrip Server, put the code blocks into the pasteboard on my Mac. This made ‘live coding’ super easy. I highly recommend checking out KeyGrip.

Demo Script