Elaborating on his recent article 'How I Handle Optionals In Swift', Joseph will offer well contested advice on the best ways to use Optionals in Swift. Covering five additional techniques that reduce the need to use 'if let', he'll help you avoid the infamous Swift "Pyramid of Doom".
"I take an extreme line on optionals and do not make use of implicitly unwrapped optionals and very rarely uses force unwrapping. The talk will cover a range of approaches to optionals and where appropriate their disadvantages. I will also briefly cover a custom operator that I use to get the best of both worlds."
Additional topics include:
- When 'if let' should be used
- The disadvantage of not using '!'
- The custom '!!' Asserting Nil-Coalescing Operator
YOU MAY ALSO LIKE:
- Swift 1.2 Beta: An overview, and some thoughts (SkillsCast recorded in February 2015)
- Accessibility in Flutter (in Online Event on 20th August 2020)
- Cleaning the Big Picture: Creating Maintainable Mobile Games in Haskell (SkillsCast recorded in October 2019)
- Core Image: Great When It Works (SkillsCast recorded in August 2019)
Beyond 'if let'
Joseph studied Computer Science at Cambridge University and since then worked at the BBC and Sony for about five years each before starting his own company Human Friendly Ltd. about 3 years ago and starting iOS development (and some Ruby and Rails too). He is currently looking for new exciting opportunities and available for employment, contracting or coaching in iOS (Objective-C or Swift). He has been playing with Swift and writing about it since it was announced.