Please log in to watch this conference skillscast.
The Encodable and Decodable protocols that were added in Swift 4 provide an easy way to convert Swift types to and from external representations like JSON. In this talk you’ll learn how to use these protocols, and how the Codable system is designed. Ian will share with you how your app can use Codable to interact with a remote web API, and how to adapt your code if it needs to handle changes to the API in future.
Codable is also being adopted in server-side Swift. Learn how to write type-safe Swift web APIs yourself, without having to worry about HTTP content types, headers, and parsing. Easily extract the query parameters from web requests and handle them appropriately in just a few lines of code. Ian will also mention advanced topics like writing your own Encoder or Decoder to convert to and from a custom format. Finally, we’ll look at new enhancements to Codable, coming in Swift 4.1, which will make things even simpler for app developers.
YOU MAY ALSO LIKE:
- The wonders of IBM: Watson, artificial intelligence, Swift coding and databases! (in London on 19th June 2019)
- Going Server-Side with Swift (SkillsCast recorded in June 2017)
- Fast Track to iOS Architecture (in London on 2nd - 4th December 2019)
- iOSCon 2020 - The conference for iOS and Swift Developers (in London on 19th - 20th March 2020)
- Flutter London June Meetup (in London on 17th June 2019)
- Keynote by Rebecca Franks on Tips for Building Custom Views on Android with Canvas APIs📏🎨 (in London on 19th June 2019)
- Android Home-screen Widgets with Flutter (SkillsCast recorded in April 2019)
- Full Stack Testing of Flutter Apps (SkillsCast recorded in April 2019)
Ian Partridge is a senior developer at Swift@IBM, working to bring Swift to the cloud on Linux. With a background in runtime technologies including Java garbage collection, performance and monitoring he is now working in open source on server-side Swift. Since learning Swift he has contributed to open source Foundation and libdispatch, and is also a developer of Kitura, a Swift HTTP server and web framework.