EffectiveKotlin's profile picture. Profile of the Effective Kotlin book by @marcinmoskala

Effective Kotlin

@EffectiveKotlin

Profile of the Effective Kotlin book by @marcinmoskala

Effective Kotlin reposted

If you strip composables from all the layers of abstraction, you will see that everything is just Layout and modifiers. Practically everything you see drawn on the screen is drawn by modifiers.

marcinmoskala's tweet image. If you strip composables from all the layers of abstraction, you will see that everything is just Layout and modifiers. Practically everything you see drawn on the screen is drawn by modifiers.

Effective Kotlin reposted

If your team wants an advanced Kotlin deep dive this year, schedule it before holidays: Kotlin Expert — Dec 18–19, live. Under-the-hood Kotlin applied to real tools (mocking lib, serializer, mini DI). Seats are limited; we’ll keep groups small for hands-on work. 👉…

marcinmoskala's tweet image. If your team wants an advanced Kotlin deep dive this year, schedule it before holidays:
Kotlin Expert — Dec 18–19, live. Under-the-hood Kotlin applied to real tools (mocking lib, serializer, mini DI).
Seats are limited; we’ll keep groups small for hands-on work.
👉…

Effective Kotlin reposted

What is the difference between Text and BasicText in Compose? They are both used to represent text, but… 👉 Text is a material component that includes many built-in features, making it easy to create text that looks good and is accessible. 𝐓𝐞𝐱𝐭, 𝐛𝐲 𝐝𝐞𝐟𝐚𝐮𝐥𝐭,…

ktdotacademy's tweet image. What is the difference between Text and BasicText in Compose? They are both used to represent text, but… 

👉 Text is a material component that includes many built-in features, making it easy to create text that looks good and is accessible. 𝐓𝐞𝐱𝐭, 𝐛𝐲 𝐝𝐞𝐟𝐚𝐮𝐥𝐭,…

Effective Kotlin reposted

I hated this Compose rule at first, but now I know it. “Prefer stateless and controlled components” seems very counter-intuitive, but it makes a lot of sense in long run. Let’s start with stateful components, those that manage their own state, and expose parameters like…

marcinmoskala's tweet image. I hated this Compose rule at first, but now I know it. “Prefer stateless and controlled components” seems very counter-intuitive, but it makes a lot of sense in long run. 

Let’s start with stateful components, those that manage their own state, and expose parameters like…

Effective Kotlin reposted

Explore how Kotlin’s type system, delegation, and #KSP work under the hood — and how to use that knowledge to write cleaner, more scalable code, at the Kotlin Expert open workshop, 📆 Dec 18–19. 🔥 live online, hands-on Check it here: kt.academy/workshop/expert

ktdotacademy's tweet image. Explore how Kotlin’s type system, delegation, and #KSP work under the hood — and how to use that knowledge to write cleaner, more scalable code, at the Kotlin Expert open workshop, 
📆 Dec 18–19. 
🔥 live online, hands-on
Check it here: kt.academy/workshop/expert

Effective Kotlin reposted

I keep meeting teams writing Kotlin that looks fine, but misses what the language really gives you. Kotlin Expert is where we fix that — together, hands-on. We’ll design APIs with correct variance, build small tools with KSP, draw hard lines around reflection, and use compiler…

marcinmoskala's tweet image. I keep meeting teams writing Kotlin that looks fine, but misses what the language really gives you.

Kotlin Expert is where we fix that — together, hands-on. We’ll design APIs with correct variance, build small tools with KSP, draw hard lines around reflection, and use compiler…

Effective Kotlin reposted

🚨 Mutable state in Kotlin: Should you use var or mutable val? 🤔 Each has its perks! One boosts the efficiency of adding elements; the other simplifies observability. Beware of pitfalls like defensive copying and thread safety! 🛠️ Master the trade-offs to avoid common mistakes…

ktdotacademy's tweet image. 🚨 Mutable state in Kotlin: Should you use var or mutable val? 🤔 Each has its perks! One boosts the efficiency of adding elements; the other simplifies observability. Beware of pitfalls like defensive copying and thread safety! 🛠️ Master the trade-offs to avoid common mistakes…

Effective Kotlin reposted

Have you ever wondered how libraries like Arrow Lenses actually work? The answer is quite simple, just follow me.

marcinmoskala's tweet image. Have you ever wondered how libraries like Arrow Lenses actually work? The answer is quite simple, just follow me.

