Swift Failable Initializers and JSON

Jesse Squires has written before about failable initializers, expressing concern that their ease of use may encourage poor programming habits. This time around Jesse walks through a potential use case for failable initializes, JSON parsing.

“We have divided the problem into smaller subproblems and addressed each one individually. Even better, we can now unit test each component in isolation.”

Even outside the failable initializer debate, that’s a solid approach to programming.