K2 mode будет включен по умолчанию начиная с IntelliJ IDEA 2025.1. Он улучшит производительность и позволит использовать некоторые новые фичи Kotlin
#android #kotlin #compiler
https://blog.jetbrains.com/idea/2025/04/k2-mode-in-intellij-idea-2025-1-current-state-and-faq/
#android #kotlin #compiler
https://blog.jetbrains.com/idea/2025/04/k2-mode-in-intellij-idea-2025-1-current-state-and-faq/
The JetBrains Blog
K2 Mode in IntelliJ IDEA 2025.1: Current State and FAQ | The IntelliJ IDEA Blog
Starting with IntelliJ IDEA 2025.1, K2 mode, a new implementation of Kotlin support, will be enabled by default. This change is an important step in the ongoing effort to improve Kotlin support in the
👍5
Автор призывает быть внимательнее при использовании массивов в Data классах из-за их реализации equals()
#kotlin #dataclass #array
https://proandroiddev.com/avoid-using-array-in-the-data-class-constructor-in-kotlin-ebc308e46a95
#kotlin #dataclass #array
https://proandroiddev.com/avoid-using-array-in-the-data-class-constructor-in-kotlin-ebc308e46a95
Medium
Avoid using Array in the data class constructor in Kotlin
Understand the hidden risks of using Array inside Kotlin data classes — and a better alternative.
👍5👌5🥴3❤1
Последние новости из мира Kotlin
- Kotlin 2.2 and language evolution
- K2 compiler: Now the default in IntelliJ IDEA 2025.1
- New language features on the way
- Kotlin build tool innovation – Amper
- Growth of the Kotlin Foundation and reopening of the Grants Program
- Introducing Koog: A framework for building AI agents in Kotlin (now open source)
- Kotlin Multiplatform: New KMP plugin in IntelliJ IDEA + Android Studio and Compose Multiplatform Updates
- Compose Multiplatform for iOS is Stable
- Kotlin/Wasm and Compose for web progress
- Kotlin for server side: Growing adoption and Spring partnership
- Backend ecosystem: Ktor 3 and revamped Exposed
- Official Kotlin LSP in development
#kotlin #kmp #amper #multiplatform
https://blog.jetbrains.com/kotlin/2025/05/kotlinconf-2025-language-features-ai-powered-development-and-kotlin-multiplatform/
- Kotlin 2.2 and language evolution
- K2 compiler: Now the default in IntelliJ IDEA 2025.1
- New language features on the way
- Kotlin build tool innovation – Amper
- Growth of the Kotlin Foundation and reopening of the Grants Program
- Introducing Koog: A framework for building AI agents in Kotlin (now open source)
- Kotlin Multiplatform: New KMP plugin in IntelliJ IDEA + Android Studio and Compose Multiplatform Updates
- Compose Multiplatform for iOS is Stable
- Kotlin/Wasm and Compose for web progress
- Kotlin for server side: Growing adoption and Spring partnership
- Backend ecosystem: Ktor 3 and revamped Exposed
- Official Kotlin LSP in development
#kotlin #kmp #amper #multiplatform
https://blog.jetbrains.com/kotlin/2025/05/kotlinconf-2025-language-features-ai-powered-development-and-kotlin-multiplatform/
The JetBrains Blog
KotlinConf 2025 Unpacked: Upcoming Language Features, AI-Powered Development, and Kotlin Multiplatform Upgrades | The Kotlin Blog
KotlinConf 2025 unveiled major updates that set the tone for the year ahead: new features, AI tools, KMP milestones, and a partnership for the backend.
👍6💩4❤1👎1
Этой серией статей я хочу простым человеческим языком показать, зачем нужны Contracts, как их использовать на практике и как они работают внутри.
#kotlin #contract
https://habr.com/ru/companies/alfa/articles/916536/
Хабр
Не хотите поговорить о Kotlin Contracts?
Привет! Меня зовут Виталий. Я — Android‑разработчик в Альфа‑Банке. За время собеседований я заметил одну любопытную вещь: даже опытные котлиноводы частенько не в курсе такой...
❤7
Несколько дней назад вышел Kotlin 2.2.0
What's new
Language: new language features in preview, including context parameters. Several previously experimental features are now Stable, such as guard conditions, non-local break and continue, and multi-dollar interpolation.
Kotlin compiler: unified management of compiler warnings.
Kotlin/JVM: changes to default method generation for interface functions.
Kotlin/Native: LLVM 19 and new features for tracking and adjusting memory consumption.
Kotlin/Wasm: separated Wasm target and the ability to configure Binaryen per project.
Kotlin/JS: fix for the copy() method generated for @JsPlainObject interfaces.
Gradle: binary compatibility validation in the Kotlin Gradle plugin.
Standard library: stable Base64 and HexFormat APIs.
Documentation: our documentation survey is open, and notable improvements have been made to the Kotlin documentation.
#kotlin #release
https://kotlinlang.org/docs/whatsnew22.html
What's new
Language: new language features in preview, including context parameters. Several previously experimental features are now Stable, such as guard conditions, non-local break and continue, and multi-dollar interpolation.
Kotlin compiler: unified management of compiler warnings.
Kotlin/JVM: changes to default method generation for interface functions.
Kotlin/Native: LLVM 19 and new features for tracking and adjusting memory consumption.
Kotlin/Wasm: separated Wasm target and the ability to configure Binaryen per project.
Kotlin/JS: fix for the copy() method generated for @JsPlainObject interfaces.
Gradle: binary compatibility validation in the Kotlin Gradle plugin.
Standard library: stable Base64 and HexFormat APIs.
Documentation: our documentation survey is open, and notable improvements have been made to the Kotlin documentation.
#kotlin #release
https://kotlinlang.org/docs/whatsnew22.html
Kotlin Help
What's new in Kotlin 2.2.0 | Kotlin
❤9
Статья про equals/hashcode и как это используется в Hash* коллекциях. Базовый вопрос на интервью.
#java #kotlin #collections
https://proandroiddev.com/how-to-answer-hashing-like-a-java-kotlin-expert-fc934ffabf02
#java #kotlin #collections
https://proandroiddev.com/how-to-answer-hashing-like-a-java-kotlin-expert-fc934ffabf02
Medium
How to Answer Hashing Like a Java/Kotlin Expert
Understanding hashing and the relationship between equals() and hashCode() is essential not just for interviews but for writing…
👍19
Комментарии vs. самодокументируемый код: что выбрать?
#android #kotlin #bestpractice
https://habr.com/ru/articles/929600/
#android #kotlin #bestpractice
https://habr.com/ru/articles/929600/
Хабр
Комментарии vs. самодокументируемый код: что выбрать?
Если вы когда-либо сталкивались с чужим кодом (или даже со своим, написанным полгода назад), то знаете, как сложно бывает понять, что именно делает тот или иной фрагмент. В такие моменты особенно...
👍4❤2
Видео о проблеме забытых значений. Когда функция вызывается, но результат не используется. Самый распространенный пример - list.sorted().
#kotlin
https://www.youtube.com/watch?v=OyEfB6Q4Y0s
#kotlin
https://www.youtube.com/watch?v=OyEfB6Q4Y0s
YouTube
Don't forget your values! | Leonid Startsev
Recording brought to you by American Express. https://americanexpress.io/kotlin-jobs
No one likes to be forgotten, and the results of most non-unit function calls are no exception here. 'Check return value' or 'ignored call result' may sound familiar —…
No one likes to be forgotten, and the results of most non-unit function calls are no exception here. 'Check return value' or 'ignored call result' may sound familiar —…
❤4👍2
Rich Errors в Kotlin 2.4: шаг вперёд или шаг в сторону?
#kotlin #exception #error
https://habr.com/ru/companies/spring_aio/articles/931148/
Вместо того чтобы выбрасывать исключения, теперь функции могут возвращать возможные ошибки как часть своей сигнатуры:
fun fetchUser(): User | NetworkError
Такой подход делает потенциальные сбои явными, упрощает тестирование и избавляет от try-catch для предсказуемых ошибок. Новинка уже доступна в Kotlin 2.4 и, по мнению авторов, особенно полезна в бизнес-логике.
#kotlin #exception #error
https://habr.com/ru/companies/spring_aio/articles/931148/
Хабр
Rich Errors в Kotlin 2.4: шаг вперёд или шаг в сторону?
Команда Spring АйО не могла остаться в стороне и не прокомментировать одну из самых обсуждаемых новинок Kotlin, анонсированную на KotlinConf 2025 — Rich Errors. Вместо того чтобы выбрасывать...
🤔11👍10👎6🖕1
Короткий пост о том, что в Kotlin для создания коллекций существуют удобные build* функции
#kotlin #collections
https://landomen.github.io/posts/kotlin-builder-functions/
#kotlin #collections
https://landomen.github.io/posts/kotlin-builder-functions/
Domen Lanisnik
Kotlin’s Builder Functions: A Better Way to Create Lists, Maps, Strings & Sets
Kotlin offers several convenience functions to create lists, maps, strings, and more without the usual boilerplate code.
👍14
RetainedEffect - Side Effect в Compose на базе новой функции retain
#compose #kotlin #sideeffect #retain
https://proandroiddev.com/previewing-retainedeffect-a-new-side-effect-to-bridge-between-composition-and-retention-lifecycles-685b9e543de7
#compose #kotlin #sideeffect #retain
https://proandroiddev.com/previewing-retainedeffect-a-new-side-effect-to-bridge-between-composition-and-retention-lifecycles-685b9e543de7
Medium
Previewing RetainedEffect: A New Side Effect to Bridge Between Composition and Retention Lifecycles
The Jetpack Compose ecosystem has grown exponentially in recent years, and it is now widely adopted for building production-level UIs in…
👍3
Приоритеты и общее направление развития проектов Kotlin Multiplatform и Compose Multiplatform на ближайшие шесть-двенадцать месяцев
#kotlin #kmp #multiplatform #compose
https://blog.jetbrains.com/kotlin/2025/08/kmp-roadmap-aug-2025/
#kotlin #kmp #multiplatform #compose
https://blog.jetbrains.com/kotlin/2025/08/kmp-roadmap-aug-2025/
The JetBrains Blog
What’s Next for Kotlin Multiplatform and Compose Multiplatform – August 2025 Update | The Kotlin Blog
Discover our priorities and the general direction for Kotlin Multiplatform and Compose Multiplatform over the next six to twelve months.
❤3👍2🥰1
Что нового в JUnit 6: ключевые изменения и улучшения
#junit #test #java #kotlin
https://habr.com/ru/companies/spring_aio/articles/954322/
JUnit 6 вышел спустя восемь лет после релиза JUnit 5. Это не просто очередное обновление — это значительный шаг вперёд в направлении модернизации.
Рассмотрим основные улучшения, и изменения, ломающие обратную совместимость.
#junit #test #java #kotlin
https://habr.com/ru/companies/spring_aio/articles/954322/
Хабр
Что нового в JUnit 6: ключевые изменения и улучшения
Спустя восемь лет после JUnit 5 выходит новая версия популярного фреймворка. JUnit 6 — это не просто обновление, а переход к современной экосистеме Java и Kotlin. В новом переводе от команды Spring...
👍5
Статья с примерами, рассказывающая про использование runCatching вместо try-catch
#android #kotlin
https://proandroiddev.com/kotlin-tips-and-tricks-you-may-not-know-7-goodbye-try-catch-hello-trycatching-7135cb382609
#android #kotlin
https://proandroiddev.com/kotlin-tips-and-tricks-you-may-not-know-7-goodbye-try-catch-hello-trycatching-7135cb382609
Medium
Kotlin Tips and Tricks You May Not Know: #7 — Goodbye try-catch, Hello runCatching!
A cleaner way to handle exceptions in Kotlin with runCatching.
👍7👎1🔥1
Что нового в Kotlin 2.2.21 (и 2.2.20!)
Overview of Kotlin 2.2.20 and 2.2.21
Dataflow-based exhaustiveness checks
Returns in expression bodies
Improved Kotlin contracts
More changes like reified types in catch clauses & invokedynamic-whens
Common atomics API updates
New array copy function
Kotlin/Wasm in Beta & Browser Debugging
Swift export available by default (experimental)
Smaller release binaries
Documentation updates
There’s more to this release!
#kotlin
https://www.youtube.com/watch?v=QWpp5-LlTqA
Overview of Kotlin 2.2.20 and 2.2.21
Dataflow-based exhaustiveness checks
Returns in expression bodies
Improved Kotlin contracts
More changes like reified types in catch clauses & invokedynamic-whens
Common atomics API updates
New array copy function
Kotlin/Wasm in Beta & Browser Debugging
Swift export available by default (experimental)
Smaller release binaries
Documentation updates
There’s more to this release!
#kotlin
https://www.youtube.com/watch?v=QWpp5-LlTqA
YouTube
What's new in Kotlin 2.2.21 (and 2.2.20!)
Kotlin 2.2.20 and its patch release 2.2.21 come with a lot of new features! On the language level, new dataflow checks allow more flexible when-expressions than before, and contracts are getting sweeping updates. Kotlin Multiplatform promotes Kotlin for WebAssembly…
👍6👎1
Исследуем SharedFlow: emit vs tryEmit, как использовать replay и bufferCapacity
#kotlin #coroutines #flow
https://habr.com/ru/companies/wildberries/articles/960676/
#kotlin #coroutines #flow
https://habr.com/ru/companies/wildberries/articles/960676/
Хабр
Исследуем SharedFlow: emit vs tryEmit, как использовать replay и bufferCapacity
Дисклеймер: данная статья — это попытка разобраться в сути вопроса, в том числе совместно с читателями. Если вы заметили неточность/ошибку в проводимых экспериментах или у вас есть чем поделиться по...
1🔥8👍6💩1
Сравнение Hilt и Koin
- The Philosophy: Runtime vs Compile-Time
- How Hilt Actually Works
- How Koin Works Under the Hood
- Performance and Startup Implications
- Developer Experience
- Scoping and Lifecycle Management
- Testability and Swapping Dependencies
- Under the Hood Comparison
- When to Use Which
- Best Practices
#kotlin #di #hilt #koin
https://proandroiddev.com/hilt-vs-koin-the-hidden-cost-of-runtime-injection-and-why-compile-time-di-wins-3d8c522a073b
- The Philosophy: Runtime vs Compile-Time
- How Hilt Actually Works
- How Koin Works Under the Hood
- Performance and Startup Implications
- Developer Experience
- Scoping and Lifecycle Management
- Testability and Swapping Dependencies
- Under the Hood Comparison
- When to Use Which
- Best Practices
#kotlin #di #hilt #koin
https://proandroiddev.com/hilt-vs-koin-the-hidden-cost-of-runtime-injection-and-why-compile-time-di-wins-3d8c522a073b
Medium
Hilt vs Koin: The Hidden Cost of Runtime Injection (and Why Compile-Time DI Wins)
A deep, code-level comparison between Hilt’s compile-time graph generation and Koin’s runtime DSL — performance, architecture and testing.
💩11👍6🔥2
Подборка новостей из мира Kotlin
- Kotlin 2.3.0-RC is out!
- A fresh look for Kotlin docs
- Join the Kotlin team for an AMA on Reddit
- Kotlin Multiplatform: Level up before 2026!
- How Android devs can advance their career with KMP – livestream (December 3)
- KotlinConf’26 Black Friday special
- The KotlinConf’26 Call for Speakers is closing soon
- Kotlin adoption guide
- Your Ktor experience counts – tell us about it
- Getting closer to Exposed 1.0.0!
- Google Summer of Code 2025: What our contributors built
- Quick poll for Android devs
#kotlin #kmp #android
https://blog.jetbrains.com/kotlin/2025/11/kodees-kotlin-roundup-november-edition
- Kotlin 2.3.0-RC is out!
- A fresh look for Kotlin docs
- Join the Kotlin team for an AMA on Reddit
- Kotlin Multiplatform: Level up before 2026!
- How Android devs can advance their career with KMP – livestream (December 3)
- KotlinConf’26 Black Friday special
- The KotlinConf’26 Call for Speakers is closing soon
- Kotlin adoption guide
- Your Ktor experience counts – tell us about it
- Getting closer to Exposed 1.0.0!
- Google Summer of Code 2025: What our contributors built
- Quick poll for Android devs
#kotlin #kmp #android
https://blog.jetbrains.com/kotlin/2025/11/kodees-kotlin-roundup-november-edition
The JetBrains Blog
Kodee’s Kotlin Roundup: Too Many News to Keep Quiet About | The Kotlin Blog
Kodee has gathered the latest Kotlin highlights for you — from the Kotlin Reddit AMA and documentation updates to learning programs and Google Summer of Code 2025 projects.
👍3