Swift Concurrency Lesson 1 - Creating Models and an APIService

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 30

  • @Mahadev-x7u
    @Mahadev-x7u 11 หลายเดือนก่อน +1

    Excellent explanation … thank you ❤

    • @CodeWithChris
      @CodeWithChris  11 หลายเดือนก่อน

      Glad it was helpful! Thanks for watching! - Iñaki

  • @josuecruz0921
    @josuecruz0921 ปีที่แล้ว

    First time I see a guard statement written like that. I might start writing it out like that as well. Thanks for the series 🙌🏽

  • @AngleIron426
    @AngleIron426 3 ปีที่แล้ว

    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!

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thank you so, so much! Our hard work definitely paid off! -Arthur

  • @malamin
    @malamin 3 ปีที่แล้ว +1

    This series is amazing! I've decided to refactor a project I'm working on to follow your techniques.

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Your support means a lot. Thank you so much! -Arthur

  • @BromBarium
    @BromBarium ปีที่แล้ว

    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!

    • @CodeWithChris
      @CodeWithChris  ปีที่แล้ว +2

      You're welcome! We're glad you loved the whole series :) - Pat

  • @Awesome奥深
    @Awesome奥深 3 ปีที่แล้ว

    Awesome, friend, it is good to see your video.

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thanks for learning with us! -Arthur

  • @iOSTechie
    @iOSTechie 2 ปีที่แล้ว

    Very well explained. Thank you.

    • @CodeWithChris
      @CodeWithChris  2 ปีที่แล้ว

      Thank you so so much! -Arthur

  • @jeffreywilkinson1471
    @jeffreywilkinson1471 3 ปีที่แล้ว +2

    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?

    • @StewartLynch
      @StewartLynch 3 ปีที่แล้ว +2

      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.

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thanks for all the love, Jeffrey! -Arthur

  • @3366Har
    @3366Har 3 ปีที่แล้ว

    Wow! It was cool!

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thank you so, so much! -Arthur

  • @KimbrellBrad
    @KimbrellBrad 3 ปีที่แล้ว

    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!

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thanks for watching! :) -Arthur

  • @drmucahiderdogan
    @drmucahiderdogan 3 ปีที่แล้ว

    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?

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      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

  • @trungthanhbui2871
    @trungthanhbui2871 3 ปีที่แล้ว

    Hope you make a tutorial about swinject or binding in swift

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Hello, please post your suggestion here: app.productstash.io/codewithchris#/ideas -Arthur

  • @gondaimgano
    @gondaimgano 3 ปีที่แล้ว

    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

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว

      Thanks for your suggestion! Please post it here: app.productstash.io/codewithchris#/ideas -Arthur

  • @abdorizak
    @abdorizak 3 ปีที่แล้ว

    Hey code chris could please make a Video Authentication user based on rest api build node js

    • @abdorizak
      @abdorizak 3 ปีที่แล้ว

      @Joe Geezer just example

    • @CodeWithChris
      @CodeWithChris  3 ปีที่แล้ว +1

      We'll see what we can do! Kindly post your suggestion here: app.productstash.io/codewithchris#/ideas
      :) -Arthur