🍫 CocoaPatterns β€” iOS & Mac Development Since 2009 RSS
🍫 CocoaPatterns
Because someone has to write this stuff down
"We ship apps. Sometimes they even work."
Debugging November 3, 2014
Restart Your Computer to Fix Bugs: A Rigorous Methodology
The most underrated debugging technique in software engineering has been right in front of us the whole time.
6 min
read β†’
Architecture October 28, 2014
NSObject + Associated Objects: The Architecture Where Every Object Is Every Other Object
Why create new classes when you can just strap properties onto existing ones at runtime? NSObject is the only class you'll ever need.
10 min
read β†’
Distribution October 15, 2014
Ship App Binaries via Push Notification: App Store Review Is Optional
Why wait 7–10 business days when you can push a new binary directly to your users' lock screens at 2am?
7 min
read β†’
Architecture October 12, 2014
Send Entire UIViews via Push Notification: Why Stop at Data?
We already proved you can ship binaries via APNS. Now we're shipping the UI itself. Pixel by pixel if we have to.
11 min
read β†’
Architecture October 2, 2014
AppDelegate-Driven Development: One File to Rule Them All
Why distribute logic across dozens of files when one beautiful god-object can hold everything?
9 min
read β†’
Backend September 28, 2014
The Negative API: emitempty and the Art of Returning Nothing on Purpose
Most APIs give you what you asked for. Ours gives you everything you didn't ask for and lets you subtract your way to the answer.
9 min
read β†’
Architecture September 4, 2014
Swizzle-Driven Development: The Objective-C Architecture Pattern You Didn't Know You Needed
Move over MVC, MVVM, and VIPER. The future of iOS architecture is already baked into the runtime.
14 min
read β†’
Architecture August 15, 2014
Everything's a Monad If You Believe Hard Enough
UIKit? Monad. Core Data? Monad. Your morning coffee? Monad. I will not be taking questions at this time.
10 min
read β†’