URLs and Pattern Matching
Today’s goal is to parse URLs like http://mywebsite.org/customers/:cid/orders/:oid
so that we can determine it’s a customer’s order request and extract the order #oid
and customer #cid
from it.
We’ll try and do that in an elegant way, using pattern matching and variable binding.
Enums as constants
Use enums as constants for your images, colors, storyboards, and more… and make your code beautiful (and short, and with autocompletion, and error-free)
Swift enums for JSON parsing
When your JSON contains string fields that can only contain a limited set of values, Swift enums and their ability to have String raw types can be very handy.
Welcome, Swift devs!
There we are, I finally decided to start a blog… but what to blog about?