Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How Do You Tame the Async BEAST with Kotlin and JavaScript?

ACCU Conference via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the fundamental challenges of asynchronous programming and discover how JavaScript and Kotlin provide different solutions to tame the complexity of async control flow in this 21-minute conference talk from the ACCU York Meetup. Begin with an examination of JavaScript's evolution from callbacks to async/await, uncovering common pitfalls including diverging code paths, frozen UI threads, and hidden background tasks that plague asynchronous applications. Learn how structured programming principles apply to async code and why traditional blocking approaches fail in modern applications. Dive deep into Kotlin's coroutines and suspend functions, understanding how they offer a more structured concurrency model that makes asynchronous programming intuitive and manageable. Master the underlying structured programming problems that cause async complexity, enabling you to use async tools effectively rather than memorizing arbitrary rules. Discover practical solutions for managing resource leaks, handling try/catch blocks in async contexts, and controlling background task execution. Compare the benefits and limitations of async/await in JavaScript with Kotlin's suspend function approach, gaining insights into when each solution excels. Examine real-world examples demonstrating how diverging control flow creates maintenance nightmares and learn techniques to maintain clean, readable async code. Understand the relationship between event loops, callbacks, and parallel programming concepts across both languages. Access additional resources including books and articles on structured concurrency and asynchronous code design to deepen your knowledge beyond the talk.

Syllabus

0:05 – Introduction and book announcement
0:32 – Why write about asynchronous programming
1:02 – Challenges in Kotlin: coroutines, suspend functions, dispatchers
2:04 – Demonstrating async with JavaScript
2:44 – Structured programming principles
4:21 – Simulating delays and the problem with blocking
5:11 – Callbacks and non-blocking code
6:07 – Diverging control flow in asynchronous programming
8:01 – Pitfalls: try/catch, resource leaks, hidden tasks
10:05 – Async/await as a solution in JavaScript
12:03 – Benefits of async/await for control flow
13:30 – Limitations and hiding issues
14:00 – Kotlin suspend functions and safe async
15:04 – Managing background tasks in Kotlin
16:07 – Recommended reading and resources
17:01 – Runtime support, concurrency, and multi-threading
19:05 – Wrap-up and reflections on learning async

Taught by

ACCU Conference

Reviews

Start your review of How Do You Tame the Async BEAST with Kotlin and JavaScript?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.