Effective Kotlin reposted

You need to be very careful when using mutable objects in Compose, because their changes do not trigger recomposition. Though there are some mutable objects that are safe to be used, like view models, but when we observe properties of such objects, we need to property transform…


Effective Kotlin reposted

If you’re planning team upskilling before year-end: Kotlin Expert Workshop is open for individuals and teams. 📆 December 18-19, 2025 Team discount available (5+). contact us for details. → [email protected]

marcinmoskala's tweet image. If you’re planning team upskilling before year-end:
Kotlin Expert Workshop is open for individuals and teams.

📆 December 18-19, 2025
Team discount available (5+). contact us for details.

→ contact@kt.academy

Effective Kotlin reposted

One of the most common mistakes I see is an incorrect launch use inside coroutineScope. Let me explain why it makes no sense, and it only confuses readers.

ktdotacademy's tweet image. One of the most common mistakes I see is an incorrect launch use inside coroutineScope. Let me explain why it makes no sense, and it only confuses readers.

Effective Kotlin reposted

When is a composable considered the same one and when is it considered a different one? Let’s discuss composables identity for a moment. 🤔

marcinmoskala's tweet image. When is a composable considered the same one and when is it considered a different one? Let’s discuss composables identity for a moment. 🤔

Effective Kotlin reposted

Enum can do more than you know! They can have constructors, bodies, and methods. There is also the Enum type, which is a supertype of all enums. Let me explain it all briefly 👇🧵

ktdotacademy's tweet image. Enum can do more than you know! They can have constructors, bodies, and methods. There is also the Enum type, which is a supertype of all enums. Let me explain it all briefly 👇🧵

Effective Kotlin reposted

If you want cleaner public APIs, fewer edge-case bugs then you need: 💪 A mental model for variance that prevents subtle runtime surprises. 💪 Confidence to use (or reject) reflection deliberately, with measurable trade-offs. 💪 A working KSP processor scaffold you can adapt…

marcinmoskala's tweet image. If you want cleaner public APIs, fewer edge-case bugs then you need:

💪 A mental model for variance that prevents subtle runtime surprises.

💪 Confidence to use (or reject) reflection deliberately, with measurable trade-offs.

💪 A working KSP processor scaffold you can adapt…

Effective Kotlin reposted

💼 Want Your Company to Pay for Kotlin Training? Here's How! 👇 kt.academy/article/financ…

ktdotacademy's tweet image. 💼 Want Your Company to Pay for Kotlin Training? Here's How! 👇
kt.academy/article/financ…

Effective Kotlin reposted

Those are slides that I use in my workshop, Kotlin Expert. Learn more about annotation processing and KSP from my book, Advanced Kotlin, or my workshop, Kotlin Expert, where we implement our own annotation processor or KSP processor. You can organize it for your company or join…

marcinmoskala's tweet image. Those are slides that I use in my workshop, Kotlin Expert. Learn more about annotation processing and KSP from my book, Advanced Kotlin, or my workshop, Kotlin Expert, where we implement our own annotation processor or KSP processor. You can organize it for your company or join…

Effective Kotlin reposted

The way how static dependency injection works is actually very simple, and I can explain it in two minutes! Let me show you 👇🧵

marcinmoskala's tweet image. The way how static dependency injection works is actually very simple, and I can explain it in two minutes! Let me show you 👇🧵

Effective Kotlin reposted

If you are not sure about stability of your classes and parameters, you can use Compose compiler report 📈 It generates a report showing how each class and parameter is treated, and essential statistics related to stability 🔍

marcinmoskala's tweet image. If you are not sure about stability of your classes and parameters, you can use Compose compiler report 📈 It generates a report showing how each class and parameter is treated, and essential statistics related to stability 🔍

Effective Kotlin reposted

Years of using Kotlin taught me, that understanding how things work is the greatest asset for a developer. Such a knowledge gives you solid understanding, opens another level of working with technologies, and opens horizons for making own tools. This is why I created Kotlin…

marcinmoskala's tweet image. Years of using Kotlin taught me, that understanding how things work is the greatest asset for a developer. Such a knowledge gives you solid understanding, opens another level of working with technologies, and opens horizons for making own tools. This is why I created Kotlin…

Effective Kotlin reposted

Here is an overview of different column arrangement options in Jetpack Compose.


Loading...

Something went wrong.


Something went wrong.