StartAndroid
10.1K subscribers
389 photos
10 videos
5 files
1.86K links
Канал об Android (Андроид) разработке

Сайт - http://startandroid.ru

Чат - https://xn--r1a.website/startandroidchat

Контакты - https://startandroid.ru/ru/about/cntct5.html

Реклама - https://startandroid.ru/ru/about/reklama.html

РКН - https://shorturl.at/p7iUr
Download Telegram
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/
👍7🥱5😱1
Автор призывает быть внимательнее при использовании массивов в Data классах из-за их реализации equals()

#kotlin #dataclass #array

https://proandroiddev.com/avoid-using-array-in-the-data-class-constructor-in-kotlin-ebc308e46a95
👍5👌5🥴31
Последние новости из мира 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/
👍6💩41👎1
Несколько дней назад вышел 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
9
Видео о проблеме забытых значений. Когда функция вызывается, но результат не используется. Самый распространенный пример - list.sorted().

#kotlin

https://www.youtube.com/watch?v=OyEfB6Q4Y0s
4👍2
Rich Errors в Kotlin 2.4: шаг вперёд или шаг в сторону?

Вместо того чтобы выбрасывать исключения, теперь функции могут возвращать возможные ошибки как часть своей сигнатуры:

fun fetchUser(): User | NetworkError

Такой подход делает потенциальные сбои явными, упрощает тестирование и избавляет от try-catch для предсказуемых ошибок. Новинка уже доступна в Kotlin 2.4 и, по мнению авторов, особенно полезна в бизнес-логике.


#kotlin #exception #error

https://habr.com/ru/companies/spring_aio/articles/931148/
🤔11👍10👎6🖕1
Что нового в JUnit 6: ключевые изменения и улучшения

JUnit 6 вышел спустя восемь лет после релиза JUnit 5. Это не просто очередное обновление — это значительный шаг вперёд в направлении модернизации.

Рассмотрим основные улучшения, и изменения, ломающие обратную совместимость.

#junit #test #java #kotlin

https://habr.com/ru/companies/spring_aio/articles/954322/
👍5
Что нового в 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
👍6👎1