Mattt Thompson with a great article on training CreateML to identify programming languages from snippets of source, with just a few lines of code and a model generated from some simple inputs. This is really impressive and CreateML certainly seems like the missing piece of the puzzle for people who are/were not machine learning experts.
This, in my opinion, was the one of the biggest weaknesses of enums in Swift prior to 4.2. No more! The
CaseIterable protocol now adds an
allCases collection to enums and Ole Begemann is here to give us a detailed look at it. I'm really looking forward to removing many manual implementations of this from my code.
Dominik Wagner with some thoughts on Swift that generated a lot of discussion this week. I remember saying when Swift was first announced that it probably set the progress of iOS development back by 3-4 years just through the sheer disruption that was inevitable with a brand new language, no matter how good it was. However at this point I really don't agree that Apple should pivot back to Objective-C. That would set us back several more years and there's just no need for it. Swift is a good language, yes it's not perfect (nothing is!) and there is some truth in here, but I don't agree with the conclusion at all.
There's more on free trials in this week's Business & Marketing section below, but before we get to that, take a look at this article from Jamin Guy on the new IAPKit framework from Black Pixel. If you're looking for a drop-in free trial system for your app, complete with UI and everything else, this could be the solution.
Greg Heo with a piece on the new
#warning directives in Swift 4.2. These are a welcome addition to the language, but the article isn't really about them (there's not much to talk about there, really!) Instead, it's about how these were implemented and how you could potentially add more of your own.