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

  Рет қаралды 15,730

Essential Developer

Essential Developer

Күн бұрын

Пікірлер: 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 Жыл бұрын
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!
@EssentialDeveloper
@EssentialDeveloper Жыл бұрын
Thanks!
@awais.fayyaz
@awais.fayyaz 2 жыл бұрын
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.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Swift Closures Explained - The ONLY video you'll ever need!
17:33
How to Get Promoted in Big Tech: Navigating Levels, Grades, and Performance Cycles
30:01
Alexey Glukharev: Software Engineering & IT Career
Рет қаралды 108
Multithreading and Concurrency in iOS apps | iOS Dev Live Mentoring
35:40
Essential Developer
Рет қаралды 9 М.
3 MISTAKES to avoid when using Async / Await in Swift 😌
4:41
Vincent Pradeilles
Рет қаралды 12 М.
3 MISTAKES to avoid when using closures in Swift 😌
5:02
Vincent Pradeilles
Рет қаралды 4,9 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН