Parsing Techniques
#13 · August 26, 2016 · 25 minutes

We look at two different techniques to parse a simple expression language: hand-written parsers and parser combinators.

Evaluating Transactions Subscriber only
#12 · August 19, 2016 · 26 minutes

We evaluate transactions using the code from the previous episode. We need continuous refactoring to keep our code simple and clean.

Evaluating Expressions
#11 · August 12, 2016 · 30 minutes

We write an evaluator for a simple expression language. We write our code in a test-driven way, which saves us time and helps us verify the correctness the code.

Project Introduction: Ledger GUI
#10 · August 12, 2016 · 8 minutes

We show a quick overview of our new project: a bookkeeping app that's based on plain text.

Q&A
#9 · August 5, 2016 · 14 minutes

In this episode, we answer some of the questions we've received over the past few weeks. We cover networking, table views, stack views, our App class, and testing.

Networking: POST Requests Subscriber only
#8 · July 29, 2016 · 19 minutes

We extend the networking code from the first episode to support POST requests. Besides using Swift's enums with associated values and generics, we get to implement a map function on a custom data type.

Stack Views with Enums
#7 · July 22, 2016 · 22 minutes

Stack Views are great for prototyping. To make them even easier to set up in code, we create an abstraction using enums to specify UI elements in a declarative style.

Generic Table View Controllers Subscriber only
#6 · July 15, 2016 · 20 minutes

We explore how Swift's generics can be used to create a simple, reusable table view controller. As a welcome side effect, this process helps us keep our view controller code clean.

Connecting View Controllers
#5 · July 8, 2016 · 20 minutes

We refactor our code by moving the app's flow from the storyboard into a separate class. Our goal is to manage the view controller flow from a central place so that view controllers don't have implicit knowledge of their context.

Rendering CommonMark (Part 2) Subscriber only
#4 · July 1, 2016 · 19 minutes

We continue building the CommonMark renderer we started in episode #2. This time, we add customizable styles using structs and inout parameters.

Loading View Controllers
#3 · June 24, 2016 · 22 minutes

Many view controllers have to load data asynchronously. We explore different options to factor out this code using protocols, container view controllers, and generics.

Rendering CommonMark Subscriber only
#2 · June 17, 2016 · 23 minutes

We create attributed strings from CommonMark. We continually refactor our code to make the central logic short and understandable.

Networking
#1 · June 17, 2016 · 23 minutes

We explore an alternative approach to building the networking layer of an app. We make use of Swift's generics and structs to end up with simple, testable code.