How senior iOS devs eliminate nested closures (arrow anti-pattern) in Swift | Live Dev Mentoring

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 7

  • @EssentialDeveloper
    @EssentialDeveloper  2 года назад

    Sign up to gain FREE access to exclusive iOS dev courses, workshops, and mentoring sessions: www.essentialdeveloper.com/community?

  • @EvgeniiBondarev
    @EvgeniiBondarev Год назад +1

    Double clicking on a brace helps to find its counterpart really quickly and reliably. Nice little Xcode feature that would simplify the process a little bit. Really nice job with a satisfactory result, guys!

  • @awais.fayyaz
    @awais.fayyaz 2 года назад +1

    Hi Caio, Mike, and Bogdan,
    Thank you very much for sharing this video here on youtube. It really was a pyramid of Doom but you showed us two ways to make it better. Thanks.
    I have one question, though: How did you come to know about 'withCheckedThrowingContinuation' and that it can be used here?

    • @EssentialDeveloper
      @EssentialDeveloper  2 года назад

      Glad you liked it! This method was introduced along with async/await - it was presented in a WWDC session. You can learn more about it here: developer.apple.com/documentation/swift/withcheckedthrowingcontinuation(function:_:)

  • @nameless6990
    @nameless6990 2 года назад

    Can we use dispatch work items to solve this problem as well🤔

    • @EssentialDeveloper
      @EssentialDeveloper  2 года назад

      Hi! You could but we don't think it wouldn't make the code easier to read.