Visualizing Grand Central Dispatch
Apple's Grand Central Dispatch api can be hard to visualize so I created a diagram that I could refer back to later. It’s been useful to me so I thought I’d share it.
View ArticleA Pattern For Using Blocks as contextInfo
One of the more useful tips I saw at WWDC was a pattern for converting any callback method that takes a selector and contextInfo parameter into a block callback. Just to review, a block is simply an...
View ArticleA solution for the iPhone Ringer Switch
About a month ago, there was a story going around about an iPhone going off during a symphony performance. It became a hot topic among blogs and podcasts alike but most dealt with the issue of what the...
View ArticleLearning Rake - Dependency-Based Programming
I've recently used Jim Weirich's Ruby-based Rake tool to automate a variety of tasks: building software, processing game assets, or simply moving files within a git-repository. It's changed the way I...
View ArticleLearning Rake - What is Rake? (The Library)
Last time we looked at using Promises to implement Dependency-Based Programming. Today we are going to look at what exactly Rake is, and what it provides that is so useful. "Rake" refers to both an...
View ArticleLearning Rake - What is Rake? (The DSL)
Last time, we talked about Rake's Task class, how it implements a Promise construct and how we could write our simple "vacation" script in it. Today, we are going to introduce Rake's signature feature:...
View ArticleLearning Rake - What is Rake? (The Application)
At this point, we've looked at Dependency-Based Programming, Rake's Task class, and using Rake's DSL to make writing scripts easier. Rake - The Application In each case, we've been using the ruby...
View ArticleSplitting functions for fast ASM.js compilation
When developing an app with Emscripten and compiling with ASM.js, occasionally, you'll find a function that causes the ASM.js compiler to take a long time. The ASM.js compiler can process functions in...
View ArticleUIView category to easily add a parallax effect
iOS 7 recently introduced a feature called "UIMotionEffects" which allows the developer to change the UI in response to changes in the phone's viewing angle. Apple has provided some heuristics to...
View Article
More Pages to Explore .....