StartAndroid
9.63K subscribers
353 photos
10 videos
5 files
1.83K 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
Видео о проблеме забытых значений. Когда функция вызывается, но результат не используется. Самый распространенный пример - 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
Сравнение 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
💩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
👍3
Что нового в Kotlin 2.3.0

Language: more stable and default features, unused return value checker, explicit backing fields, and changes to context-sensitive resolution.

Kotlin/JVM: support for Java 25.

Kotlin/Native: improved interop through Swift export, faster build time for release tasks, C and Objective-C library import in Beta.

Kotlin/Wasm: fully qualified names and new exception handling proposal enabled by default, as well as new compact storage for Latin-1 characters.

Kotlin/JS: new experimental suspend function export, LongArray representation, unified companion object access, and more.

Gradle: compatibility with Gradle 9.0 and a new API for registering generated sources.

Compose compiler: stack traces for minified Android applications.

Standard library: stable time tracking functionality and improved UUID generation and parsing.

#kotlin 

https://kotlinlang.org/docs/whatsnew23.html
👍42
Что нового в Kotlin 2.3.0

Language: more stable and default features, unused return value checker, explicit backing fields, and changes to context-sensitive resolution.

Kotlin/JVM: support for Java 25.

Kotlin/Native: improved interop through Swift export, faster build time for release tasks, C and Objective-C library import in Beta.

Kotlin/Wasm: fully qualified names and new exception handling proposal enabled by default, as well as new compact storage for Latin-1 characters.

Kotlin/JS: new experimental suspend function export, LongArray representation, unified companion object access, and more.

Gradle: compatibility with Gradle 9.0 and a new API for registering generated sources.

Compose compiler: stack traces for minified Android applications.

Standard library: stable time tracking functionality and improved UUID generation and parsing.

#kotlin 

https://kotlinlang.org/docs/whatsnew23.html
👍3
Переводим проекты на Android Gradle Plugin 9.0

#kotlin #android #gradle

https://blog.jetbrains.com/kotlin/2026/01/update-your-projects-for-agp9/
👍3
Статья про внутренние механизмы плагина компилятора kotlinx.serialization, от стратегии генерации промежуточного представления в два прохода до оптимизации с помощью золотой маски для проверки обязательных полей.

#kotlin #serialization

https://www.revenuecat.com/blog/engineering/kotlinx-serialization/
👍7🔥41
Вышел Kotlin 2.3.20

- Gradle: Compatibility with Gradle 9.3.0 and Kotlin/JVM compilation uses the Build tools API by default.
- Maven: Simplified setup for Kotlin projects.
- Kotlin compiler plugins: Lombok is Alpha and improved JPA support in the kotlin.plugin.jpa plugin.
- Language: Support for name-based destructuring declarations.
- Standard library: New API for creating immutable copies of Map.Entry.
- Kotlin/Native: New interoperability mode for C and Objective-C libraries.

#kotlin

https://kotlinlang.org/docs/whatsnew2320.html
👍4
Статья рассказывает, как превращать любые колбэк‑ориентированные Android‑API (включая Google Play Billing, локации, Bluetooth и т.п.) в suspend‑функции с помощью suspendCoroutine

#kotlin #coroutines

https://www.revenuecat.com/blog/engineering/kotlin-coroutine-bridge/
👍14😢3