My Coroutines Course just got a BIG update: Kotlin Flow for Android Development

Hi Readers 👋

There hasn’t been a lot of news from my side lately, but today I can announce something big!

I spent the last months extending my already existing Course about Kotlin Coroutines for Android with modules about Kotlin Flow!

The result is an additional 6 hours of video content about Kotlin Flow, making the course 15 hours long in total. I am pretty sure that this is now the most comprehensive video course about Coroutines and Flow on Android on the Internet.

The new modules cover:

  • Flow Basics
  • Reactive Programming
  • Flow Builders
  • Flow Operators (lifecycle operators, intermediate operators, terminal operators)
  • Flow Exception Handling
  • Flow Cancellation
  • Hot & Cold Flows
  • SharedFlow and StateFlow
  • Channels

Get the Course with a nice discount!

I hope this course is helpful for a lot of developers!

 

7 common mistakes you might be making when using Kotlin Coroutines

In my opinion, Kotlin Coroutines really simplify the way we write asynchronous and concurrent code. However, I identified some common mistakes that many developers make when using Coroutines.

Read More
 

Kotlin Coroutines Exception Handling Cheat Sheet

Exception Handling with Kotlin Coroutines is hard. I wrote an extensive article about it and gave talks about it at several conferences. Some developers suggested creating some kind of cheat sheet that could be helpful for implementing appropriate exception handling in coroutine-based code. Here it is 😉. It contains the six most important points. You can either download the PDF or read this article.

Read More
 

My first online course “Mastering Kotlin Coroutines for Android Development” is now available!

Today it’s time to celebrate! 🥳

After more than 6 months of really hard work, I finally released my very first online course: Mastering Kotlin Coroutines for Android Development.

Read More
 

Why exception handling with Kotlin Coroutines is so hard and how to successfully master it!

Exception handling is probably one of the hardest parts when learning Coroutines. In this blog post, I am going to describe the reasons for its complexity and give you some key points that will help you to build a good understanding of the subject. You will then be able to implement a successful exception handling infrastructure in your own applications.

Read More
 

How to run an expensive calculation with Kotlin Coroutines on the Android Main Thread without freezing the UI

On Android, you should usually perform CPU-intensive tasks on a background thread. Otherwise, if we perform them on the main thread, the UI freezes and gets unresponsive. With Coroutines, however, it is possible to perform expensive computations without ever leaving the main thread and without impacting the functionality of the UI. In this blog post, I show you how this is possible. However, I will also tell you why you should never follow this approach in a real production app.

Read More
 

Do I need to call suspend functions of Retrofit and Room on a background thread?

After publishing my open source project about Coroutines on Android, which currently includes 16 of the most common, real-world use cases of using Coroutines in an Android application, one of the most common questions I get from developers was whether or not we have to switch to a background thread whenever we call a suspend function to make a network request with Retrofit or a database call with Room in order to not block the main thread which would make the UI freeze and get unresponsive.

Read More
 

Understanding Kotlin Coroutines with this mental model

For the majority of developers, the concept of a coroutine is pretty unfamiliar, although the first ideas date back to the early sixties. This is because we started to learn Software Development with programming languages like Java, in which the concept of a coroutine simply does not exist. What we did learn, however, are how basic concepts like classes, functions, and interfaces work. Over time, we developed a fundamental understanding of these essential, yet abstract concepts.

Read More
 

Comparing Kotlin Coroutines with Callbacks and RxJava

I am currently investing a lot of time in learning about Kotlin Coroutines 🎓. Therefore, I did some research about the most common use cases for using Coroutines on Android and implemented them in an [open-source example project]. It currently contains 16 common use cases implemented with Coroutines. I think the samples in this project can be helpful for lots of developers 👨‍💻.

Read More
 

Kotlin Coroutines – Use Cases on Android

For the last couple of weeks, I worked really hard on a new open-source project called Kotlin Coroutines – Use Cases on Android. Today, I am really proud to present “Version 1.0” to you!

Read More