This is Part 7 of the android interview question series. This part will focus on Jetpack Compose. 1. What is Jetpack Compose? Jetpack Compose is Android’s recommended modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Jetpack Compose is declarative programming, which means you can describe your user interface by […]
This is Part 6 of the android interview question series. This part will focus on Kotlin flows. 1. What is Flow? A stream of data that can be computed asynchronously is referred to as a Flow . It allows you to emit multiple values over time in a sequential and reactive manner. Some key characteristics […]
This is Part 5 of the android interview question series. This part will focus on Kotlin coroutines. 1. What are coroutines? Coroutine stands for cooperating functions. They provide a more efficient and readable way to handle asynchronous tasks. It is similar to a thread, in that it takes a block of code to run that […]
Coroutines have been around for a while now and there are so many different articles around it. But I found that there is a steep learning curve to it so it did take me a while to really understand the fundamentals of what Coroutines are and how it works. So I thought I would share […]
Handling Cancellation in Complex Tasks. 👇 On the other hand, while they might seem like the perfect fit for your projects, coroutines are complex, and it’s important to understand how they work before using them. For example, did you know that Kotlin Coroutines may not cancel immediately during heavy computations? Without suspension points, cancellation can […]
Understanding and Avoiding Common Pitfalls in Asynchronous Programming with Kotlin Coroutines This image was generated with the assistance of AI As Android developers, Kotlin coroutines have become an indispensable tool in our asynchronous programming toolkit. They simplify concurrent tasks, make code more readable, and help us avoid the callback hell that was prevalent with earlier […]
Testing is vital for ensuring code reliability and correctness. Mocking frameworks are key in unit testing, enabling developers to create mock objects and define their behavior. This article explores two popular mocking frameworks: Mockito and MockK which are well-known libraries in unit testing, with Mockito tailored for Java and MockK for Kotlin. We will be […]
Headache-Free Reactive Programming With Spring Boot and Kotlin Coroutines Source link
Making Multiplatform Better | Talking Kotlin #125 Source link