Cocoa’s mutable-subclass pattern is an antipattern We know we can’t mutate a mutable array while enumerating, and yes, we have to take care to avoid that. But wait a second—why is that *our* problem, as users of Apple’s Foundation framework?
Subjective-C: I use property (dot) syntax liberally I have long argued that methods which look, walk, and talk like getter methods should be called with dot syntax.
Benefits of Cocoa: Still here in Swift Until now we all agreed these were benefits of Cocoa: * C compatibility * Dynamic dispatch * Nil safety * Duck typing Now they're all bad? — Nick Lockwood (@nicklockwood) August 6, 2014 Sigh. Okay, let’s take this one item at a time: C compatibility Still there. Nil safety Was never there …
Quick followup on singletons Part of the Singletons series. This is a quick followup to my post about singletons in Cocoa apps. Read it first for context. Another developer asked me a few questions about the points I made in my previous post on singletons. I’d like to post my (lightly edited) comments …
Singletons in Cocoa applications Part of the Singletons series. The Singleton pattern is a powerful tool in every programmer’s toolbox. But singletons today are widely overused in most codebases. The consequences of misusing such a powerful tool are too far-reaching and long-lived to take lightly. And overuse or misuse of this tool leads …
Objective-C Context: Soroush Khanlou, via Jason Brennan. And I’m drafting a less-snarky response now. I was reading an article on Objective-C, and I still don’t quite get it. Lifting a simple example from the post, are we really down to say that {% highlight objc %} import <Foundation/Foundation.h& …