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
Несколько дней назад вышел 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