Kot. Academy Blog
504 FOLLOWERS
Marcin Moskala is the creator of Kot. Academy and author of the book "Android Development with Kotlin". He is also an experienced Android developer passionate about Kotlin since its early beta release. A Blog with a mission to simplify Kotlin's learning.
Kot. Academy Blog
1w ago
Network communication in mobile applications nowadays is something normal for almost every app. Much of the information presented in our apps is fetched from the network and then shown to the users in a compelling way. And while we are developing and testing our apps, we usually need some tooling to see what is being fetched from the network and how that is being done. But what if we could change that and enable every team member possibility to see such information at every step of our mobile development process?
MEET INSPEKTIFY
Inspektify is a debug tool for observing the app's real-time ne ..read more
Kot. Academy Blog
2w ago
21 Android Studio Keyboard ⌨️ Shortcuts to Boost Your Productivity. Photo by Emil Priver on Unsplash
Using your keyboard and mouse as the primary tools in Android Studio allows you to navigate and perform various actions conveniently. But what if I told you it doesn’t always have to be that way? Could you reduce the need for mouse navigation and save time?
Absolutely! Just use your keyboard!
So, in this blog post, you’ll learn about 21 common keyboard shortcuts that you might find useful and would like to use as an Android developer.
∘ Navigation Shortcuts
∘ Code Writing Shortcuts ..read more
Kot. Academy Blog
1M ago
Introduction
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 emphasizing their key features, strengths, and use cases.
Image Source: Meta AIMockito
Mockito is a widely-used mocking framework for Java. It allows developers to create mock objects and define their behavior for u ..read more
Kot. Academy Blog
1M ago
Understanding the platform differences to better define the business logic for Kotlin Multiplatform Mobile (KMM) Photo by Clark Tibbs on Unsplash
Business logic has a much bigger connotation than what is perceived. Generally, people limit themselves to a single screen. Developers choose one of the MV(x) design patterns, believing that this selection ensures the successful implementation of KMM. However, this assumption does not hold because of the platforms' framework design differences.
Differences across platforms
Although mobile development seems similar for Android and iOS, they ..read more
Kot. Academy Blog
1M ago
The article aims to show how to use Slot API pattern and @PreviewParameter in Jetpack Compose UI. For any concerns about the article, contact me here. ?
Slot API Pattern and @PreviewParameter image by Caner Kaşeler.
I create a basic Android application with only Jetpack Compose in this article. This app includes a basic card design which includes text, image and button. It does not contain any network request, complex UI or business logic.
Table of contents:
Compose Design with Traditional Way (If you know compose, you can skip this part.)
Slot API Pattern in Jetpack  ..read more
Kot. Academy Blog
1M ago
Create beautiful dialogs in Jetpack Compose — Episode V
Jetpack Compose Series
Dialogs are an essential part of our apps, whether we’re asking users quick questions, providing information, or guiding them through simple actions. They offer a unique advantage by capturing the user’s attention, but if not implemented thoughtfully, they can also become a source of distraction.
In this article, we’ll explore how to create visually appealing dialogs in Jetpack Compose, starting with a basic alert dialog using default components.
Alert Dialog
Alert dialogs are used to capture the user’s attent ..read more
Kot. Academy Blog
1M ago
Hello Engineers,
We’re excited to invite you to a special live Q&A session featuring Marcin Moskala, one of the top Kotlin trainers in the industry!
This is your chance to dive deeper into Kotlin, ask questions, and connect with an expert who truly knows the ins and outs of the language.
?️ When: 27th August 2024
? Time: 15:00 UTC+2
⏳ Duration: About 1 hour
During this session, Marcin will guide us through the fascinating world of Coroutines, shedding light on their power and potential risks. He’ll start with a quick overview of what makes Coroutines so unique and how they can enhance ..read more
Kot. Academy Blog
2M ago
Why Java will never catch up to Kotlin
There are multiple reasons to choose Kotlin over Java as your programming language. Of course, as with many technical decisions, “it depends”, doesn’t it? Moreover, everyone has their own opinion, and it wouldn’t be a surprise if you don’t share mine.
However, if you asked me — Kotlin is better than Java ?. Even though the latest Java releases are truly promising, it still lags significantly behind Kotlin. Perhaps one of the most significant and challenging gaps to bridge is the structured null safety Kotlin guarantees at compile time. Is that r ..read more
Kot. Academy Blog
3M ago
We hope you are having a wonderful holiday. ☀️⛱️ The latest edition of our Kotlin newsletter is here, and we have some thrilling updates and resources for you. Don’t forget that the open workshops for the autumn season are already scheduled — go to the bottom of this newsletter for more details.
Mutable Objects or Properties?Mutable or read-only? Learn when to use var and val for optimal performance and minimal bugs. Dive deeper into this essential Kotlin topic.
Mutable Objects or Properties
Cancellation in Kotlin Coroutines
Understand cancellation and exception handling in Kotlin fo ..read more
Kot. Academy Blog
4M ago
In this issue, you’ll discover the third edition of “Kotlin Coroutines: Deep Dive,” explore Kotlin for Developers series updates, and learn about thread usage in Kotlin network clients. We’ll also cover tips on minimising code visibility for better maintainability, share bite-sized Kotlin insights on Twitter, and present a new exercise on refactoring collection processing.
Last but not least — we’ll share the info about the open workshops that are already scheduled — go to the bottom of this newsletter to see more details.
The third edition of Kotlin Coroutines
Dive into over 40 new exerc ..read more