First Class Functions and Delayed Evaluation in Swift

Functions are first-class citizens in Swift. They can be stored in a variable or constant, passed to another function as a parameter, or returned as the result of another function. This concept of "functions as data" enables the development of complex systems composed of small bits of reusable logic in an elegant and concise way.

Read more…

Google Place Search API and iOS

If you're trying to use the Google Place Search API with an iOS public API key and you get the error message, "This IP, site or mobile application is not authorized to use this API key.", this might help.

Read more…

WWDC 2014

WWDC starts tomorrow and from what I've heard it's going to be a big one. Unfortunately, I didn't get a ticket this year so I'll be following along from home.

Read more…

Understanding Understudy

Learning is a lot like exercising. It has to become a habit, it's easier with a buddy and you know you're making progress when it hurts. Understudy is a great new app for iOS that pairs people up to study and discuss subjects of mutual interest.

Read more…

Mapping XML to Objects With NSXMLParser

Event-based XML parsers, like NSXMLParser, have great performance but they can be difficult to work with because the parser itself discards nearly all state while parsing the document. This leaves all that state handling up to you, the programmer. Even a moderately complicated XML document can easily result in a mess of conditionals, state flags, and temporary variables. So while it's probably not applicable to every XML scenario, I've found the following object-mapper pattern to be an effective way to map XML data to arbitrary objects such as Core Data models.

Read more…