Excellent lesson. I really liked the way you added the generics and error handling as iterative refinements. That helped me get my beginner's head around these. Thank you!
I just love Stewart's teaching style. Phenomenal video. One quick question -- could you comment on why you chose a struct for the API service rather than a class? I was wondering if there were some pros and cons you could list that may help me colour my understanding?
If I were going to create a singleton, I would use a Class, but there is no need so I defer to structs or enums for my services where I create an instance of the service. A struct is a value type with no concern over memory leaks and it is thread safe. I used a struct instead of an enum because I need to pass in the value of the url when I create the instance.
I am currently working on an API-heavy app where this can be imlemented with the Async Await pattern. This will be perfect! What would your strategy be for passing in a custom date format where I have 5 lines of dateFormatter modifiers such as .dateFormat, .calendar, .timeZone and .locale? I can of course customize this instance for that but is there a better way to keep it common for all cases? Great explanation on the generic T being able to be an array or not. Thanks Stewart!
This is a great video. I'm looking forward to next videos in the series. I would like to ask about guard statement. We're calling completion in the else before return. Do we need the return still?
Hello, kindly post your question on our CodeCrew forum so that our tech support staff there can assist you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
Excellent explanation … thank you ❤
Glad it was helpful! Thanks for watching! - Iñaki
First time I see a guard statement written like that. I might start writing it out like that as well. Thanks for the series 🙌🏽
Glad you enjoyed it! - Pat
Excellent lesson. I really liked the way you added the generics and error handling as iterative refinements. That helped me get my beginner's head around these. Thank you!
Thank you so, so much! Our hard work definitely paid off! -Arthur
This series is amazing! I've decided to refactor a project I'm working on to follow your techniques.
Your support means a lot. Thank you so much! -Arthur
Thank you so much, this is simply great, I love the whole series! Your simple but detailed way to explain things is really good to follow!
You're welcome! We're glad you loved the whole series :) - Pat
Awesome, friend, it is good to see your video.
Thanks for learning with us! -Arthur
Very well explained. Thank you.
Thank you so so much! -Arthur
I just love Stewart's teaching style. Phenomenal video. One quick question -- could you comment on why you chose a struct for the API service rather than a class? I was wondering if there were some pros and cons you could list that may help me colour my understanding?
If I were going to create a singleton, I would use a Class, but there is no need so I defer to structs or enums for my services where I create an instance of the service. A struct is a value type with no concern over memory leaks and it is thread safe. I used a struct instead of an enum because I need to pass in the value of the url when I create the instance.
Thanks for all the love, Jeffrey! -Arthur
Wow! It was cool!
Thank you so, so much! -Arthur
I am currently working on an API-heavy app where this can be imlemented with the Async Await pattern. This will be perfect! What would your strategy be for passing in a custom date format where I have 5 lines of dateFormatter modifiers such as .dateFormat, .calendar, .timeZone and .locale? I can of course customize this instance for that but is there a better way to keep it common for all cases? Great explanation on the generic T being able to be an array or not. Thanks Stewart!
Thanks for watching! :) -Arthur
This is a great video. I'm looking forward to next videos in the series.
I would like to ask about guard statement. We're calling completion in the else before return. Do we need the return still?
Hello, kindly post your question on our CodeCrew forum so that our tech support staff there can assist you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
Hope you make a tutorial about swinject or binding in swift
Hello, please post your suggestion here: app.productstash.io/codewithchris#/ideas -Arthur
love this but I would like for you explore the Combine API it has some pretty neat ways of making your code much much cleaner
Thanks for your suggestion! Please post it here: app.productstash.io/codewithchris#/ideas -Arthur
Hey code chris could please make a Video Authentication user based on rest api build node js
@Joe Geezer just example
We'll see what we can do! Kindly post your suggestion here: app.productstash.io/codewithchris#/ideas
:) -Arthur