Wondering what the Mobile App Case Study series is all about?
Watch this free 3-minute intro video and find out!
A spasm of Refactoring.
A spasm of refactoring in which we lost the video of the first tomato -- thankfully!
Yes, it's true. We lost the first tomato. Well, we didn't lose it. We just forgot to hit the record button.
But don't worry. We summarized it for you.
We also SPED UP THE TESTS!
Well, we think we did anyway. It's kind of hard to tell. You'll see. But Justin does a nice job showing you how to do it.
Anyway, we got down to business in the second tomato by removing all the horrible exceptions and replacing them with tuple-based error returns. As it turns out, this worked pretty well.
We also walked through the code replacing most of the keyword arguments with positional arguments -- something that swift does not make particularly convenient. We did this because the code just looked better once it was done.
And then we found a torture device and subjected ourselves to it.
The github repository for this series is: https://github.com/unclebob/MACS_GOMOKU