Diploma in Apple Development 🍎👩🏻‍💻: Coding One: Lecture 8: Guard, Scope, Protocols and Swift Regex
Back to slide index.
👋🏻 Hi!
First, don't forget to confirm your attendance using the Seats Mobile app!
Second, I'm going to start every lecture with a meditation from the fantastic Sitting Still Like a Frog book, all read by Myla Kabat-Zinn. If you don't want to participate that's completely fine.
Let's start with a Keynote from Develop in Swift Fundamentals, "Guard". Once we've finished that, what does the Swift Book say about Guard?
Let's continue with a Keynote from Develop in Swift Fundamentals, "Scope".
Let's continue with a Keynote from Develop in Swift Data Collections, "Protocols". Once we've finished that, what does the Swift Book say about Protocols? What about adopting common Protocols?
Let's watch another WWDC video:
"Design protocol interfaces in Swift" (26 mins)
"Learn how you can use Swift 5.7 to design advanced abstractions using protocols. We'll show you how to use existential types, explore how you can separate implementation from interface with opaque result types, and share the same-type requirements that can help you identify and guarantee relationships between concrete types."
Let's watch a WWDC video:
Have any of you heard of Regular Expressions before?
"Meet Swift Regex" (23 mins)
"Learn how you can process strings more effectively when you take advantage of Swift Regex. Come for concise literals but stay for Regex builders — a new, declarative approach to string processing. We'll also explore the Unicode models in String and share how Swift Regex can make Unicode-correct processing easy."
Homework:
  1. Review today's content.
  2. Complete the two playgrounds from Develop in Swift Fundamentals: Lab - Guard.playground and Lab - Scope.playground and the single playground from Swift Data Collections: Lab - Protocols.playground. Don't forget completed versions can be found in the Teacher.zip download. Check the wiki for download links.
  3. Slack me with any problems or queries. See you on Friday for the next Spatial lecture, the next ML lecture is first, on Thursday from 0930.
Thanks!
Back to slide index.