Greetings, fellow Cocoa developers, and welcome to a new edition of The Week in Cocoa News, your weekly mash-up of bad jokes and links to blogposts and articles of interest to the discerning Cocoa developer in your life.
So, let’s get the bad joke out the way first. And trust me, this is a really bad one
Before you shoot yourself, read the following post. It contains plenty of what’s best about Swift -type-safety, the possibility of avoiding all “sting-typed” programming, easy ways to modify behaviour without relying on extension, to name a few-, in this case in the context of the “classic” Objective-C territory: UIKit
Seriously, don’t do strings. Winners don’t do strings.
Anyway, here is a little bit more on types and meta types in Swift:
Enough with the meta-stuff! We started talking UIKit, so this looks like a good moment to link to this other post:
Lately I have been reading a lot about DSLs. I believe DSLs are great tools that are greatly underused. Here is a good example of how a little DSL’ing can take you a long way.
Now it’s time for another favourite of mine: unit testing:
To be honest, most of the suggestions in that article are not about Unit Testing, but just about good engineering (injecting static dependencies, relying on abstractions -protocols- and not concretions -classes-), but again, this just prove the point of TDD: there is usually a correlation between good production and good testing code.
By the way, now that we are discussing testing. it might be a good moment to link to Nimble, the matcher framework for Swift (and Objective-C)
And to wrap up this Edition of The Week in Cocoa News, deep linking and iOS 9:
And that’s all, folks! See you next week, in another Edition of The Week in Cocoa News.