It took me a few weeks to get started but I’ve been working on a few projects in swift recently and my opinions have been ranging from “this is not very different that Obj-C” to “this is a vast improvement over Obj-C” depending on the task. I’d say that’s pretty positive considering the age of the language. I’m constantly wondering what the correct pattern or syntax for swift is given the equivalent way of doing things in Objective-C so I started a little blog where I collect the examples that I find.
I just read about a neat feature for Letterpress 1.4 where savvy users can test Spanish games by loading “letterpress:experimental” in Safari and I wanted to share an alternate example that I build for a client a while back. In this particular case, the client wanted to distribute a single app binary via enterprise distribution or ad-hoc builds to various clients of his own. The catch was that all these clients wanted the app to look customized to their own brand with logos and colors.
Many years ago as I was learning Objective-C and Jamison was going through his public transit phase (yes, as far as I know he’s still in it), we joined forces to create an epic San Francisco Muni app for the iPhone. It was my first ground-up project for the iPhone so I found myself wanting to rewrite large swaths of the code every 2-3 weeks. For obvious reasons, I tried to keep the stuff that was ugly but effective and that got us to the release.
(I’m at WWDC this week, I figure I should probably release something of my own) I wasn’t being completely modest when I recently praised line simplification for bringing a method to the masses. It’s not a great example though, so let me explain in a little more detail. For any large group of people interacting with a technology, the vast majority are using it as a means to an end. I say this in a positive way.
Hooray! It's inside baseball for anyone who doesn't use Objective-C on a regular basis but one of those nitpicky issues is finally being fixed in a new clang version: literals for NSNumber, NSArray and NSDictionary! The syntax looks sane and concise, I'm totally psyched to use it. Also, bonus feature: sane accessors without using objectAtIndex: or objectForKey:! source
I downloaded Clear the other day to see what all the fuss is about and I’ve run into a slight moral-UX dilemma. Everything about the first startup of Clear is a tutorial. The default list is all items to help you learn what gestures to do when acting out the essential functions of the app. Add a new task by pulling down, navigate back to the list of lists by pulling down more, swipe left to delete, etc.
Someone at Apple understands that developers drive a platform. Of course, it's not exceedingly easy to get started developing for the iPhone though it does become apparent that there's a ton of code from which to draw inspiration and answers once you have a basic grasp of the language and SDK components. Enter the Apple's new basic development tutorial. It'll take you through all the necessary steps for making an application, linking to some more thorough documents that you can tackle one at a time.