Context parameters релизнуты в Beta статусе в Kotlin 2.2.0
Миграция на них с текущих context receivers крайне рекомендуется, т.к. context receivers будут в дальнейшем удалены
#kotlin #contextreceivers #contextparameters
https://blog.jetbrains.com/kotlin/2025/04/update-on-context-parameters/
Миграция на них с текущих context receivers крайне рекомендуется, т.к. context receivers будут в дальнейшем удалены
#kotlin #contextreceivers #contextparameters
https://blog.jetbrains.com/kotlin/2025/04/update-on-context-parameters/
👍7🥱5😱1
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