The Week in Cocoa News

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

Knock, knock.

Race condition.

Who’s there.


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

Let’s Get Meta: Swift Metatypes and Cell Reuse

Seriously, don’t do strings. Winners don’t do strings.

Anyway, here is a little bit more on types and meta types in Swift:

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:

Unwind Segues as an Alternative to Delegation

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.

Implementing a Small DSL in Swift

Now it’s time for another favourite of mine: unit testing:

Better Unit Testing with Swift

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:

How to Set Up Universal Links to Deep Link on Apple iOS 9

And that’s all, folks! See you next week, in another Edition of The Week in Cocoa News.

Leave a Reply

Your email address will not be published. Required fields are marked *