# Swift Quickie: Capture Lists

### Closures for fun and profit

January 20, 2015

This is the first in a series of short posts addressing easy things you might not know about. I'm going to try interleaving these thing the long-form major effort-posts.

## Capture Lists

Many people don't know that you can explicitly specify capture lists for closures in Swift.

A closure closes over values from the local environment, . . .

# Swift: Associated Types

January 05, 2015

### Associated Types Series

Sometimes I think type theory is deliberately obtuse and all those functional programming hipster kids are just bull-shitting as if they understood one word of it. Really? You have a 5,000 word blog post about insert random type theory . . .

# Swift: Strange tales of initialization

### Or the case of the disappearing values

November 17, 2014

While trying to create a new view controller in Swift I ran into a curious problem with initialization. The class was a relatively simple subclass of UITableViewController containing a property var values:[String] and an initializer required init(values:[String]) that delegated to the super.init(style:UITableViewStyle) initializer. So far, so . . .

# Swift and ObjC: Gotcha!

### Interop is easy right up until it isn't

November 16, 2014

Swift and Objective-C use the same runtime. They use the same ARC memory management. They certainly interoperate far more than most languages except perhaps ones targeting the CLR. You might be forgiven for thinking that writing new classes in Swift would be easy, but there are several gotchas you might encounter:

You . . .

# Swift: respondsToSelector?

### Ah for those carefree days

October 19, 2014

Welcome to another glorious Swift post, brought to you from foggy outer sunset in San Francisco. I'm working full time on iOS and loving every minute of it.

Today, let's talk about optional method chaining and respondsToSelector. Normally in Objective-C land, we have to do a little dance any time we want to handle selectors that may . . .

# PlanGrid is Hiring

### Warning: not a technical post

October 19, 2014

I hate posting business-y kind of stuff so I'll keep these kinds of non-technical posts infrequent.

At PlanGrid we are hiring. If you live in the San Francisco area or are interested in moving here, please check out the available positions, including Data Scientist, QA/QC, Backend dev, and others.

We're a startup creating software for . . .