Agile Blogging

After I wrote my post on 7 Reasons You Should Write About Swift, I began to think about some of the roadblocks that hinder blogging. Blog Blockers I started to think about some of my own reservations about blogging, and boiled it down to a couple of big blockers: Time Perfectionism My problems with blogging […]

Replace Magic Strings with Enumerations in Swift

“What can I do to avoid these ‘magic strings’ in my code?” – This was the question I asked myself recently as I found myself in prepareForSegue comparing  segue.segueIdentifier to in-line hard-coded Strings.  This kind of in-line hard-coding of a String for comparison purposes is what I mean by “magic strings” in this article.  I knew this felt like a bad […]

Pick a Delegate… Any Delegate… On Clean View Controllers in Swift

The delegation pattern is ubiquitous in iOS development – the pattern is a “core competency” for developing in Cocoa, and if you program with the iOS SDK for any length of time and you’ll end up writing some code that resembles  someInstance.delegate = someDelegate. One of the toughest things that I’ve experienced is choosing what someDelegate is.  All too often, a View […]

Expanded Thoughts on Swift’s Type Inference

In my recent op-ed on clean coding in Swift focused on Type Inference, I began by saying, Quick!  Tell me!  What is the Type of the  birdDetails constant in this code example:

With no additional context to glean information from, the correct answer to the question is, “I have absolutely no clue…” But is that concluding assertion true?  Hmm… […]

Clean Coding in Swift – Type Inference

Quick!  Tell me!  What is the Type of the  birdDetails constant in this code example:

With no additional context to glean information from, the correct answer to the question is, “I have absolutely no clue…”  Or is it? “Not fair!”, you say.  “In the real world, I’d have the ability to option-click and learn the type from […]

Clean Coding in Swift – Functions

I’ve been thinking a lot about how the principles of clean coding (Bob Martin’s “Clean Code“) apply in Swift. How do I express clean code in this language? Conversely, how do I avoid writing cryptic code in Swift? What language features help me write clear and self-explanatory code and what language features present the potential for tempting me […]

Contributing My Share of Bytes

There is a lot to know. A lot. I happen to be one of those individuals who gets geeked out very, very often over very, very nerdy things. As of late I’ve been really wanting an outlet to share what I’ve learned / am learning. The world doesn’t need another blog detailing the same things […]