4 ms·
> noticed that they even have some kind of built-in HTTP client abstraction It goes one step further, you can have platform-neutral code to parse the API retur
by dakna 6y ago
> noticed that they even have some kind of built-in HTTP client abstraction
It goes one step further, you can have platform-neutral code to parse the API returns into Kotlin models.
https://blog.jetbrains.com/kotlin/2020/10/kotlinx-serialization-1-0-released/ https://blog.jetbrains.com/kotlin/2020/10/kotlinx-serializat...
A lot of business logic is shared in the domain layer on each platform client (and possibly on the server), and I think re-use of that is/will be Kotlin's main selling point.
Add SQLDelight for shared data access code on clients, and you can cover a lot of ground with one codebase.