Hi, Jarek here đź‘‹
Welcome to next edition of our Thursday newsletter. This time we have coroutines, data visualisation and testing!
đź“š How actually coroutines work
While many developers utilize Kotlin coroutines, few understand the intricate process of coroutine creation. This article demystifies the structure and functions involved in setting up coroutines, starting with basic definitions and moving into the more technical stuff.
Article explores the coroutine construction principles. Bytecode analysis included. Learn more by reading the full guide here.
---
🛠️ How to create awful data visualizations
WTF Visualizations (viz.wtf) serves as a showcase of confusing and poorly executed data visualizations. On this website you’ll find examples of graphics that fail to convey clear information, turning statistical reporting into confusing experience. Dive deeper into the world of visual data chaos here.
---
đź“š Better suspend mocking with MockK
MockK over the years became my go-to library for mocking suspend functions. Its intuitive syntax and built-in coroutine support simplify testing asynchronous operations. With MockK, you can easily replicate complex behaviors of coroutine-based functions, ensuring tests are reflective of real-world scenarios.
Mock - fake version of an object used in testing to check how other parts of a program interact with it.
Stub - fake part of the program that always returns the same result.
This article will show you how to use both in testing Kotlin code with MockK. You can learn more by reading the full article here
---
(sponsored)Â đź‘€ your stuff goes here
If you want reach 3k+ Android developers with your product, job ad or conference – reply to this email for sponsored post offer. Alternatively you can reach out to me directly at jarek@androidpro.io.
---
What's new?
1. I’m working on major Android Interview Pro update. People are constantly requesting new questions. I finally found the time to sit down and write new answers. Update coming on the weekend! 2. Today (25.04.2024) at 18:00 you can meet me at Kotlin Tech Talks #1. Talk title? Let’s invoke() Kotlin idioms!Come and say hi 👋 if you're in Cracow.Â
Wish you Happy Thursday Best, Jarek
|