This is a quick summary of interesting talk I visited during Droidcon Online 2020. This year the conference was different - due to covid-19. Nevertheless there were some thing worth mentioning!
- blog: kotlinx-coroutines-rx2 - when migrating from rxjava (project refactoring) - when you want to use Kotlin coroutines in Java (cannot [yet] be used directly)
Structured concurrency is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by using a structured approach to concurrent programming. The core concept is the encapsulation of concurrent threads of execution (here encompassing kernel and userland threads and processes) by way of control flow constructs that have clear entry and exit points and that ensure all spawned threads have completed before exit. The concept is analogous to structured programming, which introduced control flow constructs that encapsulated sequential statements and subroutines. Such encapsulation allows errors in concurrent threads to be propagated to the control structure's parent scope and managed by the native error handling mechanisms of each particular computer language. It allows control flow to remain readily evident by the structure of the source code despite the presence of concurrency. To be effective, this model must be applied consistently throughout all levels of the program-- otherwise concurrent threads may leak out, become orphaned, or fail to have runtime errors correctly propagated.
code & app security - We've extended our open source code optimizer ProGuard and our protection software DexGuard to fully support Kotlin - new open source tool to view the Kotlin metadata hiding inside your apps
async access via coroutines Flow - (X) no synchronous access - has transactions - data migration from SharedPrefs is possible Coroutines flow #JETPACK Jetpack DataStore Google DataStore CodeLab - https://codelabs.developers.google.com/codelabs/android- preferences-datastore/#0 https://youtu.be/lKOsI4gh9Z8?t=44 @bkosarzycki