filmov
tv
Networking 105 - Error handling: Network, HTTPResponse and Data
Показать описание
This is a sample lesson for ExperienceKit
During Level 5 we make our code much more robust by catching errors. The dataTask may fail due to network issues, or the server may fail responding, or it may even break our contract and send something that is not valid JSON.
---
ExperienceKit is an upcoming course that I'm designing where we'll build an app in levels. First few levels will be simple, but understandable code that will not be easy to maintain but will work. After that, we'll refine our code and learn new concepts to improve. Finally, we'll end up with code that is maintainable all the while practicing and learning new things.
During Level 5 we make our code much more robust by catching errors. The dataTask may fail due to network issues, or the server may fail responding, or it may even break our contract and send something that is not valid JSON.
---
ExperienceKit is an upcoming course that I'm designing where we'll build an app in levels. First few levels will be simple, but understandable code that will not be easy to maintain but will work. After that, we'll refine our code and learn new concepts to improve. Finally, we'll end up with code that is maintainable all the while practicing and learning new things.