Core concepts of Composables and its helping hands — Episode III
We have used Composable in the last episodes of the Jetpack Compose Series. Now, Let’s see what happens under the hood.
When we annotate @Composable we tell the Compose compiler that this function is meant to convert data into UI elements. This rendering process happens in three key phases:
Composition: Determines what UI elements to display. Compose execute composable functions to create a blueprint of UI.
Layout: Determines where to position UI elements. This phase includes measurement and placement steps, where elements are sized and positioned within a 2D coordinate system.
Drawing: Renders the UI elements onto a Canvas/ Device Screen.
Embark on a journey into the Compose multiverse with the latest episode of Talking Kotlin! This time, we delve into a discussion on two powerful libraries in the Kotlin ecosystem – Lyricist and Voyager.
The first two months of 2024 have passed! We hope they went well for you, and even better things are about to come. In this newsletter, we’ll dive deep into Kotlin and Jetpack Compose, and we’ll exercise our Kotlin skills. Have fun! 🛝
Articles
Effective Kotlin Item 20: Do not repeat common algorithms. Learn the importance of extracting utility functions for your programs to avoid reinventing the wheel and optimising your code. Goodbye to repetitive algorithms! 👉 Go to the article
Effective Kotlin Item 25: Each function should be written in terms of a single level of abstraction. Why each function should be written in terms of a single level of abstraction and how to achieve it. 👉 Go to the article
Effective Kotlin Item 26: Use abstraction to protect code against changes. Get to know the facts about how we abstract elements, and what are the consequences. 👉 Go to the article
Abstraction design: Introduction Discover the essence of abstraction and its role as the article by Marcin Moskala unfolds the principles behind creating and using abstractions. 👉 Go to the article
Kotlin Coroutines dispatchers — update. What is abstraction in programming and why is it so important? Discover the essence of abstraction and its role as the article by Marcin Moskala unfolds the principles behind creating and using abstractions. 👉 Go to the article
Jetpack Compose I: Beginner’s Series. The only Android Jetpack Compose guide you need. A straightforward insight leads you from foundational basics to advanced. 👉 Go to the article
Jetpack Compose II: Compose Navigation. Learn about Nested, BottomAppBar, and Dialog Navigation — in Jetpack Compose. 👉 Go to the article
Kotlin Exercises
Pretty Time Display Do you know the secondToPrettyTime function in Kotlin? Give it a try with this exercise. 👇 Playground
Best students list Implement makeBestStudentsList function to display the best 10 students, so they can get an internship. Take a moment and try to solve it. 👇 Playground
Kotlin OPEN Workshops
KOTLIN PRO For Kotlin Developers who want to master everyday Kotlin usage.
Last but not least — we’ve been diligently working to analyze your awesome feedback and keep up with the latest trends and developments in Kotlin. We’re super excited to share with you the outcome — brand new workshops, redesigned with your unique needs in mind! Feel free to dive in and explore. Happy learning!
Hello Kotliner, was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.
SwiftUI v/s Jetpack Compose was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.
Deep Dive into Compose Navigation with Nested, Multiple Backstack & Dialog Navigation
Compose Navigation in a Nutshell was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.
Today we would like to share some really interesting articles and exciting news.
Curious?
Check it all out!
The second edition of Effective Kotlin
We are very excited to present you with the new, second edition of the Effective Kotlin book. New Items, new examples, and only the latest Kotlin best practices all in one place!
Lottie With Jetpack Compose was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.
UI Testing in Jetpack Compose was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.
Canvas in Jetpack Compose was originally published in Kt. Academy on Medium, where people are continuing the conversation by highlighting and responding to this story.